Views
No views yet
pip install transquest1git clone https://github.com/TharinduDR/TransQuest.git
2cd TransQuest
3pip install -r requirements.txt1import torch
2from transquest.algo.sentence_level.monotransquest.run_model import MonoTransQuestModel
3
4
5model = MonoTransQuestModel("xlmroberta", "TransQuest/monotransquest-da-ru_en-reddit_wikiquotes", num_labels=1, use_cuda=torch.cuda.is_available())
6predictions, raw_outputs = model.predict([["Reducerea acestor conflicte este importantă pentru conservare.", "Reducing these conflicts is not important for preservation."]])
7print(predictions)1@InProceedings{ranasinghe2021,
2author = {Ranasinghe, Tharindu and Orasan, Constantin and Mitkov, Ruslan},
3title = {An Exploratory Analysis of Multilingual Word Level Quality Estimation with Cross-Lingual Transformers},
4booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics},
5year = {2021}
6}1@InProceedings{transquest:2020a,
2author = {Ranasinghe, Tharindu and Orasan, Constantin and Mitkov, Ruslan},
3title = {TransQuest: Translation Quality Estimation with Cross-lingual Transformers},
4booktitle = {Proceedings of the 28th International Conference on Computational Linguistics},
5year = {2020}
6}1@InProceedings{transquest:2020b,
2author = {Ranasinghe, Tharindu and Orasan, Constantin and Mitkov, Ruslan},
3title = {TransQuest at WMT2020: Sentence-Level Direct Assessment},
4booktitle = {Proceedings of the Fifth Conference on Machine Translation},
5year = {2020}
6}