Python interface for HFST
Project description
*******************
Package description
*******************
Package ``hfst_dev`` contains a development version of Python bindings for
`HFST <https://hfst.github.io>`_(Helsinki Finite-State Technology) C++ library.
HFST toolkit is intended for processing natural language morphologies.
The toolkit is demonstrated by wide-coverage implementations of a number of languages
of varying morphological complexity.
Requirements
############
We offer binary wheels on PyPI for Linux, Mac OS X and Windows.
Wheels for Linux are compiled with a 64-bit docker image (quay.io/pypa/manylinux1_x86_64)
for python versions 2.7, 3.4, 3.5, 3.6 and 3.7.
Wheels for Mac are compiled as universal binaries for python versions 2.7, 3.5, 3.6 and 3.7.
OS X must be 10.7 or higher.
Wheels for Windows are 32-bit and also require a 32-bit python to work correctly.
They are available for python versions 3.5 and 3.6; earlier versions would need
an older compiler that does not support C++11 features.
Wheels for version 3.7. may be added to future releases.
Compiling hfst_dev from source requires at least C++ compiler (tested with gcc 5.4.0),
readline and getline libraries and setuptools package for python
(tested with version 28.8.0). Swig is no longer needed as pre-generated files are
included in source distribution.
Support for python version 2 is experimental and may be left out at some point.
We recommend python version 3 as it works better with unicode.
Installation via PyPI
#####################
We recommend using ``pip`` tool for installation.
Before installation, see that dependencies given under heading 'Requirements' are met.
For python version 3, the ``pip`` tool is usually named ``pip3``, plain ``pip`` being used
for python version 2. Basic installation is done with:
``pip3 install [--upgrade] hfst_dev``
``pip install [--upgrade] hfst_dev``
Starting from python 3.4.0 and 2.7.9, pip is included by default
and can be called via python with option ``-m pip``:
``python3 -m pip install [--upgrade] hfst_dev``
``python -m pip install [--upgrade] hfst_dev``
The commands above are run in a shell/terminal/command prompt, but they can
also be run on python command line or via a graphical user interface
(e.g. IDLE) with ``pip.main`` that takes arguments in a list:
| ``import pip``
| ``pip.main(['install','--upgrade','hfst_dev'])``
The option ``--upgrade`` makes sure that the newest version of hfst will be installed
replacing any earlier versions installed. The option ``--verbose``
will show what happens during the installation process. This can be useful when compiling from source.
Documentation
#############
See wiki-based `package documentation <https://github.com/hfst/python-hfst-4.0/wiki>`_
on our Github pages. In python, you can also use ``dir`` and ``help``
commands, e.g.:
``dir(hfst_dev)``
``help(hfst_dev.HfstTransducer)``
License
#######
HFST is licensed under Gnu GPL version 3.0.
Troubleshooting
###############
(In the commands below, ``python[3]`` means either ``python`` or ``python3`` depending of the version of python you are using;
the same goes for ``pip[3]`` meaning ``pip`` or ``pip3``.)
*Pip starts to compile from source although there is a wheel available:*
Try upgrading pip with
``pip[3] install --upgrade pip``
or
``python[3] -m pip install --upgrade pip``.
Another reason for this can be that
the source package on PyPI is newer (i.e. has a higher version number) than
the corresponding wheel for the given environment.
*Error message "command ... failed with error code ...":*
Try rerunning pip in verbose mode with
``pip[3] install --verbose [--upgrade] hfst_dev``
or
``python[3] -m pip install --verbose [--upgrade] hfst_dev``
to get more information.
*Error message "error: could not delete ... : permission denied":*
You do not have sufficient rights to install packages. On Mac and Linux, try
installing as super user with
``sudo pip[3] install [--upgrade] hfst_dev``
or
``sudo python[3] -m pip install [--upgrade] hfst_dev``.
On Windows, reopen Command Prompt/Python command line/IDLE by right-clicking
and choose "Run as administrator", then run pip again.
Links
#####
`HFST project main page <https://hfst.github.io>`_: more information about
the project
Package description
*******************
Package ``hfst_dev`` contains a development version of Python bindings for
`HFST <https://hfst.github.io>`_(Helsinki Finite-State Technology) C++ library.
HFST toolkit is intended for processing natural language morphologies.
The toolkit is demonstrated by wide-coverage implementations of a number of languages
of varying morphological complexity.
Requirements
############
We offer binary wheels on PyPI for Linux, Mac OS X and Windows.
Wheels for Linux are compiled with a 64-bit docker image (quay.io/pypa/manylinux1_x86_64)
for python versions 2.7, 3.4, 3.5, 3.6 and 3.7.
Wheels for Mac are compiled as universal binaries for python versions 2.7, 3.5, 3.6 and 3.7.
OS X must be 10.7 or higher.
Wheels for Windows are 32-bit and also require a 32-bit python to work correctly.
They are available for python versions 3.5 and 3.6; earlier versions would need
an older compiler that does not support C++11 features.
Wheels for version 3.7. may be added to future releases.
Compiling hfst_dev from source requires at least C++ compiler (tested with gcc 5.4.0),
readline and getline libraries and setuptools package for python
(tested with version 28.8.0). Swig is no longer needed as pre-generated files are
included in source distribution.
Support for python version 2 is experimental and may be left out at some point.
We recommend python version 3 as it works better with unicode.
Installation via PyPI
#####################
We recommend using ``pip`` tool for installation.
Before installation, see that dependencies given under heading 'Requirements' are met.
For python version 3, the ``pip`` tool is usually named ``pip3``, plain ``pip`` being used
for python version 2. Basic installation is done with:
``pip3 install [--upgrade] hfst_dev``
``pip install [--upgrade] hfst_dev``
Starting from python 3.4.0 and 2.7.9, pip is included by default
and can be called via python with option ``-m pip``:
``python3 -m pip install [--upgrade] hfst_dev``
``python -m pip install [--upgrade] hfst_dev``
The commands above are run in a shell/terminal/command prompt, but they can
also be run on python command line or via a graphical user interface
(e.g. IDLE) with ``pip.main`` that takes arguments in a list:
| ``import pip``
| ``pip.main(['install','--upgrade','hfst_dev'])``
The option ``--upgrade`` makes sure that the newest version of hfst will be installed
replacing any earlier versions installed. The option ``--verbose``
will show what happens during the installation process. This can be useful when compiling from source.
Documentation
#############
See wiki-based `package documentation <https://github.com/hfst/python-hfst-4.0/wiki>`_
on our Github pages. In python, you can also use ``dir`` and ``help``
commands, e.g.:
``dir(hfst_dev)``
``help(hfst_dev.HfstTransducer)``
License
#######
HFST is licensed under Gnu GPL version 3.0.
Troubleshooting
###############
(In the commands below, ``python[3]`` means either ``python`` or ``python3`` depending of the version of python you are using;
the same goes for ``pip[3]`` meaning ``pip`` or ``pip3``.)
*Pip starts to compile from source although there is a wheel available:*
Try upgrading pip with
``pip[3] install --upgrade pip``
or
``python[3] -m pip install --upgrade pip``.
Another reason for this can be that
the source package on PyPI is newer (i.e. has a higher version number) than
the corresponding wheel for the given environment.
*Error message "command ... failed with error code ...":*
Try rerunning pip in verbose mode with
``pip[3] install --verbose [--upgrade] hfst_dev``
or
``python[3] -m pip install --verbose [--upgrade] hfst_dev``
to get more information.
*Error message "error: could not delete ... : permission denied":*
You do not have sufficient rights to install packages. On Mac and Linux, try
installing as super user with
``sudo pip[3] install [--upgrade] hfst_dev``
or
``sudo python[3] -m pip install [--upgrade] hfst_dev``.
On Windows, reopen Command Prompt/Python command line/IDLE by right-clicking
and choose "Run as administrator", then run pip again.
Links
#####
`HFST project main page <https://hfst.github.io>`_: more information about
the project
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size hfst_dev-3.15.0.4b0-cp35-cp35m-manylinux1_x86_64.whl (30.9 MB) | File type Wheel | Python version cp35 | Upload date | Hashes View |
Filename, size hfst_dev-3.15.0.4b0-cp36-cp36m-manylinux1_x86_64.whl (30.8 MB) | File type Wheel | Python version cp36 | Upload date | Hashes View |
Close
Hashes for hfst_dev-3.15.0.4b0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55c654ed842ffa369ce557a651d0be599e8b02781e544d5562ac631eb8ec661e |
|
MD5 | 41bdb800202a3fcd1b455a51fc73182a |
|
BLAKE2-256 | c71c59c8e4695183841e49ce1ff02604e663cbb6fa8e96dc43750dab8985f8a3 |
Close
Hashes for hfst_dev-3.15.0.4b0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fab4abe0c0ec8452ae5a595f776699af236170246d3c39c399849f50c2fcad77 |
|
MD5 | e0aa8eb362b49c3b1311c5cbc70f7161 |
|
BLAKE2-256 | 860306f7339926b10aa2d558208a9d1b9a77073e21fb9df3d9d22e1509d47280 |