Skip to main content

State of the art Lexical Substitution in Context

Project description

Install

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

LexSub

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.

Example:

i/p : The wine was too strong to drink.
o/p : The wine was too powerful (0.93) / potent (0.91) / hot (0.5) / solid (0.3) / hard(0.3) to drink.

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

  • Not all synonyms fit in the context. (direct lexical substitutions 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

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

lexsub-1.0.1.tar.gz (6.9 kB view hashes)

Uploaded source

Built Distribution

lexsub-1.0.1-py3-none-any.whl (10.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page