State of the art Lexical Substitution in Context
Project description
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lexsub-1.1.4.tar.gz
.
File metadata
- Download URL: lexsub-1.1.4.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa872701b32200ca7e63cac7504a3b1a8cd44832cc62e24e0d8d920689d0944b |
|
MD5 | 5c5176495710fa038f7992e92284227a |
|
BLAKE2b-256 | 6c916996cc897ab370ce262631e45b66a5b89eab4451d83a1c8c03e37c0ec39a |
File details
Details for the file lexsub-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: lexsub-1.1.4-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de3419bf58ce6fdd10e3e6cab8498522f5630e302c875c0ce662481ddfbab806 |
|
MD5 | 79c0d413e109a517520eeb1fb077ab12 |
|
BLAKE2b-256 | 5ac0782582cb48dece43a4be005d2b42f5d4fc04dc94da223e220f254f985873 |