mirror of https://github.com/explosion/spaCy.git
Python 3 compatible basestring
This commit is contained in:
parent
3ed4cdfe32
commit
f19af6cb2c
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue