Common Lisp bindings for Foma
Save your foma rules to a binary format:
foma -l "morphology.foma" \
-e "save stack morphology.bin" \
-e "quit"
Load and use the binary in Lisp:
(let ((fst (cl-foma:make-fst
:filename "/path/to/morphology.bin")))
(print (cl-foma:apply-up fst "олма"))
(print (cl-foma:apply-random-lower fst)))
On Arch Linux:
pacman -S foma
- Function definitions:
less /usr/include/fomalib.h
- Python bindings: https://github.com/mhulden/foma/blob/master/foma/python/foma.py
- Usage in NLTK: https://notebook.community/dcavar/python-tutorial-for-ipython/notebooks/Python%20Parsing%20with%20NLTK%20and%20Foma
bmansurov
Copyright (c) 2023
Licensed under LGPL-3 (see file LICENSE).