mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
Set is_tagged=True after tagging
This commit is contained in:
parent
8a683a4494
commit
193bf913c0
|
@ -235,6 +235,7 @@ class NeuralTagger(object):
|
|||
for j, tag_id in enumerate(doc_tag_ids):
|
||||
vocab.morphology.assign_tag_id(&doc.c[j], tag_id)
|
||||
idx += 1
|
||||
doc.is_tagged = True
|
||||
|
||||
def update(self, docs_tokvecs, golds, drop=0., sgd=None, losses=None):
|
||||
docs, tokvecs = docs_tokvecs
|
||||
|
|
Loading…
Reference in New Issue
Block a user