Skip to main content

Repository for ConCat: a simple and intuitive method for English lexical substitution.

Project description

ConCat

Repository containing the code described in the ICAART 2025 paper: Lexical Substitution is not Synonym Substitution: On the Importance of Producing Contextually Relevant Word Substitutes

ConCat

Getting Started

Using Concat is simple! First, simply install the package using the following command:

pip install concat-ls

Then, load ConCat and getting LSing!

from concat import ConCat

X = ConCat()

X.lexsub("hello world", "hello", K=5)

The lexsub function takes the following parameters: lexsub([CONTEXT (sentence)], [TARGET WORD (taregt)], [TOPK (K)]). By default, K=5.

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

concat_ls-1.0.13.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

concat_ls-1.0.13-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file concat_ls-1.0.13.tar.gz.

File metadata

  • Download URL: concat_ls-1.0.13.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for concat_ls-1.0.13.tar.gz
Algorithm Hash digest
SHA256 3948c746279776f0aa6d627db057043e3907b9ac59c2c87227f6ad7da1ba396f
MD5 2202a772337c86d1dc538d07f0477358
BLAKE2b-256 c6581052e6fb4bf598f509fd7b18bbe94e8e74993a1a2591e0a1196d29e5f916

See more details on using hashes here.

File details

Details for the file concat_ls-1.0.13-py3-none-any.whl.

File metadata

  • Download URL: concat_ls-1.0.13-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for concat_ls-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc64089651b41a943ee75fd3c5ce72c941ab579a0b1f088fdf6c55374f731c2
MD5 fcc810107ce252fe582f16c7d11666bb
BLAKE2b-256 a898ab2f64c4b97392a0392801afd7e09ec311d396771e62052ee6f768b62bab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page