Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hangyav/anchor-embeddings
Anchor-based cross-lingual word embeddings for very low-resource languages.
https://github.com/hangyav/anchor-embeddings
Last synced: 3 months ago
JSON representation
Anchor-based cross-lingual word embeddings for very low-resource languages.
- Host: GitHub
- URL: https://github.com/hangyav/anchor-embeddings
- Owner: hangyav
- License: mit
- Created: 2023-11-17T10:30:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T13:13:11.000Z (8 months ago)
- Last Synced: 2024-05-10T14:31:59.980Z (8 months ago)
- Language: Python
- Size: 3.72 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Anchored bi- and multilingual word embeddings
This project aims at building cross-lingual word embeddings for low-resource
languages, which lack large amounts of monolingual data. Instead of building
monolingual word embeddings for multiple languages and aligning them in two
independent steps, it builds the target language embeddings in a single step by
*anchoring* them to the embeddings space of a high resource language. Both
bilingual and multilingual embeddings are supported. For further details see
our published [papers](#papers).![anchor](https://github.com/hangyav/anchor-embeddings/assets/414596/86378b14-e1cf-4510-8c77-e81857cc230b)
## Released Resources
* Embeddings built in our latest [paper]((https://aclanthology.org/2023.mrl-1.8/)) for languages listed below: **[download](https://cistern.cis.lmu.de/anchor-embeddings/embeddings.zip)**
* English (eng)
* Kazakh (kaz)
* Tagalog (tgl)
* Icelandic (ice)
* Swahili (swa)
* Chuvas (chv)
* Yakut (sah)
* Faroese (fao)
* Hiligaynon (hil)## Setup
```bash
pip install -r requirements.txt
# put MUSE under the ./MUSE directory
```NOTE: Developed with python version 3.8.18.
## Running the Experiments
To run the experiments, use the following command:
```bash
python3 run_experiment.py
```or to save the output log and results to a file
```bash
python3 run_experiment.py 2>&1 | tee
```Replace `` with the path to your JSON configuration file.
For more information regarding the JSON configuration files see the
documentation under the [experiments](experiments) directory.JSON configuraions can be built manually, or generated using
`build_chain_setup.py`. For further details see```
python3 build_chain_setup.py -h
```## Troubleshooting
If you encounter any issues while running the experiments, here are a few things you can try:
- Ensure that all the paths in the JSON configuration file are correct and that the files exist.
- Make sure that you have the necessary permissions to read the files and write to the directories specified in the JSON configuration file.
- If you're getting out-of-memory errors, try reducing the `vector_count` or using a machine with more memory.
If you're still having issues, please open an issue on the project's GitHub page or contact the project maintainers.
## Papers
[1] Viktor Hangya, Silvia Severini, Radoslav Ralev, Alexander Fraser and Hinrich Schütze. 2023. [Multilingual Word Embeddings for Low-Resource Languages using Anchors and a Chain of Related Languages](https://aclanthology.org/2023.mrl-1.8/). In Proceedings of the The 3nd Workshop on Multi-lingual Representation Learning (MRL)[2] Tobias Eder, Viktor Hangya, and Alexander Fraser. 2021. [Anchor-based Bilingual Word Embeddings for Low-Resource Languages](https://aclanthology.org/2021.acl-short.30). In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)
[3] Leah Michel, Viktor Hangya, and Alexander Fraser. 2020. [Exploring Bilingual Word Embeddings for Hiligaynon](https://aclanthology.org/2020.lrec-1.313.pdf), a Low-Resource Language. In Proceedings of The 12th Language Resources and Evaluation Conference
```
@inproceedings{hangya-etal-2023-multilingual,
author = {Hangya, Viktor and Severini, Silvia and Ralev, Radoslav and Fraser, Alexander and Schütze, Hinrich},
title = {Multilingual Word Embeddings for Low-Resource Languages using Anchors and a Chain of Related Languages},
booktitle = {{Proceedings of the 3rd Workshop on Multi-lingual Representation Learning (MRL)}},
pages = {95--105},
url = {https://aclanthology.org/2023.mrl-1.8},
year = {2023},
}@inproceedings{eder-etal-2021-anchor,
title = {"Anchor-based Bilingual Word Embeddings for Low-Resource Languages"},
author = "Eder, Tobias and Hangya, Viktor and Fraser, Alexander",
booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)",
year = "2021",
url = "https://aclanthology.org/2021.acl-short.30",
pages = "227--232",
}@inproceedings{michel2020exploring,
title={Exploring bilingual word embeddings for Hiligaynon, a low-resource language},
author={Michel, Leah and Hangya, Viktor and Fraser, Alexander},
booktitle={Proceedings of the Twelfth Language Resources and Evaluation Conference},
pages={2573--2580},
url = {https://aclanthology.org/2020.lrec-1.313.pdf},
year={2020}
}
```## Contributing
Contributions to this project are welcome! If you have a feature request, bug
report, or proposal, please open a new issue. If you want to contribute code,
please open a pull request.## License
This project is licensed under the MIT License. See the `LICENSE` file for more
details.