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

Uploaded Python 3

File details

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

File metadata

  • Download URL: concat_ls-1.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 2de87d334dfbcc68132143e6b12378fd028d0b71b771cc8fcf98666075ea5d46
MD5 31f3102ce220b64929da49f9a630f552
BLAKE2b-256 7cb940e6ceca502b591d372e58fe61767766672ff1ee868bca7f1f66cfe6329a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: concat_ls-1.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd196a86e92376d81011d00b8123bc7b531d226826593d5f11c21cb3a794654f
MD5 a35342ddd270548d972b224d44df7811
BLAKE2b-256 ca9aaf0ea677f4dfece55e70c97b104d997aa61674daabf55c0b2bbf5fc673dc

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