From 193bf913c0bf3a6a9a6a68f8921450e30aa301b8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 5 Jun 2017 01:35:07 +0200 Subject: [PATCH] Set is_tagged=True after tagging --- spacy/pipeline.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index a838b3412..d2ff17d9b 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -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