Skip to main content

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

wordtransformer-0.0.3.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WordTransformer-0.0.3-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file wordtransformer-0.0.3.tar.gz.

File metadata

  • Download URL: wordtransformer-0.0.3.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for wordtransformer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bff3b2500de2998fb5c9f1b34fec01d965b4153d65b1b4f7949da9cee5b05458
MD5 17847912964acdb7a07ca81ffbce4784
BLAKE2b-256 3ab73c5c934edd9b5bea2bcc6b529602217f7c240026d679158544d3e4b26d85

See more details on using hashes here.

File details

Details for the file WordTransformer-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for WordTransformer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fba4dfbbd53946b358a4700b04bd78d8d89e2d83061cb102f912b8dc22e2cdb1
MD5 0f13130ee434631a5e33dd5f72215996
BLAKE2b-256 aefaccf9cd95c5f48d286d671f76a241f6065ae3b459ff6ed2fea6e987ea786d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page