mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
* Use the dynamic oracle 'follow' strategy
This commit is contained in:
parent
60ffdc2eb7
commit
95282d4993
|
@ -100,7 +100,7 @@ cdef class NERParser:
|
||||||
self.extractor.count(counts[guess.clas], self._feats, -1)
|
self.extractor.count(counts[guess.clas], self._feats, -1)
|
||||||
self.model.update(counts)
|
self.model.update(counts)
|
||||||
gold_str = self.tag_names[gold.clas]
|
gold_str = self.tag_names[gold.clas]
|
||||||
transition(s, gold)
|
transition(s, guess)
|
||||||
tokens.ner[s.i-1] = s.tags[s.i-1]
|
tokens.ner[s.i-1] = s.tags[s.i-1]
|
||||||
return n_correct
|
return n_correct
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user