You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @foxik, this is indeed an error, thanks! "NFP" is a new Penn treebank POS tag for Non-Final Punctuation, and I guess something is going wrong with our pipeline on it, and it's living on in the lemmas. This should be fixed.
* Fixes#88
* Implemented using the following DepEdit script:
```
#no special adverbial status for WH adverb subordinations
lemma=/^(when|how|where|while|why|whenever|wherever)$/&func=/mark/&head=/(.*)/&pos=/ADV/ none #1:pos=SCONJ
lemma=/^(when|how|where|while|why|whenever|wherever)$/&func=/advmod/&head=/(.*)/ none #1:func=mark;#1:pos=SCONJ;#1:head2=$2:mark
#exception for WH adverbs in questions, identified by question mark and not being an advcl
func!=/advcl/;lemma=/^(when|how|where|while|why|whenever|wherever)$/&pos=/SCONJ/&func=/mark/&head=/(.*)/;text=/^(\?+)!?$/ #1>#2;#2.*#3#2:func=advmod;#2:pos=ADV;#2:head2=$2:advmod
#exception for 'why not'
func=/root/;lemma=/why/&func=/mark/&head=/(.*)/;lemma=/not/\t#1>#2;#2.#3\t#2:func=advmod;#2:pos=ADV;#2:head2=$1:advmod
#exception for do support
func=/root/;lemma=/^(why|how|when|where)$/&func=/mark/&head=/(.*)/;lemma=/do/\t#1>#2;#2.#3\t#2:func=advmod;#2:pos=ADV;#2:head2=$2:advmod
```
Some lemmas with NFP part of speech have _NFP suffix, for example see first 20 NFP tokens in the training data:
Is this deliberate, or it is some kind of error or compatibility issue?
Personally I would drop the
_NFP
suffix of lemmas.EDIT: I updated the example to use -RRB- instead of ), I performed grep on wrong branch.
The text was updated successfully, but these errors were encountered: