-
Add a public no-op function so that cython will generate a header file for embedding
-
Rename some internal C macro
#ifdef
names to reduce collisions.DEBUG
is nowOL_DEBUG
, andBUILD_MAIN
is now `BUILD_HFSTOL_MAIN``
-
Move
__version__
to a separateVERSION
file to work around an import cycle issue sometimes seen with pip/pipenv -
Now that the same repo also contains node bindings, start tagging python releases as
python-vX.Y.Z
instead of plainvX.Y.Z
-
Important bug fix: when encountering an input symbol which was not in the FST, e.g.,
v
in Cree,lookup()
would return analyses for the input up to that point, e.g.,avocado
→a
→['å+Ipc+Interj']
. An empty list is now returned instead for invalid inputs. -
Check in release script
- Added:
TransducerFile.lookup_lemma_with_affixes()
which returns a list ofAnalyses(prefixes=(...,), lemma="", suffixes=(...,))
. This is to facilitate development with the Plains Cree FST and other FSTs built by ALTLab.
- Fixed: missing typings for
TransducerFile.lookup_symbols()
- new
lookup_symbols()
method returns symbols as list elements; no more need for client heuristics to guess whether or not a substring came from Multichar_Symbols - GitHub actions now used for tests
- Added
__version__
constant
- Add
bulk_lookup
method
- Add typings for package
- Accept pathlib objects by calling os.fspath
- Work around libstdc++/libc++ build confusion
- Initial release of python wrapper, based on upstream hfst-v3.15.4