PySupWSDPocket
Just a Python Version of SupWSD Pocket: A software suite for SUPervised Word Sense Disambiguation.
Suport langugae
- en, fr, de, it, es.
Suport Model
- the model to be used in the disambiguation process: SEMCOR (English only), SEMCOR_OMSTI (English only), TRAIN_O_MATIC.
If you don't specify the model, the program will load the default one:semcor_omstifor English,train_o_maticfor other languages.
Installing
pip install pysupwsdpocket
or
pip install pysupwsdpocket -U
Install Model Language
Download the templates to the path: /home/your_user/pysupwsdpocket_models
Guide Start
example.py
from pysupwsdpocket import PySupWSDPocket
sentence = 'The human brain is quite proficient at word-sense disambiguation.'
nlp = PySupWSDPocket(lang='en', model='semcor_omsti')
doc = nlp.wsd(raw_text=sentence)
print(doc)
Running CLI
sentence the sentence to be analyzed.
dataset the path of the file containing the sentences to be analyzed (one sentence per line).
pysupwsd -wsd <sentence|dataset> <lang> <model>
pysupwsdpocket -wsd 'The human brain is quite proficient at word-sense disambiguation.' en semcor_omsti
Credits
Release files for pysupwsdpocket 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysupwsdpocket-0.0.7.tar.gz | 3.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysupwsdpocket-0.0.7-py3.7.egg | Legacy Egg format | - | - | Details |
| pysupwsdpocket-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.9 MB
Release files / pysupwsdpocket-0.0.7.tar.gz
| Download URL | pysupwsdpocket-0.0.7.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4267d9367d1207112b5c45005be585add986c0e300ae8bb217971c55a7cafc8
|
|
BLAKE2b-256 checksum How to use checksums |
1fc993ac31fd0a3e0e7d5dded4cd335871a2141740cb25b36e9f6b31e1bbdeba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Release files / pysupwsdpocket-0.0.7-py3.7.egg
| Download URL | pysupwsdpocket-0.0.7-py3.7.egg |
|---|---|
| Size | 1.4 MB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
e405589bd238152e2ec0ff15dd06739af7da8cb6a5890d95b077fb49c0d4a503
|
|
BLAKE2b-256 checksum How to use checksums |
f11d9f4bf8f26c7b399db17e1481e5abe1be6c398a23505973b0c84e840006fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Release files / pysupwsdpocket-0.0.7-py3-none-any.whl
| Download URL | pysupwsdpocket-0.0.7-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c955389f1a5276af0e4ea6cf67f4d265a3ddd680bf558d91cbff4976e2a81a81
|
|
BLAKE2b-256 checksum How to use checksums |
246bd0f00e3b06236a039ae5473920dbaf80a2895cdc5d3fdf098aa6fc1b107e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|