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

Uploaded Python 3

File details

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

File metadata

  • Download URL: concat_ls-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 854384428af5c84c43cfa9d0547a311e324ce2f7155bbe3d28116954de4817e9
MD5 b0c95be8dad9b3ba44d94e29afb136e8
BLAKE2b-256 ea8ecd122d98d98150d96f8587eb7fc8f7bec3ebdc0a046b071e181e57d85327

See more details on using hashes here.

File details

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

File metadata

  • Download URL: concat_ls-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1ad3735b55e1b7dfb7d959f7d3e34db21a2a3d629d8b80ac9913bbcc191c6f0
MD5 e6d4fa2f87b19e2a6bdbfdcacd79309b
BLAKE2b-256 00b3ea3d9e260059e5381e615b56f899cbcf329405e5ae0339cd202a1be5239a

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