mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-01 03:33:12 +03:00
Reorganise and explicitly state what's importable
This commit is contained in:
parent
57beef5d36
commit
33decd85b6
|
@ -16,6 +16,11 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import copyreg as copy_reg
|
import copyreg as copy_reg
|
||||||
|
|
||||||
|
pickle = pickle
|
||||||
|
copy_reg = copy_reg
|
||||||
|
CudaStream = CudaStream
|
||||||
|
cupy = cupy
|
||||||
|
fix_text = ftfy.fix_text
|
||||||
|
|
||||||
is_python2 = six.PY2
|
is_python2 = six.PY2
|
||||||
is_python3 = six.PY3
|
is_python3 = six.PY3
|
||||||
|
@ -23,8 +28,6 @@ is_windows = sys.platform.startswith('win')
|
||||||
is_linux = sys.platform.startswith('linux')
|
is_linux = sys.platform.startswith('linux')
|
||||||
is_osx = sys.platform == 'darwin'
|
is_osx = sys.platform == 'darwin'
|
||||||
|
|
||||||
fix_text = ftfy.fix_text
|
|
||||||
|
|
||||||
|
|
||||||
if is_python2:
|
if is_python2:
|
||||||
bytes_ = str
|
bytes_ = str
|
||||||
|
|
Loading…
Reference in New Issue
Block a user