Make SentenceRecognizer.label_data return None

Overwrite the method from the base class (Tagger) but don't export anything in "init labels"
This commit is contained in:
Ines Montani 2020-10-03 18:54:09 +02:00
parent 989c59918c
commit 80603f0fa5
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ class SentenceRecognizer(Tagger):
# are 0
return tuple(["I", "S"])
@property
def label_data(self):
return None
def set_annotations(self, docs, batch_tag_ids):
"""Modify a batch of documents, using pre-computed scores.