Skip to main content

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.

Metadata

Release files for concat-ls 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for concat-ls 1.2.0
File Size Uploaded
concat_ls-1.2.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for concat-ls 1.2.0
File Interpreter ABI Platform
concat_ls-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / concat_ls-1.2.0.tar.gz

Download URL concat_ls-1.2.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2de87d334dfbcc68132143e6b12378fd028d0b71b771cc8fcf98666075ea5d46
BLAKE2b-256 checksum
How to use checksums
7cb940e6ceca502b591d372e58fe61767766672ff1ee868bca7f1f66cfe6329a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / concat_ls-1.2.0-py3-none-any.whl

Download URL concat_ls-1.2.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd196a86e92376d81011d00b8123bc7b531d226826593d5f11c21cb3a794654f
BLAKE2b-256 checksum
How to use checksums
ca9aaf0ea677f4dfece55e70c97b104d997aa61674daabf55c0b2bbf5fc673dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.13

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page