diff --git a/spacy/util.py b/spacy/util.py index 1e48e5840..fb6788b98 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -8,6 +8,10 @@ import pathlib import six from .attrs import TAG, HEAD, DEP, ENT_IOB, ENT_TYPE +try: + basestring +except NameError: + basestring = str LANGUAGES = {} _data_path = pathlib.Path(__file__).parent / 'data'