Skip to main content

Just a Python Version of SupWSD Pocket: A software suite for SUPervised Word Sense Disambiguation

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysupwsdpocket-0.0.7.tar.gz (3.5 kB view details)

Uploaded Source

Built Distributions

pysupwsdpocket-0.0.7-py3.7.egg (1.4 MB view details)

Uploaded Source

pysupwsdpocket-0.0.7-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file pysupwsdpocket-0.0.7.tar.gz.

File metadata

  • Download URL: pysupwsdpocket-0.0.7.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pysupwsdpocket-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e4267d9367d1207112b5c45005be585add986c0e300ae8bb217971c55a7cafc8
MD5 084227e94fac3ecce69f42314d091873
BLAKE2b-256 1fc993ac31fd0a3e0e7d5dded4cd335871a2141740cb25b36e9f6b31e1bbdeba

See more details on using hashes here.

File details

Details for the file pysupwsdpocket-0.0.7-py3.7.egg.

File metadata

  • Download URL: pysupwsdpocket-0.0.7-py3.7.egg
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pysupwsdpocket-0.0.7-py3.7.egg
Algorithm Hash digest
SHA256 e405589bd238152e2ec0ff15dd06739af7da8cb6a5890d95b077fb49c0d4a503
MD5 072720f6df54072d9633df2ea7cebfe2
BLAKE2b-256 f11d9f4bf8f26c7b399db17e1481e5abe1be6c398a23505973b0c84e840006fb

See more details on using hashes here.

File details

Details for the file pysupwsdpocket-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: pysupwsdpocket-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pysupwsdpocket-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c955389f1a5276af0e4ea6cf67f4d265a3ddd680bf558d91cbff4976e2a81a81
MD5 42a3533719ed034f25ca99c9184ac967
BLAKE2b-256 246bd0f00e3b06236a039ae5473920dbaf80a2895cdc5d3fdf098aa6fc1b107e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page