mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Replace cpdef variables with cdef (#7834)
This commit is contained in:
parent
95c0833656
commit
ceee1ecf17
|
@ -28,7 +28,7 @@ cdef class Candidate:
|
||||||
|
|
||||||
cdef class KnowledgeBase:
|
cdef class KnowledgeBase:
|
||||||
cdef Pool mem
|
cdef Pool mem
|
||||||
cpdef readonly Vocab vocab
|
cdef readonly Vocab vocab
|
||||||
cdef int64_t entity_vector_length
|
cdef int64_t entity_vector_length
|
||||||
|
|
||||||
# This maps 64bit keys (hash of unique entity string)
|
# This maps 64bit keys (hash of unique entity string)
|
||||||
|
|
|
@ -14,7 +14,7 @@ cdef class Tokenizer:
|
||||||
cdef Pool mem
|
cdef Pool mem
|
||||||
cdef PreshMap _cache
|
cdef PreshMap _cache
|
||||||
cdef PreshMap _specials
|
cdef PreshMap _specials
|
||||||
cpdef readonly Vocab vocab
|
cdef readonly Vocab vocab
|
||||||
|
|
||||||
cdef object _token_match
|
cdef object _token_match
|
||||||
cdef object _url_match
|
cdef object _url_match
|
||||||
|
|
|
@ -25,12 +25,12 @@ cdef struct _Cached:
|
||||||
|
|
||||||
cdef class Vocab:
|
cdef class Vocab:
|
||||||
cdef Pool mem
|
cdef Pool mem
|
||||||
cpdef readonly StringStore strings
|
cdef readonly StringStore strings
|
||||||
cpdef public Morphology morphology
|
cdef public Morphology morphology
|
||||||
cpdef public object vectors
|
cdef public object vectors
|
||||||
cpdef public object _lookups
|
cdef public object _lookups
|
||||||
cpdef public object writing_system
|
cdef public object writing_system
|
||||||
cpdef public object get_noun_chunks
|
cdef public object get_noun_chunks
|
||||||
cdef readonly int length
|
cdef readonly int length
|
||||||
cdef public object data_dir
|
cdef public object data_dir
|
||||||
cdef public object lex_attr_getters
|
cdef public object lex_attr_getters
|
||||||
|
|
Loading…
Reference in New Issue
Block a user