mirror of https://github.com/explosion/spaCy.git
* Move Span class to own file
This commit is contained in:
parent
6f47a667cf
commit
1320bd19db
|
@ -98,14 +98,14 @@ cdef int fill_context(atom_t* context, State* state) except -1:
|
||||||
context[S2_has_head] = has_head(get_s2(state))
|
context[S2_has_head] = has_head(get_s2(state))
|
||||||
|
|
||||||
ner = (
|
ner = (
|
||||||
(N0w,),
|
(N0W,),
|
||||||
(P1w,),
|
(P1W,),
|
||||||
(N1w,),
|
(N1W,),
|
||||||
(P2w,),
|
(P2W,),
|
||||||
(N2w,),
|
(N2W,),
|
||||||
|
|
||||||
(P1w, N0w,),
|
(P1W, N0W,),
|
||||||
(N0w, N1w),
|
(N0W, N1W),
|
||||||
|
|
||||||
(N0_prefix,),
|
(N0_prefix,),
|
||||||
(N0_suffix,),
|
(N0_suffix,),
|
||||||
|
@ -144,13 +144,13 @@ ner = (
|
||||||
(P1c, N0c),
|
(P1c, N0c),
|
||||||
(N0c, N1c),
|
(N0c, N1c),
|
||||||
|
|
||||||
(E0w,),
|
(E0W,),
|
||||||
(E0c,),
|
(E0c,),
|
||||||
(E0p,),
|
(E0p,),
|
||||||
|
|
||||||
(E0w, N0w),
|
(E0W, N0W),
|
||||||
(E0c, N0w),
|
(E0c, N0W),
|
||||||
(E0p, N0w),
|
(E0p, N0W),
|
||||||
|
|
||||||
(E0p, P1p, N0p),
|
(E0p, P1p, N0p),
|
||||||
(E0c, P1c, N0c),
|
(E0c, P1c, N0c),
|
||||||
|
@ -161,14 +161,14 @@ ner = (
|
||||||
(E0p, E1p),
|
(E0p, E1p),
|
||||||
(E0c, P1p),
|
(E0c, P1p),
|
||||||
|
|
||||||
(E1w,),
|
(E1W,),
|
||||||
(E1c,),
|
(E1c,),
|
||||||
(E1p,),
|
(E1p,),
|
||||||
|
|
||||||
(E0w, E1w),
|
(E0W, E1W),
|
||||||
(E0w, E1p,),
|
(E0W, E1p,),
|
||||||
(E0p, E1w,),
|
(E0p, E1W,),
|
||||||
(E0p, E1w),
|
(E0p, E1W),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -52,12 +52,6 @@ cdef class Tokens:
|
||||||
cdef int set_parse(self, const TokenC* parsed) except -1
|
cdef int set_parse(self, const TokenC* parsed) except -1
|
||||||
|
|
||||||
|
|
||||||
cdef class Span:
|
|
||||||
cdef Tokens _seq
|
|
||||||
cdef public int start
|
|
||||||
cdef public int end
|
|
||||||
|
|
||||||
|
|
||||||
cdef class Token:
|
cdef class Token:
|
||||||
cdef Vocab vocab
|
cdef Vocab vocab
|
||||||
cdef unicode _string
|
cdef unicode _string
|
||||||
|
|
Loading…
Reference in New Issue