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.1.1.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.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: concat_ls-1.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 ca8cc0fb9fe25cf0ac215e78a844d1848c26930bbd6f484862bf2c84b5738af3
MD5 42ec0c9acba2b2b6bccaed56a2bec445
BLAKE2b-256 adb658b4a078a0bd183312c0ef5a7b3ddf21b38c11243fa2d399e48b8e272b72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: concat_ls-1.1.1-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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f0337a14338e8d8d310b468d855a8209296b205d4fa79d362f2df4056405e31
MD5 360fb398c3ba68b72eeeb473755ce075
BLAKE2b-256 b11be604106ae371a55f6abea98ca563ddececb0fdff3f47a2738d144f8b3efd

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