0 purchases
pysupwsdpocket 0.0.7
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_omsti for English, train_o_matic for 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
SupWSD Site Oficial
SupWSD Github Oficial
Simone Papandrea
Alessandro Raganato
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.