Fix indentation error and set Doc.is_tagged correctly

This commit is contained in:
ines 2018-04-10 16:14:52 +02:00
parent 0e847d7fe5
commit 5ecb274764
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ class Tagger(Pipe):
doc.extend_tensor(tensors[i].get())
else:
doc.extend_tensor(tensors[i])
doc.is_tagged = True
doc.is_tagged = True
def update(self, docs, golds, drop=0., sgd=None, losses=None):
if losses is not None and self.name not in losses: