Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 430 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 430 Bytes

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