Skip to content

Commit

Permalink
indefinite space and time pro-forms "somewhere", "anytime" etc. shoul…
Browse files Browse the repository at this point in the history
…d always be adverbs (#132); also apply PronType=Ind to the retagged ones (UniversalDependencies/docs#517)
  • Loading branch information
nschneid committed Jun 22, 2024
1 parent dc5c9c9 commit 3414421
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 41 deletions.
14 changes: 7 additions & 7 deletions en_ewt-ud-test.conllu
Original file line number Diff line number Diff line change
Expand Up @@ -5499,9 +5499,9 @@
1 i I PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 3 nsubj 3:nsubj _
2 was be AUX VBD Mood=Ind|Number=Sing|Person=3|Tense=Past|VerbForm=Fin 3 aux 3:aux _
3 thinking think VERB VBG Tense=Pres|VerbForm=Part 0 root 0:root _
4 somewhere somewhere NOUN NN Number=Sing 3 obj 3:obj|6:nsubj _
4 somewhere somewhere ADV RB PronType=Ind 3 obj 3:obj|6:nsubj _
5 that that PRON WDT PronType=Rel 6 nsubj 4:ref _
6 requires require VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 4 acl:relcl 4:acl:relcl Cxn=rc-that-nsubj
6 requires require VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 4 advcl:relcl 4:advcl:relcl Cxn=rc-that-nsubj
7 a a DET DT Definite=Ind|PronType=Art 8 det 8:det _
8 jacket jacket NOUN NN Number=Sing 6 obj 6:obj SpaceAfter=No
9 , , PUNCT , _ 11 punct 11:punct _
Expand All @@ -5513,11 +5513,11 @@

# sent_id = email-enronsent23_02-0002
# text = someplace that is like $30 an entree.
1 someplace someplace NOUN NN Number=Sing 0 root 0:root|5:nsubj _
1 someplace someplace ADV RB PronType=Ind 0 root 0:root|5:nsubj _
2 that that PRON WDT PronType=Rel 5 nsubj 1:ref _
3 is be AUX VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 5 cop 5:cop _
4 like like ADP IN _ 5 case 5:case _
5 $ $ SYM $ _ 1 acl:relcl 1:acl:relcl Cxn=rc-that-nsubj|SpaceAfter=No
5 $ $ SYM $ _ 1 advcl:relcl 1:advcl:relcl Cxn=rc-that-nsubj|SpaceAfter=No
6 30 30 NUM CD NumForm=Digit|NumType=Card 5 nummod 5:nummod _
7 an a DET DT Definite=Ind|PronType=Art 8 det 8:det _
8 entree entree NOUN NN Number=Sing 5 nmod:npmod 5:nmod:npmod SpaceAfter=No
Expand All @@ -5531,7 +5531,7 @@
3 i I PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 5 nsubj 5:nsubj _
4 was be AUX VBD Mood=Ind|Number=Sing|Person=1|Tense=Past|VerbForm=Fin 5 aux 5:aux _
5 thinking think VERB VBG Tense=Pres|VerbForm=Part 0 root 0:root _
6 somewhere somewhere NOUN NN Number=Sing 5 obj 5:obj _
6 somewhere somewhere ADV RB PronType=Ind 5 obj 5:obj _
7 like like ADP IN _ 8 case 8:case _
8-9 mcdonald's _ _ _ _ _ _ _ SpaceAfter=No
8 mcdonald McDonald PROPN NNP Number=Sing 6 nmod 6:nmod:like _
Expand Down Expand Up @@ -5562,7 +5562,7 @@
1 we we PRON PRP Case=Nom|Number=Plur|Person=1|PronType=Prs 3 nsubj 3:nsubj _
2 can can AUX MD VerbForm=Fin 3 aux 3:aux _
3 go go VERB VB VerbForm=Inf 0 root 0:root _
4 somewhere somewhere NOUN NN Number=Sing 3 obl 3:obl _
4 somewhere somewhere ADV RB PronType=Ind 3 advmod 3:advmod _
5 nice nice ADJ JJ Degree=Pos 4 amod 4:amod SpaceAfter=No
6 . . PUNCT . _ 3 punct 3:punct _

Expand Down Expand Up @@ -24873,7 +24873,7 @@
8 deal deal NOUN NN Number=Sing 6 obj 6:obj|10:obj _
9 you you PRON PRP Case=Nom|Person=2|PronType=Prs 10 nsubj 10:nsubj _
10 want want VERB VBP Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin 8 acl:relcl 8:acl:relcl Cxn=rc-red-obj
11 anytime anytime NOUN NN Number=Sing 6 obl:tmod 6:obl:tmod SpaceAfter=No
11 anytime anytime ADV RB PronType=Ind 6 advmod 6:advmod SpaceAfter=No
12 . . PUNCT . _ 6 punct 6:punct _

# sent_id = answers-20111103205154AAOod9K_ans-0009
Expand Down
22 changes: 11 additions & 11 deletions en_ewt-ud-train.conllu
Original file line number Diff line number Diff line change
Expand Up @@ -152618,7 +152618,7 @@
20 set set VERB VB Mood=Imp|VerbForm=Fin 1 conj 1:conj:and _
21 it it PRON PRP Case=Acc|Gender=Neut|Number=Sing|Person=3|PronType=Prs 20 obj 20:obj _
22 to to ADP IN _ 23 case 23:case _
23 anywhere anywhere NOUN NN Number=Sing 20 obl 20:obl:to _
23 anywhere anywhere ADV RB PronType=Ind 20 obl 20:obl:to _
24 between between ADP IN _ 25 case 25:case _
25 78 78 NUM CD NumForm=Digit|NumType=Card 23 nmod 23:nmod:between SpaceAfter=No
26 - - SYM SYM _ 27 case 27:case SpaceAfter=No
Expand Down Expand Up @@ -172491,12 +172491,12 @@
9 and and CCONJ CC _ 11 cc 11:cc _
10 long long ADJ JJ Degree=Pos 11 amod 11:amod _
11 sleeves sleeve NOUN NNS Number=Plur 8 conj 7:obj|8:conj:and _
12 anytime anytime NOUN NN Number=Sing 7 obl:tmod 7:obl:tmod|16:obl _
12 anytime anytime ADV RB PronType=Ind 7 advmod 7:advmod|16:advmod _
13-14 you'll _ _ _ _ _ _ _ _
13 you you PRON PRP Case=Nom|Person=2|PronType=Prs 16 nsubj 16:nsubj _
14 'll will AUX MD VerbForm=Fin 16 aux 16:aux _
15 be be AUX VB VerbForm=Inf 16 aux 16:aux _
16 interacting interact VERB VBG Tense=Pres|VerbForm=Part 12 acl:relcl 12:acl:relcl Cxn=rc-red-obl
16 interacting interact VERB VBG Tense=Pres|VerbForm=Part 12 advcl:relcl 12:advcl:relcl Cxn=rc-red-advmod
17 with with ADP IN _ 19 case 19:case _
18 the the DET DT Definite=Def|PronType=Art 19 det 19:det _
19 kittens kitten NOUN NNS Number=Plur 16 obl 16:obl:with SpaceAfter=No
Expand Down Expand Up @@ -174613,13 +174613,13 @@
7 Europass Europass PROPN NNP Number=Sing 3 obj 3:obj _
8 and and CCONJ CC _ 9 cc 9:cc _
9 travelling travel VERB VBG VerbForm=Ger 3 conj 2:xcomp|3:conj:and _
10 anywhere anywhere NOUN NN Number=Sing 9 obj 9:obj|16:obl _
10 anywhere anywhere ADV RB PronType=Ind 9 advmod 9:advmod|16:advmod _
11 in in ADP IN _ 13 case 13:case _
12 the the DET DT Definite=Def|PronType=Art 13 det 13:det _
13 EU EU PROPN NNP Number=Sing 10 nmod 10:nmod:in _
14 your your PRON PRP$ Case=Gen|Person=2|Poss=Yes|PronType=Prs 15 nmod:poss 15:nmod:poss _
15 heart heart NOUN NN Number=Sing 16 nsubj 16:nsubj _
16 desires desire VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 10 acl:relcl 10:acl:relcl Cxn=rc-red-obl|SpaceAfter=No
16 desires desire VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 10 advcl:relcl 10:advcl:relcl Cxn=rc-red-advmod|SpaceAfter=No
17 . . PUNCT . _ 2 punct 2:punct _

# sent_id = answers-20111108102445AA5mfrq_ans-0040
Expand Down Expand Up @@ -179823,7 +179823,7 @@
12 compare compare VERB VB Mood=Imp|VerbForm=Fin 1 parataxis 1:parataxis _
13 it it PRON PRP Case=Acc|Gender=Neut|Number=Sing|Person=3|PronType=Prs 12 obj 12:obj _
14 to to ADP IN _ 15 case 15:case _
15 somewhere somewhere NOUN NN Number=Sing 12 obl 12:obl:to _
15 somewhere somewhere ADV RB PronType=Ind 12 obl 12:obl:to _
16 like like ADP IN _ 18 case 18:case _
17 Central Central ADJ NNP Degree=Pos 18 amod 18:amod _
18 Otago Otago PROPN NNP Number=Sing 15 nmod 15:nmod:like SpaceAfter=No
Expand Down Expand Up @@ -181606,7 +181606,7 @@
17 and and CCONJ CC _ 18 cc 18:cc _
18 has have VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 14 conj 14:conj:and _
19 no nowhere ADV GW PronType=Neg|Typo=Yes 18 obj 18:obj _
20 where _ X NN _ 19 goeswith 19:goeswith _
20 where _ X RB _ 19 goeswith 19:goeswith _
21 to to PART TO _ 22 mark 22:mark _
22 go go VERB VB VerbForm=Inf 19 advcl 19:advcl:to SpaceAfter=No
23 . . PUNCT . _ 2 punct 2:punct _
Expand Down Expand Up @@ -200077,11 +200077,11 @@
2 cold could AUX MD Typo=Yes|VerbForm=Fin 4 aux 4:aux CorrectForm=could
3 n't not PART RB Polarity=Neg 4 advmod 4:advmod _
4 find find VERB VB VerbForm=Inf 0 root 0:root _
5 anywere anywhere NOUN NN Number=Sing|Typo=Yes 4 obj 4:obj CorrectForm=anywhere
5 anywere anywhere ADV RB PronType=Ind|Typo=Yes 4 obj 4:obj CorrectForm=anywhere
6 else else ADJ JJ Degree=Pos 5 amod 5:amod _
7 local local ADJ JJ Degree=Pos 5 amod 5:amod _
8 to to PART TO _ 9 mark 9:mark _
9 fix fix VERB VB VerbForm=Inf 5 acl 5:acl:to _
9 fix fix VERB VB VerbForm=Inf 5 advcl 5:advcl:to _
10 it it PRON PRP Case=Nom|Gender=Neut|Number=Sing|Person=3|PronType=Prs 9 obj 9:obj _
11 so so ADV RB _ 13 advmod 13:advmod _
12 i I PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 13 nsubj 13:nsubj _
Expand Down Expand Up @@ -201480,7 +201480,7 @@
2 wanted want VERB VBD Mood=Ind|Number=Sing|Person=1|Tense=Past|VerbForm=Fin 0 root 0:root _
3 to to PART TO _ 4 mark 4:mark _
4 try try VERB VB VerbForm=Inf 2 xcomp 2:xcomp _
5 someplace someplace NOUN NN Number=Sing 4 obj 4:obj _
5 someplace someplace ADV RB PronType=Ind 4 obj 4:obj _
6 new new ADJ JJ Degree=Pos 5 amod 5:amod _
7 again again ADV RB _ 4 advmod 4:advmod SpaceAfter=No
8 . . PUNCT . _ 2 punct 2:punct _
Expand Down Expand Up @@ -202874,7 +202874,7 @@
10 for for ADP IN _ 12 case 12:case _
11 a a DET DT Definite=Ind|PronType=Art 12 det 12:det _
12 lawyer lawyer NOUN NN Number=Sing 9 nmod 9:nmod:for _
13 anytime anytime NOUN NN Number=Sing 7 obl:tmod 7:obl:tmod _
13 anytime anytime ADV RB PronType=Ind 7 advmod 7:advmod _
14 soon soon ADV RB Degree=Pos 13 advmod 13:advmod SpaceAfter=No
15 , , PUNCT , _ 3 punct 3:punct _
16 if if SCONJ IN _ 18 mark 18:mark _
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
8 deal deal NOUN NN Number=Sing 6 obj 6:obj|10:obj _
9 you you PRON PRP Case=Nom|Person=2|PronType=Prs 10 nsubj 10:nsubj _
10 want want VERB VBP Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin 8 acl:relcl 8:acl:relcl Cxn=rc-red-obj
11 anytime anytime NOUN NN Number=Sing 6 obl:tmod 6:obl:tmod SpaceAfter=No
11 anytime anytime ADV RB PronType=Ind 6 advmod 6:advmod SpaceAfter=No
12 . . PUNCT . _ 6 punct 6:punct _

# sent_id = answers-20111103205154AAOod9K_ans-0009
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@
12 compare compare VERB VB Mood=Imp|VerbForm=Fin 1 parataxis 1:parataxis _
13 it it PRON PRP Case=Acc|Gender=Neut|Number=Sing|Person=3|PronType=Prs 12 obj 12:obj _
14 to to ADP IN _ 15 case 15:case _
15 somewhere somewhere NOUN NN Number=Sing 12 obl 12:obl:to _
15 somewhere somewhere ADV RB PronType=Ind 12 obl 12:obl:to _
16 like like ADP IN _ 18 case 18:case _
17 Central Central ADJ NNP Degree=Pos 18 amod 18:amod _
18 Otago Otago PROPN NNP Number=Sing 15 nmod 15:nmod:like SpaceAfter=No
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,13 +623,13 @@
7 Europass Europass PROPN NNP Number=Sing 3 obj 3:obj _
8 and and CCONJ CC _ 9 cc 9:cc _
9 travelling travel VERB VBG VerbForm=Ger 3 conj 2:xcomp|3:conj:and _
10 anywhere anywhere NOUN NN Number=Sing 9 obj 9:obj|16:obl _
10 anywhere anywhere ADV RB PronType=Ind 9 advmod 9:advmod|16:advmod _
11 in in ADP IN _ 13 case 13:case _
12 the the DET DT Definite=Def|PronType=Art 13 det 13:det _
13 EU EU PROPN NNP Number=Sing 10 nmod 10:nmod:in _
14 your your PRON PRP$ Case=Gen|Person=2|Poss=Yes|PronType=Prs 15 nmod:poss 15:nmod:poss _
15 heart heart NOUN NN Number=Sing 16 nsubj 16:nsubj _
16 desires desire VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 10 acl:relcl 10:acl:relcl Cxn=rc-red-obl|SpaceAfter=No
16 desires desire VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 10 advcl:relcl 10:advcl:relcl Cxn=rc-red-advmod|SpaceAfter=No
17 . . PUNCT . _ 2 punct 2:punct _

# sent_id = answers-20111108102445AA5mfrq_ans-0040
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
20 set set VERB VB Mood=Imp|VerbForm=Fin 1 conj 1:conj:and _
21 it it PRON PRP Case=Acc|Gender=Neut|Number=Sing|Person=3|PronType=Prs 20 obj 20:obj _
22 to to ADP IN _ 23 case 23:case _
23 anywhere anywhere NOUN NN Number=Sing 20 obl 20:obl:to _
23 anywhere anywhere ADV RB PronType=Ind 20 obl 20:obl:to _
24 between between ADP IN _ 25 case 25:case _
25 78 78 NUM CD NumForm=Digit|NumType=Card 23 nmod 23:nmod:between SpaceAfter=No
26 - - SYM SYM _ 27 case 27:case SpaceAfter=No
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@
9 and and CCONJ CC _ 11 cc 11:cc _
10 long long ADJ JJ Degree=Pos 11 amod 11:amod _
11 sleeves sleeve NOUN NNS Number=Plur 8 conj 7:obj|8:conj:and _
12 anytime anytime NOUN NN Number=Sing 7 obl:tmod 7:obl:tmod|16:obl _
12 anytime anytime ADV RB PronType=Ind 7 advmod 7:advmod|16:advmod _
13-14 you'll _ _ _ _ _ _ _ _
13 you you PRON PRP Case=Nom|Person=2|PronType=Prs 16 nsubj 16:nsubj _
14 'll will AUX MD VerbForm=Fin 16 aux 16:aux _
15 be be AUX VB VerbForm=Inf 16 aux 16:aux _
16 interacting interact VERB VBG Tense=Pres|VerbForm=Part 12 acl:relcl 12:acl:relcl Cxn=rc-red-obl
16 interacting interact VERB VBG Tense=Pres|VerbForm=Part 12 advcl:relcl 12:advcl:relcl Cxn=rc-red-advmod
17 with with ADP IN _ 19 case 19:case _
18 the the DET DT Definite=Def|PronType=Art 19 det 19:det _
19 kittens kitten NOUN NNS Number=Plur 16 obl 16:obl:with SpaceAfter=No
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
17 and and CCONJ CC _ 18 cc 18:cc _
18 has have VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 14 conj 14:conj:and _
19 no nowhere ADV GW PronType=Neg|Typo=Yes 18 obj 18:obj _
20 where _ X NN _ 19 goeswith 19:goeswith _
20 where _ X RB _ 19 goeswith 19:goeswith _
21 to to PART TO _ 22 mark 22:mark _
22 go go VERB VB VerbForm=Inf 19 advcl 19:advcl:to SpaceAfter=No
23 . . PUNCT . _ 2 punct 2:punct _
Expand Down
12 changes: 6 additions & 6 deletions not-to-release/sources/email/enronsent23_02.xml.conllu
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
1 i I PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 3 nsubj 3:nsubj _
2 was be AUX VBD Mood=Ind|Number=Sing|Person=3|Tense=Past|VerbForm=Fin 3 aux 3:aux _
3 thinking think VERB VBG Tense=Pres|VerbForm=Part 0 root 0:root _
4 somewhere somewhere NOUN NN Number=Sing 3 obj 3:obj|6:nsubj _
4 somewhere somewhere ADV RB PronType=Ind 3 obj 3:obj|6:nsubj _
5 that that PRON WDT PronType=Rel 6 nsubj 4:ref _
6 requires require VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 4 acl:relcl 4:acl:relcl Cxn=rc-that-nsubj
6 requires require VERB VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 4 advcl:relcl 4:advcl:relcl Cxn=rc-that-nsubj
7 a a DET DT Definite=Ind|PronType=Art 8 det 8:det _
8 jacket jacket NOUN NN Number=Sing 6 obj 6:obj SpaceAfter=No
9 , , PUNCT , _ 11 punct 11:punct _
Expand All @@ -19,11 +19,11 @@

# sent_id = email-enronsent23_02-0002
# text = someplace that is like $30 an entree.
1 someplace someplace NOUN NN Number=Sing 0 root 0:root|5:nsubj _
1 someplace someplace ADV RB PronType=Ind 0 root 0:root|5:nsubj _
2 that that PRON WDT PronType=Rel 5 nsubj 1:ref _
3 is be AUX VBZ Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin 5 cop 5:cop _
4 like like ADP IN _ 5 case 5:case _
5 $ $ SYM $ _ 1 acl:relcl 1:acl:relcl Cxn=rc-that-nsubj|SpaceAfter=No
5 $ $ SYM $ _ 1 advcl:relcl 1:advcl:relcl Cxn=rc-that-nsubj|SpaceAfter=No
6 30 30 NUM CD NumForm=Digit|NumType=Card 5 nummod 5:nummod _
7 an a DET DT Definite=Ind|PronType=Art 8 det 8:det _
8 entree entree NOUN NN Number=Sing 5 nmod:npmod 5:nmod:npmod SpaceAfter=No
Expand All @@ -37,7 +37,7 @@
3 i I PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 5 nsubj 5:nsubj _
4 was be AUX VBD Mood=Ind|Number=Sing|Person=1|Tense=Past|VerbForm=Fin 5 aux 5:aux _
5 thinking think VERB VBG Tense=Pres|VerbForm=Part 0 root 0:root _
6 somewhere somewhere NOUN NN Number=Sing 5 obj 5:obj _
6 somewhere somewhere ADV RB PronType=Ind 5 obj 5:obj _
7 like like ADP IN _ 8 case 8:case _
8-9 mcdonald's _ _ _ _ _ _ _ SpaceAfter=No
8 mcdonald McDonald PROPN NNP Number=Sing 6 nmod 6:nmod:like _
Expand Down Expand Up @@ -68,7 +68,7 @@
1 we we PRON PRP Case=Nom|Number=Plur|Person=1|PronType=Prs 3 nsubj 3:nsubj _
2 can can AUX MD VerbForm=Fin 3 aux 3:aux _
3 go go VERB VB VerbForm=Inf 0 root 0:root _
4 somewhere somewhere NOUN NN Number=Sing 3 obl 3:obl _
4 somewhere somewhere ADV RB PronType=Ind 3 advmod 3:advmod _
5 nice nice ADJ JJ Degree=Pos 4 amod 4:amod SpaceAfter=No
6 . . PUNCT . _ 3 punct 3:punct _

Expand Down
2 changes: 1 addition & 1 deletion not-to-release/sources/reviews/077414.xml.conllu
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
10 for for ADP IN _ 12 case 12:case _
11 a a DET DT Definite=Ind|PronType=Art 12 det 12:det _
12 lawyer lawyer NOUN NN Number=Sing 9 nmod 9:nmod:for _
13 anytime anytime NOUN NN Number=Sing 7 obl:tmod 7:obl:tmod _
13 anytime anytime ADV RB PronType=Ind 7 advmod 7:advmod _
14 soon soon ADV RB Degree=Pos 13 advmod 13:advmod SpaceAfter=No
15 , , PUNCT , _ 3 punct 3:punct _
16 if if SCONJ IN _ 18 mark 18:mark _
Expand Down
4 changes: 2 additions & 2 deletions not-to-release/sources/reviews/100592.xml.conllu
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
2 cold could AUX MD Typo=Yes|VerbForm=Fin 4 aux 4:aux CorrectForm=could
3 n't not PART RB Polarity=Neg 4 advmod 4:advmod _
4 find find VERB VB VerbForm=Inf 0 root 0:root _
5 anywere anywhere NOUN NN Number=Sing|Typo=Yes 4 obj 4:obj CorrectForm=anywhere
5 anywere anywhere ADV RB PronType=Ind|Typo=Yes 4 obj 4:obj CorrectForm=anywhere
6 else else ADJ JJ Degree=Pos 5 amod 5:amod _
7 local local ADJ JJ Degree=Pos 5 amod 5:amod _
8 to to PART TO _ 9 mark 9:mark _
9 fix fix VERB VB VerbForm=Inf 5 acl 5:acl:to _
9 fix fix VERB VB VerbForm=Inf 5 advcl 5:advcl:to _
10 it it PRON PRP Case=Nom|Gender=Neut|Number=Sing|Person=3|PronType=Prs 9 obj 9:obj _
11 so so ADV RB _ 13 advmod 13:advmod _
12 i I PRON PRP Case=Nom|Number=Sing|Person=1|PronType=Prs 13 nsubj 13:nsubj _
Expand Down
2 changes: 1 addition & 1 deletion not-to-release/sources/reviews/112661.xml.conllu
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
2 wanted want VERB VBD Mood=Ind|Number=Sing|Person=1|Tense=Past|VerbForm=Fin 0 root 0:root _
3 to to PART TO _ 4 mark 4:mark _
4 try try VERB VB VerbForm=Inf 2 xcomp 2:xcomp _
5 someplace someplace NOUN NN Number=Sing 4 obj 4:obj _
5 someplace someplace ADV RB PronType=Ind 4 obj 4:obj _
6 new new ADJ JJ Degree=Pos 5 amod 5:amod _
7 again again ADV RB _ 4 advmod 4:advmod SpaceAfter=No
8 . . PUNCT . _ 2 punct 2:punct _
Expand Down
21 changes: 16 additions & 5 deletions not-to-release/tools/neaten.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,14 @@ def flag_dep_warnings(id, tok, pos, upos, lemma, func, edeps, parent, parent_lem

if func == "case" and upos == "SCONJ" and "fixed" not in child_funcs:
print("WARN: SCONJ/case combination is invalid in " + docname + " @ token " + str(id) + " (" + tok + " <- " + parent + ")")

# indefinites of time and place
if lemma in ["anytime", "anyplace", "anywhere", "sometime", "someplace", "somewhere", "nowhere"]:
if (pos != "RB" or upos != "ADV"):
# https://github.com/UniversalDependencies/UD_English-EWT/issues/132
print(f"WARN: indefinite time or place pro-form tagging {upos}/{pos} is invalid, should be ADV/RB in " + docname + " @ token " + str(id) + " (" + tok + " <- " + parent + ")")
if func.startswith("obl:"):
print(f"WARN: indefinite time or place pro-form tagging {upos}/{pos} is invalid, should be ADV/RB in " + docname + " @ token " + str(id) + " (" + tok + " <- " + parent + ")")

"""
Existential construction
Expand Down Expand Up @@ -1384,11 +1392,14 @@ def flag_feats_warnings(id, tok, pos, upos, lemma, feats, misc, docname):
("there", "RB"):{"PronType":"Dem","LEMMA":"there"},
("neither", "RB"):{"PronType":"Neg","LEMMA":"neither"},
("never", "RB"):{"PronType":"Neg","LEMMA":"never"},
("nowhere", "RB"):{"PronType":"Neg","LEMMA":"nowhere"}
# neither, never, nowhere PronType=Neg
# always, everywhere PronType=Tot
# anyplace, anytime, anywhere PronType=Ind
# someplace, sometime(s), somewhere PronType=Ind
("nowhere", "RB"):{"PronType":"Neg","LEMMA":"nowhere"},
("anyplace", "RB"):{"PronType":"Ind","LEMMA":"anyplace"},
("anytime", "RB"):{"PronType":"Ind","LEMMA":"anytime"},
("anywhere", "RB"):{"PronType":"Ind","LEMMA":"anywhere"},
("someplace", "RB"):{"PronType":"Ind","LEMMA":"someplace"},
("sometime", "RB"):{"PronType":"Ind","LEMMA":"sometime"},
("sometimes", "RB"):{"PronType":"Ind","LEMMA":"sometimes"},
("somewhere", "RB"):{"PronType":"Ind","LEMMA":"somewhere"}
# ever, either PronType=Ind
}
ADV_LEMMAS = {v["LEMMA"] for k,v in ADVS.items()}
Expand Down

0 comments on commit 3414421

Please sign in to comment.