mirror of https://github.com/explosion/spaCy.git
* 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 unicode py_string
|
||||
cdef const Utf8Str* utf8str
|
||||
|
||||
cdef int id_
|
||||
if isinstance(string_or_id, int) or isinstance(string_or_id, long):
|
||||
if string_or_id == 0:
|
||||
|
|
Loading…
Reference in New Issue