- Notifications
You must be signed in to change notification settings - Fork1
Foma-based morphological analysis using a simple C++ wrapper
License
dcavar/fomaTestCPP
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Copyright 2015-2018 byDamir Cavar
Last edited: 2018-08-06, Damir Cavar
You will needFoma and all its include and library files on your system to be able to compile this test code.
Included is a simplified and reduced English morphology compiled into a Finite State Transducer for the use with Foma.
To compile this example, you need to have the entire Foma collection of binaries, includes and libraries set up on your system. You will also need some C++11 compiler and various other libraries for it, for example theBoost libraries.
The project is aCMake project. Make sure that you have alsoCMake installed and set up on your system.
To create the running binary for the code inFomaMWT, in the folder run:
cmake CMakeList.txtThis will generate theMakefile and other files in the same folder. Run:
makeand it should compile correctly, if all the paths and folders are OK, and if the libraries were found.
If you want to test the speed of the processor, run the following command:
time ./fomatest test.txt > res.txtCreate a larger list of words in a text file and run it through the test tool. On an Intel i7 CPU with Fedora Linux I achieve something in the range of 300,000 tokens per second, with average number of ambiguous morphological analyses for each string.
About
Foma-based morphological analysis using a simple C++ wrapper
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.