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.1.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.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wordtransformer-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 672bddd282d026db0d2681fa7d16fd636bf323fde16c75b0e2930985892583f3
MD5 98708ab94e03c64b001a02d4505b8162
BLAKE2b-256 14af6334e6868963449a4867ed195ffafda3354a2b53e8897896667acbc1a77d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for WordTransformer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fcd09d5d54c3ecde3d1913ef2bf82de75ee3446715c09534264a21a958cf42d
MD5 0afcaaa86937281b8bc4bfa448c0c02c
BLAKE2b-256 c09a1636b1f16ed8ce50ed4c2442b675ac560e4a5b4a46eaa85ee036a9dacb7e

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