Skip to content

error: loading model for detruecaser #107

@colingair

Description

@colingair

mtr = MosesTruecaser('big.truecasemodel')

The above is fine. But how to load the same model for detruecasing? It gives error, if I do the following:

from sacremoses import MosesDetruecaser
mdtr = MosesDetruecaser("mymodel_")
Traceback (most recent call last):
File "", line 1, in
TypeError: init() takes 1 positional argument but 2 were given

any suggestion?
Thanks

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