Name | concat-ls JSON |
Version |
1.2.0
JSON |
| download |
home_page | None |
Summary | Repository for ConCat: a simple and intuitive method for English lexical substitution. |
upload_time | 2025-01-14 15:21:48 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.6 |
license | MIT License Copyright (c) 2025 sebis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
lexical substitution
lexical semantics
word representation
natural language processing
|
VCS |
 |
bugtrack_url |
|
requirements |
nltk
numpy
spacy
torch
transformers
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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*

## 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`.
Raw data
{
"_id": null,
"home_page": null,
"name": "concat-ls",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "Juraj Vladika <juraj.vladika@tum.de>, Stephen Meisenbacher <stephen.meisenbacher@tum.de>",
"keywords": "lexical substitution, lexical semantics, word representation, natural language processing",
"author": null,
"author_email": "Juraj Vladika <juraj.vladika@tum.de>, Stephen Meisenbacher <stephen.meisenbacher@tum.de>",
"download_url": "https://files.pythonhosted.org/packages/7c/b9/40e6ceca502b591d372e58fe61767766672ff1ee868bca7f1f66cfe6329a/concat_ls-1.2.0.tar.gz",
"platform": null,
"description": "# ConCat\nRepository containing the code described in the ICAART 2025 paper: *Lexical Substitution is not Synonym Substitution: On the Importance of Producing Contextually Relevant Word Substitutes*\n\n\n\n## Getting Started\nUsing `Concat` is simple! First, simply install the package using the following command:\n\n`pip install concat-ls`\n\nThen, load ConCat and getting LSing!\n\n`from concat import ConCat`\n\n`X = ConCat()`\n\n`X.lexsub(\"hello world\", \"hello\", K=5)`\n\nThe `lexsub` function takes the following parameters: `lexsub([CONTEXT (sentence)], [TARGET WORD (taregt)], [TOPK (K)])`. By default, `K=5`.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2025 sebis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Repository for ConCat: a simple and intuitive method for English lexical substitution.",
"version": "1.2.0",
"project_urls": {
"Documentation": "https://github.com/sebischair/ConCat",
"Homepage": "https://github.com/sebischair/ConCat",
"Issues": "https://github.com/sebischair/ConCat/issues",
"Repository": "https://github.com/sebischair/ConCat"
},
"split_keywords": [
"lexical substitution",
" lexical semantics",
" word representation",
" natural language processing"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ca9aaf0ea677f4dfece55e70c97b104d997aa61674daabf55c0b2bbf5fc673dc",
"md5": "a35342ddd270548d972b224d44df7811",
"sha256": "cd196a86e92376d81011d00b8123bc7b531d226826593d5f11c21cb3a794654f"
},
"downloads": -1,
"filename": "concat_ls-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a35342ddd270548d972b224d44df7811",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 7786,
"upload_time": "2025-01-14T15:21:46",
"upload_time_iso_8601": "2025-01-14T15:21:46.414334Z",
"url": "https://files.pythonhosted.org/packages/ca/9a/af0ea677f4dfece55e70c97b104d997aa61674daabf55c0b2bbf5fc673dc/concat_ls-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7cb940e6ceca502b591d372e58fe61767766672ff1ee868bca7f1f66cfe6329a",
"md5": "31f3102ce220b64929da49f9a630f552",
"sha256": "2de87d334dfbcc68132143e6b12378fd028d0b71b771cc8fcf98666075ea5d46"
},
"downloads": -1,
"filename": "concat_ls-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "31f3102ce220b64929da49f9a630f552",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7229,
"upload_time": "2025-01-14T15:21:48",
"upload_time_iso_8601": "2025-01-14T15:21:48.912847Z",
"url": "https://files.pythonhosted.org/packages/7c/b9/40e6ceca502b591d372e58fe61767766672ff1ee868bca7f1f66cfe6329a/concat_ls-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-14 15:21:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sebischair",
"github_project": "ConCat",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "nltk",
"specs": []
},
{
"name": "numpy",
"specs": []
},
{
"name": "spacy",
"specs": []
},
{
"name": "torch",
"specs": []
},
{
"name": "transformers",
"specs": []
}
],
"lcname": "concat-ls"
}