XL-LEXEME
WiC Pretrained Model for Cross-Lingual LEXical sEMantic changE (https://aclanthology.org/2023.acl-short.135.pdf)
Install the library:
git clone git@github.com:pierluigic/xl-lexeme.git
cd xl-lexeme
pip3 install .
Load the model (the model is available in the Hugging Face Model Hub https://huggingface.co/pierluigic/xl-lexeme):
from WordTransformer import WordTransformer,InputExample
model = WordTransformer('pierluigic/xl-lexeme')
examples = InputExample(texts="the quick fox jumps over the lazy dog", positions=[10,13])
fox_embedding = model.encode(examples) #The embedding of the target word "fox"
Citation
@inproceedings{cassotti-etal-2023-xl,
title = "{XL}-{LEXEME}: {W}i{C} Pretrained Model for Cross-Lingual {LEX}ical s{EM}antic chang{E}",
author = "Cassotti, Pierluigi and
Siciliani, Lucia and
DeGemmis, Marco and
Semeraro, Giovanni and
Basile, Pierpaolo",
booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)",
month = jul,
year = "2023",
address = "Toronto, Canada",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.acl-short.135",
pages = "1577--1585"
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wordtransformer-0.0.5.tar.gz
(67.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wordtransformer-0.0.5.tar.gz.
File metadata
- Download URL: wordtransformer-0.0.5.tar.gz
- Upload date:
- Size: 67.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c98c5eb0081179bd59f5e76d5a69f4903c797a8306816e075aeddcac5abb6ff
|
|
| MD5 |
eddd94c1251089644df84c494a64e842
|
|
| BLAKE2b-256 |
35711c617ed22dbf3bd023cab73097cc059519d3875f570e8d7f066c25dda361
|
File details
Details for the file wordtransformer-0.0.5-py3-none-any.whl.
File metadata
- Download URL: wordtransformer-0.0.5-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc869e57d18b41cdb277a5cf538406b55c99ef5fdd204a8bd12dd4ee5a567bb5
|
|
| MD5 |
17ce44f8e45851ab08bc07e8cbb042d5
|
|
| BLAKE2b-256 |
7997443011251a044644d15330d67732b82ac0b5d7ecbc2d1090f50f719d92b7
|