mirror of https://github.com/explosion/spaCy.git
* Whitespace
This commit is contained in:
parent
9de98f5a6f
commit
2c9753eff2
|
@ -109,7 +109,7 @@ cdef bint label_is_gold(const GoldParseC* gold, int head, int child, int label)
|
||||||
|
|
||||||
cdef bint _is_gold_root(const GoldParseC* gold, int word) nogil:
|
cdef bint _is_gold_root(const GoldParseC* gold, int word) nogil:
|
||||||
return gold.labels[word] == -1 or gold.heads[word] == word
|
return gold.labels[word] == -1 or gold.heads[word] == word
|
||||||
|
|
||||||
|
|
||||||
cdef class Shift:
|
cdef class Shift:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -71,7 +71,6 @@ cdef class StateClass:
|
||||||
return -1
|
return -1
|
||||||
return self._sent[i].head + i
|
return self._sent[i].head + i
|
||||||
|
|
||||||
|
|
||||||
cdef int E(self, int i) nogil
|
cdef int E(self, int i) nogil
|
||||||
|
|
||||||
cdef int R(self, int i, int idx) nogil
|
cdef int R(self, int i, int idx) nogil
|
||||||
|
|
Loading…
Reference in New Issue