/foma

finite-state toolkit

Primary LanguagePython

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