Closed wrznr closed 3 years ago
Hi there, yes. Rather than treating one direction of projection as "default" and deriving the other with a non-default argument we follow the pattern used in other OpenGrm tools: one must specify "input" or "output" as an argument. Information about the API is discoverable using the in-module help docs:
>>> help(pynini.project)
the type stubs (static type checking tools like mypy
will tell you that it expects a mandatory "input" or "output" argument), or by reading the NEWS
file updated with every release.
So you know API changes came fast in 2020 (the library gained many new internal users and we were in the process of developing a book that uses the library heavily) but far fewer are anticipated going forward.
I recently moved to version 2.1.3. Now,
project
expects an argument. Did you change the API?(Code is here: https://github.com/wrznr/timur/blob/2fed6c980eda34a318aff088cac96f4d7ba19d05/timur/symbols/symbols.py#L46)
Documentation at http://www.openfst.org/twiki/bin/view/GRM/PyniniDocs says nothing about arguments...