mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 10:55:52 +03:00
* Add type declarations in strings.pyx
This commit is contained in:
parent
5b2af4864f
commit
72abbb43fb
|
@ -96,6 +96,7 @@ cdef class StringStore:
|
||||||
cdef bytes byte_string
|
cdef bytes byte_string
|
||||||
cdef unicode py_string
|
cdef unicode py_string
|
||||||
cdef const Utf8Str* utf8str
|
cdef const Utf8Str* utf8str
|
||||||
|
|
||||||
cdef int id_
|
cdef int id_
|
||||||
if isinstance(string_or_id, int) or isinstance(string_or_id, long):
|
if isinstance(string_or_id, int) or isinstance(string_or_id, long):
|
||||||
if string_or_id == 0:
|
if string_or_id == 0:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user