Skip to main content

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

Metadata

Release files for lexsub 1.0.3

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.0.3
File Size Uploaded
lexsub-1.0.3.tar.gz 6.7 kB Details

Built distribution (wheel)

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

Total release size: 16.9 kB

Release files / lexsub-1.0.3.tar.gz

Download URL lexsub-1.0.3.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cbf1037bd68fd84ac0e6260446e4554dfd5470377680025bf97618b7dcf059e9
BLAKE2b-256 checksum
How to use checksums
7c2643d2ac519bb393d0316ea0f20c74f53bbcd96face3dc1ab344c9d0b13967
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.0.3-py3-none-any.whl

Download URL lexsub-1.0.3-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
975a5d9d9c09138755066f11e1455c2df3e4e26e93f4ef844221f46b65f4531c
BLAKE2b-256 checksum
How to use checksums
2e6bdae25d43d14847df5f9b8473a3df775819e92785dbed6fea43c919fb49bb
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 history Release notifications | RSS feed

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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