PyOmorfi
This is a pure-python implementation of Omorfi, a free and open source morphological analyzer for Finnish.
Most of the files have been copied from the Omorfi repository. HFST has been replaced with KFST, a pure-python implementation of finite state transducers.
This package includes a pre-built transducer, so you don't need to build the transducer yourself. For most part, this library should be a drop-in replacement for Omorfi.
Installation
Pyomorfi is available on PyPI and can be installed with pip:
pip install pyomorfi
Usage
PyOmorfi has the same API as Omorfi, so you can use it in the same way as Omorfi.
Please refer to the Omorfi documentation for more information.
Just import pyomorfi.omorfi instead of omorfi.
from pyomorfi.omorfi import Omorfi
omorfi = Omorfi()
omorfi.load_analyser("omorfi.analyse.kfst")
analyses = omorfi.analyse("kissa")
There is also a function that loads the built-in transducers and returns an Omorfi object:
from pyomorfi import load_omorfi
omorfi = load_omorfi()
analyses = omorfi.analyse("kissa")
Development
This package is in very early stages of its development and there are probably many bugs. Please report them if you find them!
If you want to contribute code, feel free to open pull requests.
License
PyOmorfi is licensed under the GNU GPL version 3. See the LICENSE file for details.
Metadata
Release files for pyomorfi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyomorfi-1.0.1.tar.gz | 7.7 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyomorfi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 MB
Release files / pyomorfi-1.0.1.tar.gz
| Download URL | pyomorfi-1.0.1.tar.gz |
|---|---|
| Size | 7.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47fd5f96b1e72c762f1781189546fa3e698ceff855964a0b750304112f46cb7a
|
|
BLAKE2b-256 checksum How to use checksums |
578bedac9d24de850ac6bb16d69feb963994fbd3c56117d5601b5c54b6f21923
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / pyomorfi-1.0.1-py3-none-any.whl
| Download URL | pyomorfi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
792456b74fee6ee1fa32e7b7c4643114195595b959686e2f602a9df4abd06623
|
|
BLAKE2b-256 checksum How to use checksums |
9aa66624961e0bfec931dd2991f9dd8c806b04ecde67873a932dbfbf89dd804e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for pyomorfi 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.