Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Foma-based morphological analysis using a simple C++ wrapper

License

NotificationsYou must be signed in to change notification settings

dcavar/fomaTestCPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright 2015-2018 byDamir Cavar

Last edited: 2018-08-06, Damir Cavar

Includes and Libraries

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.

Build the binary

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.txt

This will generate theMakefile and other files in the same folder. Run:

make

and 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.txt

Create 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp