mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 01:32:32 +03:00
Fix global population of parts_of_speech enum
This commit is contained in:
parent
906bf04239
commit
ceda7b0732
|
@ -25,3 +25,9 @@ IDS = {
|
|||
|
||||
|
||||
NAMES = {value: key for key, value in IDS.items()}
|
||||
|
||||
|
||||
# As of Cython 3.1, the global Python namespace no longer has the enum
|
||||
# contents by default.
|
||||
globals().update(IDS)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user