vchahun / foma

finite-state toolkit
12 stars 5 forks source link

foma

A finite state toolkit written by Mans Hulden.

Forked from the official version on Google Code.

Installation

To install the python module, first compile the foma library and then compile the module:

cd foma/ && make && cd -
python setup.py install

Basic usage

import foma
fsm = foma.read_binary('my_fsm.fsm')
for result in fsm.apply_up(word):
    print result