Python 3 compatible basestring

This commit is contained in:
Matthew Honnibal 2016-09-24 22:08:43 +02:00
parent 3ed4cdfe32
commit f19af6cb2c

View File

@ -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'