/
GIArules.xml
5062 lines (4737 loc) · 337 KB
/
GIArules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--
/*******************************************************************************
*
* This file is part of BAIPROJECT.
*
* BAIPROJECT is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* only, as published by the Free Software Foundation.
*
* BAIPROJECT is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Affero General Public License
* version 3 along with BAIPROJECT. If not, see <http://www.gnu.org/licenses/>
* for a copy of the AGPLv3 License.
*
*******************************************************************************/
/*******************************************************************************
*
* File Name: GIArules.xml
* Author: Richard Bruce Baxter - Copyright (c) 2005-2017 Baxter AI (baxterai.com)
* Project: General Intelligence Algorithm
* Project Version: 2p4a 17-January-2017
*
*******************************************************************************/
-->
<rules>
<sprite>
<miscellaneousItem name="SPRITE_SUBMODEL_RANGE_SCALE_FACTOR" stringValue="" fractionalValue="1.0" />
<miscellaneousItem name="SPRITE_TEXT_SCALE_FACTOR" stringValue="" fractionalValue="0.5" />
<miscellaneousItem name="SPRITE_WIDTH_OF_CHARS_IN_LDRAW_UNITS" stringValue="" fractionalValue="10" />
<miscellaneousItem name="SPRITE_HEIGHT_OF_CHARS_IN_LDRAW_UNITS" stringValue="" fractionalValue="15" />
<miscellaneousItem name="SPRITE_CHAR_SPACING_RATIO" stringValue="" fractionalValue="0.7" />
<miscellaneousItem name="SPRITE_TEXT_PADDING_IN_LDRAW_UNITS" stringValue="" fractionalValue="1.0" />
<miscellaneousItem name="SPRITES_FLOATING_WIDTH_IN_LDRAW_UNITS" stringValue="" fractionalValue="0" />
<miscellaneousItem name="SPRITES_FLOATING_HEIGHT_IN_LDRAW_UNITS" stringValue="" fractionalValue="-5" />
<miscellaneousItem name="SPRITE_NAME_START" stringValue="sprite" fractionalValue="" />
<miscellaneousItem name="SPRITE_EXTENSION" stringValue=".ldr" fractionalValue="" />
<miscellaneousItem name="SPRITE_CHARACTER_START" stringValue="spritetext" fractionalValue="" />
<miscellaneousItem name="SPRITE_CHARACTER_EXTENSION" stringValue=".dat" fractionalValue="" />
</sprite>
<draw>
<miscellaneousItem name="GIA_OUTPUT_Z_POSITION_FILE_CONNECTIONS" stringValue="" fractionalValue="0.6" />
<miscellaneousItem name="GIA_OUTPUT_Z_POSITION_FILE_CONTAINER_BIG_BOX" stringValue="" fractionalValue="0.5" />
<miscellaneousItem name="GIA_OUTPUT_Z_POSITION_FUNCTION_CONNECTIONS" stringValue="" fractionalValue="0.4" />
<miscellaneousItem name="GIA_OUTPUT_Z_POSITION_FILE_AND_FUNCTION_BOX" stringValue="" fractionalValue="0.3" />
<miscellaneousItem name="GIA_OUTPUT_Z_POSITION_FILE_AND_FUNCTION_TEXT" stringValue="" fractionalValue="0.2" />
<miscellaneousItem name="GIA_FILE_OR_FUNCTION_TEXT_BOX_SCALE_FACTOR_X" stringValue="" fractionalValue="0.4" />
<miscellaneousItem name="GIA_FILE_OR_FUNCTION_TEXT_BOX_BOX_SCALE_FACTOR_Y_LDR" stringValue="" fractionalValue="0.05" />
<miscellaneousItem name="GIA_FILE_OR_FUNCTION_TEXT_BOX_TEXT_SCALE_FACTOR_Y_SVG" stringValue="" fractionalValue="0.03" />
<miscellaneousItem name="GIA_FILE_OR_FUNCTION_TEXT_BOX_TEXT_SCALE_FACTOR_Y_SVG_B" stringValue="" fractionalValue="0.067" />
<miscellaneousItem name="GIA_FILE_OR_FUNCTION_TEXT_BOX_BOX_SCALE_FACTOR_X_SPACING_FRACTION_SVG" stringValue="" fractionalValue="0.8" />
<miscellaneousItem name="GIA_FILE_OR_FUNCTION_TEXT_BOX_BOX_SCALE_FACTOR_Y_SPACING_FRACTION_SVG" stringValue="" fractionalValue="0.1" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_DISABLED_VECTOROBJECTS_SCALE_FACTOR" stringValue="" fractionalValue="500" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_ENABLED_VECTOROBJECTS_SCALE_FACTOR" stringValue="" fractionalValue="200" />
<miscellaneousItem name="GIA_FILE_MAX_TEXT_LENGTH" stringValue="" fractionalValue="20" />
<miscellaneousItem name="GIA_FILE_TEXT_BOX_PADDING_FRACTION_OF_TEXT_LENGTH" stringValue="" fractionalValue="1.25" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_DISABLED_TEXT_BOX_SCALE_FACTOR_X_SPACING_FRACTION" stringValue="" fractionalValue="0.9" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_DISABLED_TEXT_BOX_SCALE_FACTOR_Y_SPACING_FRACTION" stringValue="" fractionalValue="0.3" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_ENABLED_TEXT_BOX_SCALE_FACTOR_X_SPACING_FRACTION" stringValue="" fractionalValue="0.7" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_ENABLED_TEXT_BOX_SCALE_FACTOR_Y_SPACING_FRACTION" stringValue="" fractionalValue="1.0" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_ENABLED_LARGE_BOX_SCALE_FACTOR_X" stringValue="" fractionalValue="5.0" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_ENABLED_LARGE_BOX_SCALE_FACTOR_X_SPACING_FRACTION_B" stringValue="" fractionalValue="0.65" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_ENABLED_LARGE_BOX_SCALE_FACTOR_Y_SPACING_FRACTION_B" stringValue="" fractionalValue="0.9" />
<miscellaneousItem name="GIA_FILE_FUNCTIONS_ENABLED_LARGE_BOX_SCALE_FACTOR_Y_SPACING_FRACTION_C" stringValue="" fractionalValue="0.4" />
<miscellaneousItem name="GIA_FILE_TEXT_BOX_OUTLINE_WIDTH_SVG" stringValue="" fractionalValue="1.0" />
<miscellaneousItem name="GIA_FUNCTION_VECTOROBJECTS_SCALE_FACTOR" stringValue="" fractionalValue="50" />
<miscellaneousItem name="GIA_FUNCTION_MAX_TEXT_LENGTH" stringValue="" fractionalValue="25" />
<miscellaneousItem name="GIA_FUNCTION_TEXT_BOX_PADDING_FRACTION_OF_TEXT_LENGTH" stringValue="" fractionalValue="1.00" />
<miscellaneousItem name="GIA_FUNCTION_TEXT_BOX_SCALE_FACTOR_Y_SPACING_FRACTION" stringValue="" fractionalValue="0.7" />
<miscellaneousItem name="GIA_FUNCTION_TEXT_BOX_OUTLINE_WIDTH_SVG" stringValue="" fractionalValue="0.3" />
<miscellaneousItem name="GIA_BASIC_ENTITY_NODE_COLOUR" stringValue="" fractionalValue="6" />
<miscellaneousItem name="GIA_PROPERTY_NODE_COLOUR" stringValue="" fractionalValue="1" />
<miscellaneousItem name="GIA_ACTION_NODE_COLOUR" stringValue="" fractionalValue="2" />
<miscellaneousItem name="GIA_CONDITION_NODE_COLOUR" stringValue="" fractionalValue="3" />
<!--not used... -->
<miscellaneousItem name="GIA_LAYER_4_COLOUR" stringValue="" fractionalValue="4" />
<miscellaneousItem name="GIA_LAYER_5_COLOUR" stringValue="" fractionalValue="22" />
<miscellaneousItem name="GIA_LAYER_6_COLOUR" stringValue="" fractionalValue="25" />
<miscellaneousItem name="GIA_LAYER_7_COLOUR" stringValue="" fractionalValue="14" />
<miscellaneousItem name="GIA_LAYER_8_COLOUR" stringValue="" fractionalValue="5" />
<miscellaneousItem name="GIA_LAYER_9_COLOUR" stringValue="" fractionalValue="7" />
<miscellaneousItem name="GIA_LAYER_10_COLOUR" stringValue="" fractionalValue="8" />
<miscellaneousItem name="GIA_LAYER_11_COLOUR" stringValue="" fractionalValue="0" />
<miscellaneousItem name="GIA_LAYER_12_COLOUR" stringValue="" fractionalValue="15" />
<miscellaneousItem name="GIA_ENTITY_CONNECTION_HIGHLIGHT_COLOUR" stringValue="" fractionalValue="5" />
<miscellaneousItem name="GIA_ENTITY_BOX_HIGHLIGHT_COLOUR" stringValue="" fractionalValue="5" />
</draw>
<translator>
<file name="GIAtranslatorRedistributeRelationsStanford">
<!-- XML only function (not hard coded) -->
<!-- #ifdef GIA_STANFORD_PARSER_AND_CORENLP_VERSION_2015_04_20_OR_GREATER -->
<function name="redistributeStanfordRelationsCase">
<example><!--
eg1 The ball is in the park. nsubj(park-6, ball-2) + cop(park-6, is-3) + case(park-6, in-4) -> prep_in(ball-2, park-6) [assign !sameReferenceSet]
eg2 The chicken that is near the river has an apple. nsubj(river-7, chicken-2) + cop(river-7, is-4) + case(river-7, near-5) + acl:relcl/rcmod(chicken-2, river-7) -> prep_near(chicken-2, river-7) [assign sameReferenceSet]
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_cop" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_case" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="3" relationIndexTestEntityID="1" />
<option useRelationTest="true" REL="2" REL_ENT="2" relationTest="be" />
<option useRedistributeSpecialCaseAuxiliaryIndicatesDifferentReferenceSetCheck="true" REL="1" />
<option useRelationTest="true" REL="4" REL_ENT="3" relationTest="_rcmod" />
<option useRelationIndexTest="true" REL="4" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option useRelationIndexTest="true" REL="4" REL_ENT="2" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="3" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="1" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option disableRelation="true" REL="2" />
<option disableRelation="true" REL="3" />
<option disableEntity="true" REL="2" REL_ENT="2" /> <!-- disable is -->
</paramDepRel>
</function>
<!-- #ifdef GIA_STANFORD_PARSER_VERSION_2015_04_20_BUG_FAILURE_TO_PARSE_SHORT_POSSESSIVE_CASES -->
<function name="redistributeStanfordRelationsParserFailureWorkaroundFixShortPossessiveCases">
<example><!--
eg The dog's value. nsubj(value-4, dog-2) + cop(value-4, 's-3) -> poss(value-4, dog-2)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_cop" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationTest="true" REL="2" REL_ENT="2" relationTest="'s" />
<option useRedistributeRelationEntityReassignment="true" REL="1" REL_ENT="3" redistributeRelationEntityReassignment="_poss" />
<option disableRelation="true" REL="2" />
<option disableEntity="true" REL="2" REL_ENT="2" /> <!-- disable 's -->
</paramDepRel>
</function>
<!-- #endif -->
<function name="redistributeStanfordRelationsRemoveRedundantPossessiveApostropheS">
<example><!--
eg The dog's value is sad. case(dog-2, 's-3)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_case" />
<option useRelationTest="true" REL="1" REL_ENT="2" relationTest="'s" />
<option disableRelation="true" REL="1" />
<option disableEntity="true" REL="1" REL_ENT="2" /> <!-- disable 's -->
</paramDepRel>
</function>
<!-- #endif -->
<!-- XML only function (not hard coded) -->
<!-- #ifdef GIA_STANFORD_PARSER_AND_CORENLP_VERSION_2015_04_20_OR_GREATER -->
<!-- not generalisable (example "There is a new movie we can see." is not supported by GIA_STANFORD_PARSER_AND_CORENLP_VERSION_2015_04_20_OR_GREATER):
<function name="redistributeStanfordRelationsSwitchAclRelclRelations">
<example>
eg interpret 'There is a new movie we can see.' acl:relcl(movie-5, see-8) -> dobj(see-8, movie-5) [+ sameReferenceSet]
</example>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_acl:relcl" />
<option useRedistributeRelationEntityReassignment="true" REL="1" REL_ENT="3" redistributeRelationEntityReassignment="_obj" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="1" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option useRedistributeSpecialCaseRcmodIndicatesSameReferenceSet="true" REL="1" />
</paramDepRel>
</function>
-->
<function name="redistributeStanfordRelationsConvertCompoundToQuantityOrNNrelation">
<example><!--
eg interpret 'Robert ate 4 times a day.' compound(times-4, 4-3) -> number(times-4, 4-3)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_compound" />
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="NERTemp" value="4" REL="1" REL_ENT="2" /> <!-- NUMBER -->
<option useRedistributeRelationEntityReassignment="true" REL="1" REL_ENT="3" redistributeRelationEntityReassignment="_quantity" />
</paramDepRel>
<example><!--
eg interpret 'Hamish smoked at the toy shop.' compound(shop-6, toy-5) -> nn(shop-6, toy-5)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_compound" />
<option useRedistributeRelationEntityReassignment="true" REL="1" REL_ENT="3" redistributeRelationEntityReassignment="_nn" />
</paramDepRel>
</function>
<!-- #endif -->
<function name="disableRedundantNodesStanfordCoreNLP">
<!-- eliminate all redundant date relations eg num(December-4, 3rd-5)/num(December-4, 1990-7)/nn(3rd-5, December-4)/appos(3rd-5, 1990-7), where both the governer and the dependent have NER tag set to DATE -->
<example><!--Also: Ms. Savata's hand slipped.
<dep type="nn">
<governor idx="2">Savata</governor>
<dependent idx="1">Ms.</dependent>
</dep>
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_conj_and|_conj_or" relationArrayTestSize="2" relationArrayTestIsNegative="true" />
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="NERTemp" value="0" negative="true" REL="1" REL_ENT="1" />
<option useSpecialCaseCharacteristicsRelationIndexTest="true" REL="1" REL_ENT="1" specialCaseCharacteristicsRelationIndexTestRelationID="1" specialCaseCharacteristicsRelationIndexTestEntityID="2" specialCaseCharacteristicsRelationIndexTest="NERTemp" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="5" REL="1" REL_ENT="1" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="6" REL="1" REL_ENT="1" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="7" REL="1" REL_ENT="1" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="8" REL="1" REL_ENT="1" />
<!-- #ifndefGIA_DO_NOT_SUPPORT_SPECIAL_CASE_5C_FEATURES_STANFORD_NER_INDICATES_NAME_CONCATENATION_REQUIRES_POS_NNP -->
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="stanfordPOStemp" value="NNP" REL="1" REL_ENT="2" />
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="stanfordPOStemp" value="NNP" REL="1" REL_ENT="1" />
<!-- #endif -->
<option useRedistributeSpecialCaseRelationEntityReassignmentConcatonate="true" REL="1" REL_ENT="1" />
<option redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationID="1" REL="1" REL_ENT="1" swapIndex="1" redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationEntityID="2" />
<option redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationID="1" REL="1" REL_ENT="1" swapIndex="2" redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationEntityID="1" />
<option redistributeSpecialCaseRelationEntityReassignmentConcatonateType="1" REL="1" REL_ENT="1" />
<option disableRelation="true" REL="1" />
<option disableEntity="true" REL="1" REL_ENT="2" />
</paramDepRel>
<!-- #ifdefGIA_STANFORD_CORE_NLP_VERSION_2013_04_04_OR_GREATER -->
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_conj_and|_conj_or" relationArrayTestSize="2" relationArrayTestIsNegative="true" />
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="NERTemp" value="5" REL="1" REL_ENT="1" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_nn" />
<!-- #ifndefGIA_DO_NOT_SUPPORT_SPECIAL_CASE_5C_FEATURES_STANFORD_NER_INDICATES_NAME_CONCATENATION_REQUIRES_POS_NNP -->
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="stanfordPOStemp" value="NNP" REL="1" REL_ENT="2" />
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="stanfordPOStemp" value="NNP" REL="1" REL_ENT="1" />
<!-- #endif -->
<option useRedistributeSpecialCaseRelationEntityReassignmentConcatonate="true" REL="1" REL_ENT="1" />
<option redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationID="1" REL="1" REL_ENT="1" swapIndex="1" redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationEntityID="2" />
<option redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationID="1" REL="1" REL_ENT="1" swapIndex="2" redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationEntityID="1" />
<option redistributeSpecialCaseRelationEntityReassignmentConcatonateType="1" REL="1" REL_ENT="1" />
<option disableRelation="true" REL="1" />
<option disableEntity="true" REL="1" REL_ENT="2" />
</paramDepRel>
<!-- #endif -->
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_conj_and|_conj_or" relationArrayTestSize="2" relationArrayTestIsNegative="true" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="1" REL="1" REL_ENT="1" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="5" REL="1" REL_ENT="1" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="6" REL="1" REL_ENT="1" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="7" REL="1" REL_ENT="1" />
<specialCase type="specialCaseCharacteristicsTestOrVector" variable="NERTemp" value="8" REL="1" REL_ENT="1" />
<option useSpecialCaseCharacteristicsRelationIndexTest="true" REL="1" REL_ENT="1" specialCaseCharacteristicsRelationIndexTestRelationID="1" specialCaseCharacteristicsRelationIndexTestEntityID="2" specialCaseCharacteristicsRelationIndexTest="NERTemp" />
<option disableEntity="true" REL="1" REL_ENT="2" />
</paramDepRel>
<!-- #ifdefGIA_STANFORD_CORE_NLP_VERSION_2013_04_04_OR_GREATER -->
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_conj_and|_conj_or" relationArrayTestSize="2" relationArrayTestIsNegative="true" />
<specialCase type="specialCaseCharacteristicsTestAndVector" variable="NERTemp" value="5" REL="1" REL_ENT="1" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_nn" />
<option disableEntity="true" REL="1" REL_ENT="2" />
</paramDepRel>
<!-- #endif -->
</function>
<function name="disableRedundantNodesStanfordParser">
<example><!--
ONLY USED FOR OLD VERSION OF STANFORD PARSER/CORENLP? note the following example no longer generates a complm dependency relation...
eliminate redundant complementizer 'that' nodes eg 'The authors believe that their method can identify the time at which a subject becomes aware of her own movement.' / _complm(identify[8], that[4])
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_complm" />
<option useRelationTest="true" REL="1" REL_ENT="2" relationTest="that" />
<option disableRelation="true" REL="1" />
<option disableEntity="true" REL="1" REL_ENT="2" />
</paramDepRel>
</function>
<!-- XML only function (not hard coded) -->
<function name="redistributeStanfordRelationsPredeterminers">
<example><!--
required redisribution: nsubj/obj(x-5, Each-1) + prep_of(Each-1, carts-4) -> nsubj/obj(x-5, carts-4) + mark cart as predeterminer each
required redisribution: det(cart-2, Each-1) -> mark cart as predeterminer each
required redisribution: predet(berries-6, all-4) -> mark berry as predeterminer each
required redisribution: dep(have-4, each-3) + nsubj(have-4, players-2) -> mark players-2 as predeterminer each
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="2" />
<option parseDisabledRelation="true" REL="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_subj|_obj" relationArrayTestSize="2" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="of" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="each" relationArrayTestSize="1" />
<option useRelationIndexTest="true" REL="1" REL_ENT="2" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<assert variable="assignPredeterminerAfterFinish" REL="2" REL_ENT="2" assertPostProcessingValue="each" />
<option disableEntity="true" REL="2" REL_ENT="1" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
<option disableRelation="true" REL="2" />
<!-- #ifdefGIA_INITIALISE_PREPOSITION_ENTITIES_AT_START_OF_TRANSLATOR -->
<option disableEntity="true" REL="2" REL_ENT="3" />
<!-- #endif -->
</paramDepRel>
<paramDepRel mode="redistribute">
<option numberOfRelations="2" />
<option parseDisabledRelation="true" REL="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_subj|_obj" relationArrayTestSize="2" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="of" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="every" relationArrayTestSize="1" />
<option useRelationIndexTest="true" REL="1" REL_ENT="2" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<assert variable="assignPredeterminerAfterFinish" REL="2" REL_ENT="2" assertPostProcessingValue="every" />
<option disableEntity="true" REL="2" REL_ENT="1" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
<option disableRelation="true" REL="2" />
<!-- #ifdefGIA_INITIALISE_PREPOSITION_ENTITIES_AT_START_OF_TRANSLATOR -->
<option disableEntity="true" REL="2" REL_ENT="3" />
<!-- #endif -->
</paramDepRel>
<paramDepRel mode="redistribute">
<option numberOfRelations="2" />
<option parseDisabledRelation="true" REL="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_subj|_obj" relationArrayTestSize="2" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="of" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="all" relationArrayTestSize="1" />
<option useRelationIndexTest="true" REL="1" REL_ENT="2" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<assert variable="assignPredeterminerAfterFinish" REL="2" REL_ENT="2" assertPostProcessingValue="all" />
<option disableEntity="true" REL="2" REL_ENT="1" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
<option disableRelation="true" REL="2" />
<!-- #ifdefGIA_INITIALISE_PREPOSITION_ENTITIES_AT_START_OF_TRANSLATOR -->
<option disableEntity="true" REL="2" REL_ENT="3" />
<!-- #endif -->
</paramDepRel>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option parseDisabledRelation="true" REL="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_det|_predet" relationArrayTestSize="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="each" relationArrayTestSize="1" />
<assert variable="assignPluralAfterFinish" REL="1" REL_ENT="1" /> <!-- required for NLC_USE_PREPROCESSOR+NLC_CATEGORIES_TEST_PLURALITY_ENFORCE -->
<assert variable="assignPredeterminerAfterFinish" REL="1" REL_ENT="1" assertPostProcessingValue="each" />
<option disableEntity="true" REL="1" REL_ENT="2" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
</paramDepRel>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option parseDisabledRelation="true" REL="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_det|_predet" relationArrayTestSize="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="every" relationArrayTestSize="1" />
<assert variable="assignPluralAfterFinish" REL="1" REL_ENT="1" /> <!-- required for NLC_USE_PREPROCESSOR+NLC_CATEGORIES_TEST_PLURALITY_ENFORCE -->
<assert variable="assignPredeterminerAfterFinish" REL="1" REL_ENT="1" assertPostProcessingValue="every" />
<option disableEntity="true" REL="1" REL_ENT="2" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
</paramDepRel>
<paramDepRel mode="redistribute">
<option numberOfRelations="1" />
<option parseDisabledRelation="true" REL="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_det|_predet" relationArrayTestSize="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="all" relationArrayTestSize="1" />
<assert variable="assignPluralAfterFinish" REL="1" REL_ENT="1" /> <!-- required for NLC_USE_PREPROCESSOR+NLC_CATEGORIES_TEST_PLURALITY_ENFORCE -->
<assert variable="assignPredeterminerAfterFinish" REL="1" REL_ENT="1" assertPostProcessingValue="all" />
<option disableEntity="true" REL="1" REL_ENT="2" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
</paramDepRel>
<paramDepRel mode="redistribute">
<option numberOfRelations="2" />
<option parseDisabledRelation="true" REL="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_dep" relationArrayTestSize="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="3" relationArrayTest="_subj" relationArrayTestSize="1" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="each" relationArrayTestSize="1" />
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="have" />
<assert variable="assignPredeterminerAfterFinish" REL="2" REL_ENT="2" assertPostProcessingValue="each" />
<option disableEntity="true" REL="1" REL_ENT="2" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
<option disableRelation="true" REL="1" />
</paramDepRel>
<paramDepRel mode="redistribute">
<option numberOfRelations="2" />
<option parseDisabledRelation="true" REL="2" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_dep" relationArrayTestSize="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="3" relationArrayTest="_subj" relationArrayTestSize="1" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="1" REL_ENT="2" relationArrayTest="each" relationArrayTestSize="1" />
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="all" />
<assert variable="assignPredeterminerAfterFinish" REL="2" REL_ENT="2" assertPostProcessingValue="all" />
<option disableEntity="true" REL="1" REL_ENT="2" /> <!-- not compatible with NLC_SUPPORT_LOGICAL_CONDITION_OPERATIONS_ADVANCED -->
<option disableRelation="true" REL="1" />
</paramDepRel>
</function>
<!-- XML only function (not hard coded) -->
<!-- #ifdefGIA_REDISTRIBUTE_RELATIONS_SUPPORT_NAME_OF -->
<function name="redistributeStanfordRelationsInterpretNamedAsDefinition">
<example><!--
eg interpret 'The piece called pawnBlack.png is happy.' nsubj(called-3, piece-2) + nsubj(happy-6, pawnBlack.png-4) + ccomp(called-3, happy-6) -> appos(piece-2, pawnBlack.png-4) + nsubj(happy-6, piece-2)
eg interpret 'The piece called pawnBlack.png is a knight.' nsubj(called-3, piece-2) + nsubj(knight-7, pawnBlack.png-4) + ccomp(called-3, knight-7) -> appos(piece-2, pawnBlack.png-4) + nsubj(knight-7, piece-2)
FUTURE: The happy piece called pawnBlack.png...
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_obj" />
<option useRelationArrayTest="true" REL="1" REL_ENT="1" relationArrayTest="call|name" relationArrayTestSize="2" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="3" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="3" relationIndexTestEntityID="2" />
<option disableEntity="true" REL="1" REL_ENT="1" disableEntityUseOriginalValues="true" /> <!-- disable call -->
<option useRedistributeRelationEntityReassignment="true" REL="2" REL_ENT="3" redistributeRelationEntityReassignment="_appo" />
<option useRedistributeSpecialCaseRcmodIndicatesSameReferenceSet="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<specialCase type="specialCaseCharacteristicsAssignmentVector" variable="isName" value="true" REL="2" REL_ENT="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option disableRelation="true" REL="3" />
</paramDepRel>
<example><!--
eg interpret 'The piece called pawnBlack.png is next to the car.' nsubj(called-3, piece-2) + nsubj(is-5, pawnBlack.png-4) + ccomp(called-3, is-5) + prep_near(is-5, car-8) -> appos(piece-2, pawnBlack.png-4) + prep_near(piece-2, car-8)
FUTURE: The piece called pawnBlack.png next to the car...
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="4" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_obj" />
<option expectToFindPrepositionTest="true" REL="4" />
<option useRelationArrayTest="true" REL="1" REL_ENT="1" relationArrayTest="call|name" relationArrayTestSize="2" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="3" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="3" relationIndexTestEntityID="2" />
<option useRelationIndexTest="true" REL="3" REL_ENT="2" relationIndexTestRelationID="4" relationIndexTestEntityID="1" />
<option disableEntity="true" REL="1" REL_ENT="1" disableEntityUseOriginalValues="true" /> <!-- disable call -->
<option useRedistributeRelationEntityReassignment="true" REL="2" REL_ENT="3" redistributeRelationEntityReassignment="_appo" />
<option useRedistributeSpecialCaseRcmodIndicatesSameReferenceSet="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<specialCase type="specialCaseCharacteristicsAssignmentVector" variable="isName" value="true" REL="2" REL_ENT="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="4" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option disableRelation="true" REL="1" />
<option disableRelation="true" REL="3" />
</paramDepRel>
<example><!--
eg interpret 'The piece called pawnBlack.png rides the bike.' nsubj(called-3, piece-2) + xcomp(called-3, pawnBlack.png-4) + nsubj(bike-7, rides-5) + xcomp(pawnBlack.png-4, bike-7) -> appos(piece-2, pawnBlack.png-4) + nsubj(rides-3, piece-2) + dobj(rides-3, bike-5)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="4" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_to-do" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="4" REL_ENT="3" relationTest="_to-do" />
<option useRelationArrayTest="true" REL="1" REL_ENT="1" relationArrayTest="call|name" relationArrayTestSize="2" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="2" REL_ENT="2" relationIndexTestRelationID="4" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="4" relationIndexTestEntityID="2" />
<option disableEntity="true" REL="1" REL_ENT="1" disableEntityUseOriginalValues="true" /> <!-- disable call -->
<option useRedistributeRelationEntityReassignment="true" REL="2" REL_ENT="3" redistributeRelationEntityReassignment="_appo" />
<option useRedistributeSpecialCaseRcmodIndicatesSameReferenceSet="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<specialCase type="specialCaseCharacteristicsAssignmentVector" variable="isName" value="true" REL="2" REL_ENT="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option useRedistributeRelationEntityReassignment="true" REL="4" REL_ENT="3" redistributeRelationEntityReassignment="_obj" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="4" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option disableRelation="true" REL="3" />
</paramDepRel>
<example><!--
eg interpret 'The piece called pawnBlack.png rides.' nsubj(called-3, piece-2) + xcomp(called-3, pawnBlack.png-4) + dobj(pawnBlack.png-4, rides-5) -> appos(piece-2, pawnBlack.png-4) + nsubj(rides-3, piece-2)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_to-do" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_obj" />
<option useRelationArrayTest="true" REL="1" REL_ENT="1" relationArrayTest="call|name" relationArrayTestSize="2" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="2" REL_ENT="2" relationIndexTestRelationID="3" relationIndexTestEntityID="1" />
<option disableEntity="true" REL="1" REL_ENT="1" disableEntityUseOriginalValues="true" /> <!-- disable call -->
<option useRedistributeRelationEntityReassignment="true" REL="2" REL_ENT="3" redistributeRelationEntityReassignment="_appo" />
<option useRedistributeSpecialCaseRcmodIndicatesSameReferenceSet="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<specialCase type="specialCaseCharacteristicsAssignmentVector" variable="isName" value="true" REL="2" REL_ENT="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option disableRelation="true" REL="3" />
</paramDepRel>
</function>
<!-- #endif -->
<function name="redistributeStanfordRelationsCreateQueryVarsAdjustForActionPrepositionAction">
<!-- opt1a -->
<example><!--
What is yarn used in the making of?
dobj(used-4, What-1)
auxpass(used-4, is-2)
nsubjpass(used-4, yarn-3)
root(ROOT-0, used-4)
det(making-7, the-6)
prep_in(used-4, making-7)
prep(making-7, of-8)
/
_obj(making[7], what[1])
_obj(use[4], yarn[3])
prep_in(use[4], making[7])
_prep(making[7], of[8])
prep_in(use[4], making[7]) + _obj(used[4], what[1]) + _prep(making[7], of[8]) -> prep_of(making[7], what[1])
--></example>
<paramDepRel mode="redistribute">
<option useRelationIndexTest="true" REL="1" REL_ENT="3" relationIndexTestRelationID="2" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="2" relationArrayTest="who|what|how|where|when|why|which|is" relationArrayTestSize="8" />
<option expectToFindPrepositionTest="true" REL="1" /> <!-- added 24 July 2013 -->
<option numberOfRelations="3" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_prep" />
<option useRelationIndexTest="true" REL="3" REL_ENT="3" relationIndexTestRelationID="1" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option disableRelation="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="3" REL_ENT="3" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="3" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
</paramDepRel>
<!-- opt1b -->
<example><!--
What is the cart designed to integrate with?
dep(designed-5, What-1)
auxpass(designed-5, is-2)
det(cart-4, the-3)
nsubjpass(designed-5, cart-4)
xsubj(integrate-7, cart-4)
root(ROOT-0, designed-5)
aux(integrate-7, to-6)
xcomp(designed-5, integrate-7)
prep(integrate-7, with-8)
xcomp(designed-5, integrate-7) + dep(designed, what) + prep(integrate-7, with-8) -> prep_with(integrate[7], what[1])
--></example>
<paramDepRel mode="redistribute">
<option useRelationIndexTest="true" REL="1" REL_ENT="3" relationIndexTestRelationID="2" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="2" relationArrayTest="who|what|how|where|when|why|which|is" relationArrayTestSize="8" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_to-do" />
<option numberOfRelations="3" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_prep" />
<option useRelationIndexTest="true" REL="3" REL_ENT="3" relationIndexTestRelationID="1" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option disableRelation="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="3" REL_ENT="3" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="3" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
</paramDepRel>
<!-- opt1c -->
<example><!--
x(y, _$qVar[1]) + prep_q(y, a) -> x(a, _$qVar[1])
eg1;
Apples is used for making juice.
What is apples used for making?
dobj(used-4, What-1)
auxpass(used-4, is-2)
nsubjpass(used-4, apples-3)
root(ROOT-0, used-4)
prepc_for(used-4, making-6)
/
_obj(use[4], _$qVar[1])
_obj(use[4], apple[3])
prepc_for(use[4], make[6])
NO [this solution is not universal]: dobj(used-4, What-1) + prepc_for(used-4, making-6) -> dobj(making-6, What-1)
_obj(use[4], _$qVar[1]) + prepc_for(use[4], make[6]) -> _obj(make[6], _$qVar[1])
eg 2;
Apples are used for eating in the forest.
Where are apples used for eating?
advmod(used-4, Where-1)
auxpass(used-4, are-2)
nsubjpass(used-4, apples-3)
root(ROOT-0, used-4)
prepc_for(used-4, eating-6)
/
_%atLocation(use[4], _$qVar[1])
_obj(use[4], apple[3])
prepc_for(use[4], eat[6])
_%atLocation(use[4], _$qVar[1]) + prepc_for(use[4], eat[6]) -> _%atLocation(eat[6], _$qVar[1])
--></example>
<paramDepRel mode="redistribute">
<option useRelationIndexTest="true" REL="1" REL_ENT="3" relationIndexTestRelationID="2" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="2" relationArrayTest="who|what|how|where|when|why|which|is" relationArrayTestSize="8" />
<option expectToFindPrepositionTest="true" REL="1" />
<option numberOfRelations="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
</paramDepRel>
<!-- #ifdefGIA_REDISTRIBUTE_STANFORD_RELATIONS_DEP_AND_PREP_AND_XCOMP -->
<!-- opt2a -->
<example><!--
What is the Co-cart designed to do?
interpret; _to-do(design[5], do[7]) + _dep(design[5], what[1]) -> _to-do(design[5], do[7]) + _dep(design[5], do[7]) [see 2c] -> _to-do(design[5], what[1]) [2a]
--></example>
<paramDepRel mode="redistribute">
<option useRelationIndexTest="true" REL="1" REL_ENT="3" relationIndexTestRelationID="2" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="2" relationArrayTest="who|what|how|where|when|why|which|is" relationArrayTestSize="8" />
<option numberOfRelations="2" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_to-do" />
<option useRelationTest="true" REL="1" REL_ENT="2" relationTest="do" />
<option disableEntity="true" REL="1" REL_ENT="2" disableEntityUseOriginalValues="true" />
<option disableRelation="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
</paramDepRel>
<!-- opt2b -->
<example><!--
eg
What is yarn used to make?
dep(used-4, What-1)
auxpass(used-4, is-2)
nsubjpass(used-4, yarn-3)
xsubj(make-6, yarn-3)
root(ROOT-0, used-4)
aux(make-6, to-5)
xcomp(used-4, make-6)
interpret; _to-do(used-4, make-6) + dep(used-4, What-1) -> _to-do(used-4, make-6) + dep(make-6, What-1) [see 2c] -> _to-do(used-4, make-6) + obj(make-6, What-1) [2b]
--></example>
<paramDepRel mode="redistribute">
<option useRelationIndexTest="true" REL="1" REL_ENT="3" relationIndexTestRelationID="2" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="2" relationArrayTest="who|what|how|where|when|why|which|is" relationArrayTestSize="8" />
<option numberOfRelations="2" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_to-do" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option useRedistributeRelationEntityReassignment="true" REL="2" REL_ENT="3" redistributeRelationEntityReassignment="_obj" />
</paramDepRel>
<!-- opt2c -->
<paramDepRel mode="redistribute">
<option useRelationIndexTest="true" REL="1" REL_ENT="3" relationIndexTestRelationID="2" relationIndexTestEntityID="3" relationIndexTestIsNegative="true" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationArrayTest="true" REL="2" REL_ENT="2" relationArrayTest="who|what|how|where|when|why|which|is" relationArrayTestSize="8" />
<option numberOfRelations="2" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_to-do" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
</paramDepRel>
<!-- #endif -->
</function>
<!-- XML only function (not hard coded) -->
<!-- #ifdefGIA_NON_STANDARD_CONDITION_CONDITION_CONNECTIONS_CONNECT_CONJUNCTIONS_TO_THEIR_RELEVANT_PREPOSITIONS -->
<function name="redistributeStanfordRelationsConjunctionAndSubjectAndPreposition">
<example><!--
eg1 If the basket is near the house and is red, the dog is happy.
conj_and(is-4, red-10) + nsubj(is-4, basket-3) + prep_near(is-4, house-7) -> conj_and(near-x, red-10)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_conj_and|_conj_or" relationArrayTestSize="2" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_subj" />
<option expectToFindPrepositionTest="true" REL="3" />
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="be" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="3" />
</paramDepRel>
<example><!--
eg2 If the basket is red and is near the house, the dog is happy.
conj_and(red-5, is-7) + nsubj(is-7, basket-3) + prep_near(is-7, house-10) -> conj_and(red-5, near-x)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_conj_and|_conj_or" relationArrayTestSize="2" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_subj" />
<option expectToFindPrepositionTest="true" REL="3" />
<option useRelationTest="true" REL="1" REL_ENT="2" relationTest="be" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="3" />
</paramDepRel>
<example><!--
eg3 If the basket is near the house and is above the tray, the dog is happy.
conj_and(is-4, is-9) + nsubj(is-4, basket-3) + nsubj(is-9, basket-3) + prep_near(is-4, house-7) + prep_above(is-9, tray-12) -> conj_and(near-x, above-y)
--></example>
<!-- REDUNDANT (achieved by eg1 and eg2 combined):
<option numberOfRelations="5" />
<option useRelationArrayTest="true" REL="1" REL_ENT="3" relationArrayTest="_conj_and|_conj_or" relationArrayTestSize="2" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_subj" />
<option expectToFindPrepositionTest="true" REL="4" />
<option expectToFindPrepositionTest="true" REL="5" />
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="be" />
<option useRelationTest="true" REL="1" REL_ENT="2" relationTest="be" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option useRelationIndexTest="true" REL="4" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="5" REL_ENT="1" relationIndexTestRelationID="3" relationIndexTestEntityID="1" />
<option parseDisabledRelation="true" REL="2" />
<option parseDisabledRelation="true" REL="3" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="4" redistributeRelationEntityIndexReassignmentRelationEntityID="3" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="5" redistributeRelationEntityIndexReassignmentRelationEntityID="3" />
</paramDepRel>
-->
</function>
<!-- #endif -->
<function name="redistributeStanfordRelationsActionPrepositionAction"> <!-- extracted from redistributeStanfordRelationsMultiwordPreposition -->
<!-- #ifndefGIA_REDISTRIBUTE_STANFORD_RELATIONS_ACTION_PREPOSITION_ACTION -->
<!-- #ifdefGIA_REDISTRIBUTE_STANFORD_RELATIONS_DEP_AND_PREP_AND_XCOMP -->
<!-- #ifdefGIA_GENERIC_DEPENDENCY_RELATION_INTERPRETATION_REDISTRIBUTION -->
<!-- for queries only (1j6h) -->
<!--
<example>
What is the Co-cart designed to do?
dep(designed-5, What-1)
auxpass(designed-5, is-2)
nsubjpass(designed-5, Co-cart-4)
xsubj(do-7, Co-cart-4)
aux(do-7, to-6)
xcomp(designed-5, do-7)
interpret; _to-do(design[5], do[7]) + _dep(design[5], what[1]) -> _to-do(design[5], what[1])
What is the cart designed to integrate with?
dep(designed-5, What-1)
auxpass(designed-5, is-2)
det(cart-4, the-3)
nsubjpass(designed-5, cart-4)
xsubj(integrate-7, cart-4)
root(ROOT-0, designed-5)
aux(integrate-7, to-6)
xcomp(designed-5, integrate-7)
prep(integrate-7, with-8)
interpret;
dep(designed-5, What-1)
_to-do(designed-5, integrate-7)
prep(integrate-7, with-8)
=>
_to-do(designed-5, integrate-7)
prep_with(integrate-7, What-1)
</example>
<paramDepRel mode="redistribute">
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_to-do" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_dep" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option numberOfRelations="2" />
<option useRelationTest="true" REL="1" REL_ENT="2" relationTest="do" />
<option disableRelation="true" REL="2" />
<option disableEntity="true" REL="1" REL_ENT="2" disableEntityUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
</paramDepRel>
<example>
interpret;
_to-do(designed-5, integrate-7)
dep(designed-5, What-1)
prep(integrate-7, with-8)
=>
_to-do(designed-5, integrate-7)
prep_with(integrate-7, What-1)
</example>
<paramDepRel mode="redistribute">
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_to-do" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_dep" />
<option useRelationIndexTest="true" REL="1" REL_ENT="1" relationIndexTestRelationID="2" relationIndexTestEntityID="1" />
<option numberOfRelations="3" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_prep" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option disableRelation="true" REL="2" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="3" REL_ENT="3" redistributeRelationEntityIndexReassignmentRelationID="3" redistributeRelationEntityIndexReassignmentRelationEntityID="2" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="3" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
</paramDepRel>
-->
<!-- #endif -->
<!-- #endif -->
<!-- #endif -->
</function>
<function name="redistributeStanfordRelationsDepAndPrepWithBe"> !-- extracted from redistributeStanfordRelationsMultiwordPreposition -->
<!-- #ifdefGIA_REDISTRIBUTE_STANFORD_RELATIONS_DEP_AND_PREP_WITH_BE -->
<!-- for queries only (1j6g) -->
<!-- Supports Stanford Parser/CoreNLP version 2+ e.g. 2013-04-04 -->
<!--
<example>
What are the patent claims on?
match dep with prep
dep(are-2, What-1) + nsubj(are-2, claims-5) + prep(are-2, on-6):
dep(are-2, What-1) + prep(are-2, on-6) => prep_on(are-2, What-1)
[then rely upon redistributeStanfordRelationsMultiwordPreposition() for nsubj(are-4, claims-3) / prep_on(are-4, frame-8) => prep_on(claims-3, frame-8)]
</example>
<paramDepRel mode="redistribute">
<option numberOfRelations="2" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_dep" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_prep" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="be" />
<option useRelationTest="true" REL="2" REL_ENT="1" relationTest="be" />
<option disableRelation="true" REL="1" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="3" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option disableEntity="true" REL="1" REL_ENT="1" />
</paramDepRel>
-->
<!-- Supports Stanford Parser/CoreNLP version 3+ e.g. 2014-01-04 -->
<example><!--
What are the patent claims on?
match dep with prep
dep(What-1, on-6) + nsubj(What-1, claims-5) + cop(What-1, are-2) => prep_on(claims-3, What-1)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_dep" />
<option useRelationTest="true" REL="2" REL_ENT="3" relationTest="_subj" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_cop" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="what" /> <!-- added specificity 17 April 2014 -->
<option useRelationTest="true" REL="3" REL_ENT="2" relationTest="be" />
<option disableRelation="true" REL="2" />
<option disableRelation="true" REL="3" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="3" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="2" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="1" REL_ENT="2" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="1" redistributeRelationEntityIndexReassignmentUseOriginalValues="true" />
<option disableEntity="true" REL="3" REL_ENT="2" />
</paramDepRel>
</function>
<!-- #endif -->
<!-- #ifdefGIA_REDISTRIBUTE_STANFORD_RELATIONS_NSUBJ_AND_PREPOSITION -->
<function name="redistributeStanfordRelationsSubjAndPreposition">
<example><!--
need to consider this case for the following example text;
The patent claims are on the frame.
The patent claims are on the cart frame, the wheels and the golf bag connection mechanism.
det(claims-3, The-1)
nn(claims-3, patent-2)
nsubj(are-4, claims-3)
root(ROOT-0, are-4)
det(frame-8, the-6)
nn(frame-8, cart-7)
prep_on(are-4, frame-8)
det(wheels-11, the-10)
prep_on(are-4, wheels-11)
conj_and(frame-8, wheels-11)
det(mechanism-17, the-13)
nn(mechanism-17, golf-14)
nn(mechanism-17, bag-15)
nn(mechanism-17, connection-16)
prep_on(are-4, mechanism-17)
conj_and(frame-8, mechanism-17)
--></example>
<!-- #ifdefGIA_INITIALISE_PREPOSITION_ENTITIES_AT_START_OF_TRANSLATOR -->
<!-- <=GIA_STANFORD_PARSER_AND_CORENLP_VERSION_2014_04_04_OR_GREATER only? GIA_STANFORD_PARSER_AND_CORENLP_VERSION_2015_04_20_OR_GREATER uses redistributeStanfordRelationsCase -->
<example><!--
eg [case added GIA 2c1c]
The chicken is not near the house.
nsubj(is-3, chicken-2) + prep_near(is-3, house-7) + neg(is-3, not-4) -> neg(near-5, not-4)
The chicken is sometimes near the house.
nsubj(is-3, chicken-2) + prep_near(is-3, house-7) + advmod(is-3, sometimes-4) -> advmod(near-5, sometimes-4)
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="3" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option expectToFindPrepositionTest="true" REL="2" />
<option useRelationArrayTest="true" REL="3" REL_ENT="3" relationArrayTest="_neg|_advmod" relationArrayTestSize="2" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="be" />
<option useRelationTest="true" REL="2" REL_ENT="1" relationTest="be" />
<option useRelationTest="true" REL="3" REL_ENT="1" relationTest="be" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="3" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="2" redistributeRelationEntityIndexReassignmentRelationEntityID="3" />
</paramDepRel>
<!-- #endif -->
<example><!--
eg1 look for nsubj/prep combination, eg nsubj(are-4, claims-3) + prep_on(are-4, frame-8) => prep_on(claims-3, frame-8)
eg2 case added 15 May 2012 for ; The claims that are on the frame are blue. , nsubj(are-4, claims-2) + prep_on(are-4, frame-7) + rcmod(claims-2, are-4)
{!-- OLD: look for nsubj/prep combination, eg nsubj(next-4, garage-2) + prep_to(next-4, house-7) => prep_subj(next_to, house) + prep_subj(next_to, garage) --}
--></example>
<paramDepRel mode="redistribute">
<option numberOfRelations="2" />
<option useRelationTest="true" REL="1" REL_ENT="3" relationTest="_subj" />
<option expectToFindPrepositionTest="true" REL="2" />
<option useRelationIndexTest="true" REL="2" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<!-- #ifdefGIA_REDISTRIBUTE_STANFORD_RELATIONS_NSUBJ_AND_PREPOSITION_OLD -->
<!--
<option useRedistributeRelationEntityReassignment="true" REL="1" REL_ENT="3" redistributeRelationEntityReassignment="_psubj" />
<option useRedistributeRelationEntityReassignment="true" REL="2" REL_ENT="3" redistributeRelationEntityReassignment="_pobj" />
<option useRedistributeSpecialCaseRelationEntityReassignmentConcatonate="true" REL="2" REL_ENT="1" />
<option redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationID="2" REL="2" REL_ENT="1" swapIndex="1" redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationEntityID="1" />
<option redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationID="2" REL="2" REL_ENT="1" swapIndex="2" redistributeSpecialCaseRelationEntityIndexReassignmentConcatonateRelationEntityID="3" />
<option redistributeSpecialCaseRelationEntityReassignmentConcatonateType="0" REL="2" REL_ENT="1" />
-->
<!-- #else -->
<option useRelationTest="true" REL="1" REL_ENT="1" relationTest="be" />
<option useRelationTest="true" REL="2" REL_ENT="1" relationTest="be" />
<option disableRelation="true" REL="1" />
<option useRedistributeRelationEntityIndexReassignment="true" REL="2" REL_ENT="1" redistributeRelationEntityIndexReassignmentRelationID="1" redistributeRelationEntityIndexReassignmentRelationEntityID="2" />
<option disableEntity="true" REL="1" REL_ENT="1" />
<!-- #ifdefGIA_RECORD_SAME_REFERENCE_SET_INFORMATION -->
<!--eg;
[case added 15 May 2012 for ]
The claims that are on the frame are blue.
nsubj(are-4, claims-2)
prep_on(are-4, frame-7)
rcmod(claims-2, are-4)
-->
<option useRedistributeSpecialCaseAuxiliaryIndicatesDifferentReferenceSetCheck="true" REL="2" />
<option useRelationTest="true" REL="3" REL_ENT="3" relationTest="_rcmod" />
<option useRelationIndexTest="true" REL="3" REL_ENT="2" relationIndexTestRelationID="1" relationIndexTestEntityID="1" />
<option useRelationIndexTest="true" REL="3" REL_ENT="1" relationIndexTestRelationID="1" relationIndexTestEntityID="2" />
<option useRelationTest="true" REL="3" REL_ENT="2" relationTest="be" />
<!-- #endif -->
</paramDepRel>
<!-- #endif -->
</function>
<!-- #endif -->
<function name="redistributeStanfordRelationsMultiwordPreposition"> <!-- CHECKTHIS: is this still required with -lrp enabled? -->
<example><!--
<!-- stanford parser prepositition reduction check (based upon http:
Y The woman is white according to John.
Y The job was complete apart from the axel.
Y As for Tim, he knew no other way.
Y As per physics, the ball fell.
N As regards the apple.
Y Aside from that, all was good.
N They went back to the mall.
Y It grew tall because of the water.
N He is close to the house.
N The computer broke due to the fire.
Y All is fine except for the carrot.
Y The house is far from the beach.
Y The man fell into the boat.
Y The kitten is inside of the box.
Y The kettle is noisy instead of quite.
N The house is left of the bank.
N The carriage is near to the horse.
N The farmer is next to the plank.
N The chicken goes on to the plank.
N The chicken when out of the box.
N The man is outside of the house.
N Owing to the weather, he bought the paint.
Y Prior to the fall, he ate a pie.
Y Regardless of the time, it will be done.
N Right of the house, is the beach.
N Subsequent to the holidays, it will be done.
N Thanks to his results, he will watch tv.
N is that of Tom's doing?
N He reached up to the sky.
N He eats chocolate, where as he is skinny. [Only possible for stanford core nlp - not for stanford parser]
N As far as they are concerned, nothing could be better. [Only possible for stanford core nlp - not for stanford parser]
Y He bought a pie as well as the cake.
collapse these prepositions;
[CaseD]
nsubj(broke-3, computer-2)
acomp(broke-3, due-4)
prep_to(due-4, fire-7)
[case added 1 June 2012]
He used a computer that broke due to the fire.
nsubj(broke-6, computer-4)
rcmod(computer-4, broke-6)
acomp(broke-6, due-7)
prep_to(due-7, fire-10)
[CaseA]
nsubj(close-3, He-1)
cop(close-3, is-2)
prep_to(close-3, house-6) [assert "to"/"of" prepositions 5 July 2013]
[CaseA]
nsubjpass(left-4, house-2)
auxpass(left-4, is-3)
prep_of(left-4, bank-7)
[DONE required to be removed based upon the following; In addition to fast assembly, time is saved by not having to connect and disconnect the golf cart and bag at the beginning and end of a game.]
nsubjpass(saved-9, time-7)
auxpass(saved-9, is-8)
prep_in_addition_to(saved-9, assembly-5)