I am building a morphological parser with hfst, but am running into problems with installation.
I have successfully downloaded the hfst package, and it is present in the site-packages directory of my python framework. I can import it in python without a problem.
However, when I try to run some of the commands from the quickstart page, I get syntax errors:
>>> import hfst
>>> hfst-lexc -v -f foma finntreebank.lexc -o finntreebank.inverted.hfst
File "<stdin>", line 1
hfst-lexc -v -f foma finntreebank.lexc -o finntreebank.inverted.hfst
^
SyntaxError: invalid syntax
Is the problem that I need to install foma? Or is the interface between the C++ and python not working? It's been difficult to figure this out with the documentation.
Is there a resource for guidance on how to install and use C++ libraries in python?