mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +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
|
||||
|
||||
|
||||
try:
|
||||
raw_input
|
||||
except NameError: # Python 3
|
||||
raw_input = input
|
||||
|
||||
|
||||
LANGUAGES = {}
|
||||
_data_path = pathlib.Path(__file__).parent / 'data'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user