This is a simple module for lemmatization based on the Unitex inflected word list. As such, it needs a Unitex vocabulary file in order to work properly.
So far, I’ve only worked with Portuguese, with the DELAF_PB file provided by NILC.
Installing
You can either clone the repository and install with
$ python setup.py install
or install through pip
$ pip install unitexlemmatizer
Usage
In order to use the Unitex Lemmatizer, you need to tell it where the word list is:
>>> import unitexlemmatizer as ul
>>> ul.load_unitex_dictionary('/path/to/delaf.dic')
Then, you can call the get_lemma function passing the inflected word and its part of speech tag (from the Universal Dependencies tagset).
>>> ul.get_lemma('corpora', 'noun')
'corpus'
Release files for unitexlemmatizer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unitexlemmatizer-1.0.0.tar.gz | 3.0 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unitexlemmatizer-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
| unitexlemmatizer-1.0.0-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 13.0 kB
Release files / unitexlemmatizer-1.0.0.tar.gz
| Download URL | unitexlemmatizer-1.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6602ab1bdd8fd0946f6348718a6f6473814f81e8f77144e647dfee3645ff62a5
|
|
BLAKE2b-256 checksum How to use checksums |
f57b61b0192d541ccb055603d75bf52021b9399a5cf4a2ef22f0b09a34bbc208
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unitexlemmatizer-1.0.0-py2.py3-none-any.whl
| Download URL | unitexlemmatizer-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a493635169a21456d66e7587a065ec86e0fb80b926516198077335a60fd38df3
|
|
BLAKE2b-256 checksum How to use checksums |
1ed639ad1bd2dce9bd0d90faa64373a2fee48e89fe03e95da9b7a04cded0339b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unitexlemmatizer-1.0.0-py2.7.egg
| Download URL | unitexlemmatizer-1.0.0-py2.7.egg |
|---|---|
| Size | 5.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
5a7a4699e10a1b37efaac2e9404e8766c0e664c907bc1a89fcd37910756dac08
|
|
BLAKE2b-256 checksum How to use checksums |
f9aebee3a227b4c623abd36c2354909354783a0a413e9bc11c5421c00b1ae1e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |