Skip to content

WiC Pretrained Model for Cross-Lingual LEXical sEMantic changE

Notifications You must be signed in to change notification settings

pierluigic/xl-lexeme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XL-LEXEME

WiC Pretrained Model for Cross-Lingual LEXical sEMantic changE (https://aclanthology.org/2023.acl-short.135.pdf)

Install the library:

git clone [email protected]: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"
}

About

WiC Pretrained Model for Cross-Lingual LEXical sEMantic changE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages