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
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| pysupwsdpocket-0.0.7.tar.gz | 3.5 kB | Without provenance | Details for pysupwsdpocket-0.0.7.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysupwsdpocket-0.0.7-py3.7.egg | Legacy Egg format | - | - | Details for pysupwsdpocket-0.0.7-py3.7.egg |
| pysupwsdpocket-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for pysupwsdpocket-0.0.7-py3-none-any.whl |
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
|
Security for pysupwsdpocket 0.0.7
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.