WiC Pretrained Model for Cross-Lingual LEXical sEMantic changE
Project description
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"
}
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
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.2.tar.gz.
File metadata
- Download URL: wordtransformer-0.0.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ab0c30d39a786650a13f2a3bffcda44e680da4752abce3890baf653d2d09626
|
|
| MD5 |
b0ad02aa635619a769cc38f283f029c2
|
|
| BLAKE2b-256 |
75388f2af3f13b87bc21adea3a424c80c2bfa49e20b0ba783365acf4df1ebc73
|
File details
Details for the file WordTransformer-0.0.2-py3-none-any.whl.
File metadata
- Download URL: WordTransformer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 14.8 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 |
11401cea7ff0712d1724b45f6c307bf890320bc6cf0b84897ffc74836dcc4fe2
|
|
| MD5 |
ed12e899b406cb27efea6a6bb33800fc
|
|
| BLAKE2b-256 |
6fd855162cce51c250dcdaa628b5e97d21d7ef1b2b8e36a02931274cca1ec88a
|