Wikidata/StrepHit

NLTKPosTagger is broken

Opened this issue · 0 comments

burki commented
python -m strephit commons pos_tag -t nltk samples/corpus.jsonlines bio en

breaks with an error

TypeError: tag_many() takes at most 3 arguments (5 given)

since the signature of NLTKPosTagger

 def tag_many(self, documents, tagset=None, **kwargs):

doesn't match with the one of TTPosTagger with batch-support

def tag_many(self, items, document_key, pos_tag_key, batch_size=10000, **kwargs):