Metadata-Version: 2.1
Name: pysupwsdpocket
Version: 0.0.7
Summary: Just a Python Version of SupWSD Pocket: A software suite for SUPervised Word Sense Disambiguation
Home-page: https://github.com/rodriguesfas/PySupWSDPocket
Author: RodriguesFAS
Author-email: franciscosouzaacer@gmail.com
License: MIT
Keywords: natural-language-processing nlp natural-language-understanding supwsd wsd
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Information Technology
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Text Processing
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# 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.<br/>
If you don't specify the model, the program will load the default one: ```semcor_omsti``` for English, ```train_o_matic``` for other languages.

# Installing

    pip install pysupwsdpocket

    or

    pip install pysupwsdpocket -U

# Install Model Language
[Download](https://supwsd.net/supwsd/downloads.jsp) the templates to the path: ```/home/your_user/pysupwsdpocket_models```

# Guide Start
```example.py```

```python
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. <br>
```dataset```	the path of the file containing the sentences to be analyzed (one sentence per line).

```pysupwsd -wsd <sentence|dataset> <lang> <model>```

```shell
pysupwsdpocket -wsd 'The human brain is quite proficient at word-sense disambiguation.' en semcor_omsti
```

# Credits
- [SupWSD Site Oficial](https://supwsd.net/supwsd/index.jsp)<br>
- [SupWSD Github Oficial](https://github.com/SI3P/supWSD)<br>
- [Simone Papandrea](https://www.linkedin.com/in/simone-papandrea/)
- [Alessandro Raganato](https://github.com/raganato)

