Wikidata / StrepHit

An intelligent reading agent that understands text and translates it into Wikidata statements.
https://meta.wikimedia.org/wiki/Grants:IEG/StrepHit:_Wikidata_Statements_Validation_via_References
GNU General Public License v3.0
112 stars 14 forks source link

NLTKPosTagger is broken #51

Open burki opened 8 years ago

burki commented 8 years ago
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):