mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 13:47:13 +03:00
18 lines
393 B
Cython
18 lines
393 B
Cython
from libcpp.vector cimport vector
|
|
|
|
from ..typedefs cimport hash_t
|
|
from .kb_in_memory cimport InMemoryLookupKB
|
|
|
|
|
|
cdef class Candidate:
|
|
pass
|
|
|
|
|
|
cdef class InMemoryCandidate(Candidate):
|
|
cdef readonly hash_t _entity_hash
|
|
cdef readonly hash_t _alias_hash
|
|
cdef vector[float] _entity_vector
|
|
cdef float _prior_prob
|
|
cdef readonly InMemoryLookupKB _kb
|
|
cdef float _entity_freq
|