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

Uploaded Python 3

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

Hashes for wordtransformer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6ab0c30d39a786650a13f2a3bffcda44e680da4752abce3890baf653d2d09626
MD5 b0ad02aa635619a769cc38f283f029c2
BLAKE2b-256 75388f2af3f13b87bc21adea3a424c80c2bfa49e20b0ba783365acf4df1ebc73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for WordTransformer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 11401cea7ff0712d1724b45f6c307bf890320bc6cf0b84897ffc74836dcc4fe2
MD5 ed12e899b406cb27efea6a6bb33800fc
BLAKE2b-256 6fd855162cce51c250dcdaa628b5e97d21d7ef1b2b8e36a02931274cca1ec88a

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