Description
sent_xlm_roberta_base_finetuned_amharic is a Amharic RoBERTa model obtained by fine-tuning xlm-roberta-base model on Amharic language texts. It provides better performance than the XLM-RoBERTa on named entity recognition datasets.
Specifically, this model is an xlm-roberta-base model that was fine-tuned on the Amharic corpus.
How to use
document = DocumentAssembler()\
.setInputCol("text")\
.setOutputCol("document")
sentencerDL = SentenceDetectorDLModel.pretrained("sentence_detector_dl", "xx")\
.setInputCols(["document"])\
.setOutputCol("sentence")
sentece_embeddings = XlmRoBertaSentenceEmbeddings.pretrained("sent_xlm_roberta_base_finetuned_amharic", "am")\
.setInputCols(["sentence"])\
.setOutputCol("sentence_embeddings")
Model Information
Model Name: | sent_xlm_roberta_base_finetuned_amharic |
Compatibility: | Spark NLP 3.3.1+ |
License: | Open Source |
Edition: | Official |
Input Labels: | [sentence] |
Output Labels: | [embeddings] |
Language: | am |
Case sensitive: | true |
Data Source
Model is trained by David Adelani
Improted from https://huggingface.co/Davlan/xlm-roberta-base-finetuned-amharic