mirror of https://github.com/explosion/spaCy.git
* Set ent tag when close entity
This commit is contained in:
parent
9285f01d26
commit
5efad178b5
|
@ -269,6 +269,7 @@ cdef class Last:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
cdef int transition(StateClass st, int label) nogil:
|
cdef int transition(StateClass st, int label) nogil:
|
||||||
st.close_ent()
|
st.close_ent()
|
||||||
|
st.set_ent_tag(st.B(0), 2, label)
|
||||||
st.push()
|
st.push()
|
||||||
st.pop()
|
st.pop()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue