Metadata-Version: 2.1
Name: pyhfst
Version: 1.0.0
Summary: A pure Python implementation of HFST for using HFST optimized lookup transducers (with or without weights)
Home-page: https://github.com/Rootroo-ltd/pyhfst
Author: Khalid Alnajjar and Mika Hämäläinen
Author-email: hello@rootroo.com
License: Apache-2.0
Project-URL: Bug Reports, https://github.com/Rootroo-ltd/pyhfst/issues
Project-URL: Developer, https://rootroo.com/
Keywords: hfst,fst,optimized lookup,hfstol,transducers
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENCE

# Pyhfst

Pyhfst is a pure Python implementation of HFST. The library makes it possible to use HFST optimized lookup FSTs without any C dependencies. Both weighted and unweighted FSTs are supported.

The library will run on all operting systems that support Python 3.

# Usage

    import pyhfst
    
    input_stream = pyhfst.HfstInputStream("./analyser")
    tr = input_stream.read()
    print(tr.lookup("voi"))
    
    >> [['voida+V+Act+Ind+Prs+Sg3', 0.0], ['voida+V+Act+Ind+Prs+ConNeg', 0.0], ['voida+V+Act+Ind+Prt+Sg3', 0.0], ['voida+V+Act+Imprt+Prs+ConNeg+Sg2', 0.0], ['voida+V+Act+Imprt+Sg2', 0.0], ['voi+N+Sg+Nom', 0.0], ['voi+Pcle', 0.0], ['voi+Interj', 0.0]]
