Setup
pip3 install lexsub
Release: https://pypi.org/project/lexsub/
Version: 1.0.5
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:
Metadata
Release files for lexsub 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lexsub-1.0.6.tar.gz | 6.8 kB | Without provenance | Details for lexsub-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lexsub-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for lexsub-1.0.6-py3-none-any.whl |
Total release size: 17.0 kB
Release files / lexsub-1.0.6.tar.gz
| Download URL | lexsub-1.0.6.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58c185b4182e2e1c583ccb55a1c1a3bbed19b90076c598c482cd67d10c42278d
|
|
BLAKE2b-256 checksum How to use checksums |
603fbbb40768c2d1565429e02559833c97fe8b8f62680d4701f9b309d4747019
|
| 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.6-py3-none-any.whl
| Download URL | lexsub-1.0.6-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
321dd7cf3719d29e24dffab876c56237902bfb64129812e0c9770848c830c7e1
|
|
BLAKE2b-256 checksum How to use checksums |
c312bc1532c6e9265d4721f924ecc48a4cdea08a6947a24c8cfacac7908b4248
|
| 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.0.6
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.