diff --git a/spacy/parts_of_speech.pyx b/spacy/parts_of_speech.pyx index 98e3570ec..102d3fe3e 100644 --- a/spacy/parts_of_speech.pyx +++ b/spacy/parts_of_speech.pyx @@ -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) +