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.4.tar.gz (15.1 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.4-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wordtransformer-0.0.4.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

Hashes for wordtransformer-0.0.4.tar.gz
Algorithm Hash digest
SHA256 967f07caa188a5515f14deb6132587f412b9f1b1621185696bd431f8b2380b41
MD5 26d1f608fcd33171d01f5754b75d2a3e
BLAKE2b-256 5cdd07d20f340e7e029125a7b834f5947be77dfe51cd383c23840fa6b9c1660e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for WordTransformer-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a68a19de85307b1f1c04e66f1ada7cc750e805cfc67d874b9365f2283208941a
MD5 1d6c54def56f0d3bb17696c9ceeed5f2
BLAKE2b-256 fa68be2962b8435ea8fdc6eee29e6e0c9bed88adcf11c20ff27ea8a6d58d13b2

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