mirror of https://github.com/explosion/spaCy.git
* Fix variable naming in StepwiseState, for thinc 4.0
This commit is contained in:
parent
954442a807
commit
fc2185bfe3
|
@ -151,7 +151,7 @@ cdef class StepwiseState:
|
||||||
self.stcls = StateClass.init(doc.c, doc.length)
|
self.stcls = StateClass.init(doc.c, doc.length)
|
||||||
self.parser.moves.initialize_state(self.stcls)
|
self.parser.moves.initialize_state(self.stcls)
|
||||||
self.eg = Example(self.parser.model.nr_class, CONTEXT_SIZE,
|
self.eg = Example(self.parser.model.nr_class, CONTEXT_SIZE,
|
||||||
self.parser.model.n_feats, self.parser.model.n_feats)
|
self.parser.model.nr_feat, self.parser.model.nr_embed)
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Reference in New Issue