Add PRON_LEMMA to spacy.symbols

This commit is contained in:
Matthew Honnibal 2017-11-06 17:38:25 +01:00
parent 2f7e9f390d
commit 7d46793dd7

View File

@ -461,7 +461,7 @@ IDS = {
"xcomp": xcomp, "xcomp": xcomp,
"acl": acl, "acl": acl,
"LAW": LAW "LAW": LAW,
} }
@ -469,6 +469,7 @@ def sort_nums(x):
return x[1] return x[1]
PRON_LEMMA = "-PRON-"
NAMES = [it[0] for it in sorted(IDS.items(), key=sort_nums)] NAMES = [it[0] for it in sorted(IDS.items(), key=sort_nums)]
# Unfortunate hack here, to work around problem with long cpdef enum # Unfortunate hack here, to work around problem with long cpdef enum
# (which is generating an enormous amount of C++ in Cython 0.24+) # (which is generating an enormous amount of C++ in Cython 0.24+)