Update README.md
Browse files
README.md
CHANGED
@@ -9,8 +9,9 @@ library_name: transformers
|
|
9 |
---
|
10 |
|
11 |
# heydariAI/persian-embeddings
|
|
|
12 |
|
13 |
-
|
14 |
|
15 |
<!--- Describe your model here -->
|
16 |
|
@@ -51,7 +52,7 @@ def mean_pooling(model_output, attention_mask):
|
|
51 |
|
52 |
|
53 |
# Sentences we want sentence embeddings for
|
54 |
-
sentences = ['
|
55 |
|
56 |
# Load model from HuggingFace Hub
|
57 |
tokenizer = AutoTokenizer.from_pretrained('heydariAI/persian-embeddings')
|
|
|
9 |
---
|
10 |
|
11 |
# heydariAI/persian-embeddings
|
12 |
+
This model is a fine-tuned version of xlm-roberta-base, specifically trained on a massive corpus of Persian data to create high-quality contextual embeddings for Persian sentences and paragraphs. It is designed to perform exceptionally well on tasks such as semantic search, clustering, and contextual similarity for Persian text, while also supporting multilingual tasks in English and Persian.
|
13 |
|
14 |
+
The fine-tuning process focused on adapting the pre-trained multilingual XLM-RoBERTa model to better capture Persian linguistic nuances, making it highly effective for tasks requiring embeddings tailored to the Persian language.
|
15 |
|
16 |
<!--- Describe your model here -->
|
17 |
|
|
|
52 |
|
53 |
|
54 |
# Sentences we want sentence embeddings for
|
55 |
+
sentences = ['what are Large Language Models?', 'مدل های زبانی بزرگ چه هستند؟']
|
56 |
|
57 |
# Load model from HuggingFace Hub
|
58 |
tokenizer = AutoTokenizer.from_pretrained('heydariAI/persian-embeddings')
|