mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
Handle raw_input vs input in Python 2 and 3
This commit is contained in:
parent
adbcac6591
commit
a6c0361803
|
@ -20,6 +20,12 @@ except NameError:
|
||||||
basestring = str
|
basestring = str
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
raw_input
|
||||||
|
except NameError: # Python 3
|
||||||
|
raw_input = input
|
||||||
|
|
||||||
|
|
||||||
LANGUAGES = {}
|
LANGUAGES = {}
|
||||||
_data_path = pathlib.Path(__file__).parent / 'data'
|
_data_path = pathlib.Path(__file__).parent / 'data'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user