Skip to content

NLTKPosTagger is broken #51

@burki

Description

@burki
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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions