Lookup AT&T-format FSTs
Project description
FST Lookup
Implements lookup for gzip'd AT&T format finite state transducers (FOMA saves in this format).
Supports Python 3.5 and up.
Usage
Import the library, and load an FST from a file:
>>> from fst_lookup import FST
>>> fst = FST.from_file('eat.fst')
Then call fst.lookup()
on whatever surface form you want to analyze;
fst.lookup()
is a generator, so you must call list()
to get back
a list.
>>> list(sorted(fst.lookup('eats')))
[('eat', '+N', '+Mass'),
('eat', '+V', '+3P', '+Sg')]
License
Copyright © 2019 Eddie Antonio Santos. Released under the terms of the
Apache license. See LICENSE
for more info.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fst-lookup-2019.1.22a0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for fst_lookup-2019.1.22a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65e077f1b891c23a1ce972b45e5d64948f841044db74d86340d66a54f9d58f94 |
|
MD5 | 6f3107e54e5d44f072086b0f8552ced5 |
|
BLAKE2b-256 | 9061acc51d12caa2ee252244070c83f7a372ec539706a35da98f583f23a082ed |