Remove cpdef enum, to avoid too much code generation

This commit is contained in:
Matthew Honnibal 2017-10-20 14:00:23 +02:00
parent 6218af0105
commit 506cf2eb13

View File

@ -426,3 +426,7 @@ IDS = {
NAMES = [key for key, value in sorted(IDS.items(), key=lambda item: item[1])] NAMES = [key for key, value in sorted(IDS.items(), key=lambda item: item[1])]
# Unfortunate hack here, to work around problem with long cpdef enum
# (which is generating an enormous amount of C++ in Cython 0.24+)
# We keep the enum cdef, and just make sure the names are available to Python
locals().update(IDS)