mirror of
https://github.com/explosion/spaCy.git
synced 2026-01-09 18:21:14 +03:00
Merge c015dd1fa6 into 305ffd5560
This commit is contained in:
commit
e3ada077a1
|
|
@ -91,6 +91,9 @@ IDS = {
|
|||
"MORPH": MORPH,
|
||||
"IDX": IDX,
|
||||
}
|
||||
# Make these ints in Python, so that we don't get this unexpected 'flag' type
|
||||
# This will match the behaviour before Cython 3
|
||||
IDS = {name: int(value) for name, value in IDS.items()}
|
||||
|
||||
|
||||
# ATTR IDs, in order of the symbol
|
||||
|
|
|
|||
|
|
@ -23,7 +23,9 @@ IDS = {
|
|||
"SPACE": SPACE
|
||||
}
|
||||
|
||||
|
||||
# Make these ints in Python, so that we don't get this unexpected 'flag' type
|
||||
# This will match the behaviour before Cython 3
|
||||
IDS = {name: int(value) for name, value in IDS.items()}
|
||||
NAMES = {value: key for key, value in IDS.items()}
|
||||
|
||||
# As of Cython 3.1, the global Python namespace no longer has the enum
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user