We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not sure what they are now but they're probably not too helpful
The text was updated successfully, but these errors were encountered:
@sushain97
In [1]: import apertium In [2]: a = apertium.Analyzer('en') In [3]: a Out[3]: Analyzer(mode=eng-morph, lang=eng)
Is the structure okay ?
Sorry, something went wrong.
Ideally, __repr__ would recreate the class. So, repr(a) == "Analyzer(lang='eng')" and str(a) == "<Analyzer: eng-morph>" seems nice.
__repr__
repr(a) == "Analyzer(lang='eng')"
str(a) == "<Analyzer: eng-morph>"
@sushain97 what about for the Translator module? I don't have mode there. we just parse mode files in that module. What should the __str__() have?
Translator
__str__()
There is a mode. It's something like spa-cat_valencia. The fact that we're parsing a mode implies there is one.
No branches or pull requests
I'm not sure what they are now but they're probably not too helpful
The text was updated successfully, but these errors were encountered: