Skip to main content

Setup

pip3 install lexsub
Release: https://pypi.org/project/lexsub/   

Background

The Lexical Substitution task involves selecting and ranking lexical paraphrases for a target word in a given sentential context. In the task, annotators and systems find an alternative substitute word or phrase for a target word in context. The task involves both finding the synonyms and disambiguating the context. To give an example:

Context: The wine was too strong to drink.
Target Word: strong

Predicted Candidates (Ranked): 
powerful 
potent 
warm
hot 
solid 
hard 

Powerful and potent are much better replacements as indicated by the score next to them as well. Whereas, all are viable replacement candidates given the context from a language modeling perspective.
Now notice two important things that is interesting:

  • Not all synonyms fit in the context.
    (direct lexical substitutions aka synonyms won’t always work)
  • Not all words that fit in the context preserve the meaning of the sentence. (LM score doesn’t always correlate)

Datasets:

A. Lexical Substitution:

B. Word Sense Disambiguation:

References:

  1. SOTA-BERT
  2. Pre-BERT-SOTA,Melamud
  3. PIC- Katrin
  4. SemBERT, AAAI 2020
  5. LIBERT
  6. Morgifier LSTM, ICLR 2020

Metadata

Release files for lexsub 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lexsub 1.1.4
File Size Uploaded Provenance Actions
lexsub-1.1.4.tar.gz 10.1 kB Without provenance Details for lexsub-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lexsub 1.1.4
File Interpreter ABI Platform Actions
lexsub-1.1.4-py3-none-any.whl Python 3 none any Details for lexsub-1.1.4-py3-none-any.whl

Total release size: 24.1 kB

Release files / lexsub-1.1.4.tar.gz

Download URL lexsub-1.1.4.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fa872701b32200ca7e63cac7504a3b1a8cd44832cc62e24e0d8d920689d0944b
BLAKE2b-256 checksum
How to use checksums
6c916996cc897ab370ce262631e45b66a5b89eab4451d83a1c8c03e37c0ec39a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4

Release files / lexsub-1.1.4-py3-none-any.whl

Download URL lexsub-1.1.4-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de3419bf58ce6fdd10e3e6cab8498522f5630e302c875c0ce662481ddfbab806
BLAKE2b-256 checksum
How to use checksums
5ac0782582cb48dece43a4be005d2b42f5d4fc04dc94da223e220f254f985873
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.4

Security for lexsub 1.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page