pre dataset
Browse files
README.md
CHANGED
|
@@ -1,121 +1,80 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
- sentence-transformers
|
| 10 |
language:
|
| 11 |
-
|
| 12 |
-
dataset_name:
|
| 13 |
-
pretty_name:
|
| 14 |
task_categories:
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
size_categories:
|
| 18 |
-
|
| 19 |
---
|
|
|
|
| 20 |
# Arabic Legal & Semantic Embedding Dataset
|
| 21 |
|
| 22 |
## Overview
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
Each example consists of two sentences (`sentence_a` and `sentence_b`) along with:
|
| 26 |
-
- a `score` indicating their semantic similarity (0–1)
|
| 27 |
-
- a `relation` describing their type: `summary`, `synonym`, `paraphrase`, `contradiction`, `weak`, `hard_negative`, `entailment`, `passive`.
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
--
|
| 32 |
|
| 33 |
-
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
-
- `score` (float): Semantic similarity score between 0 and 1
|
| 37 |
-
- `relation` (str): Type of relation. Possible values:
|
| 38 |
-
- `summary`: one sentence summarizes the other
|
| 39 |
-
- `synonym`: sentences have the same meaning
|
| 40 |
-
- `paraphrase`: rephrased version
|
| 41 |
-
- `contradiction`: sentences contradict each other
|
| 42 |
-
- `weak`: weak semantic similarity
|
| 43 |
-
- `hard_negative`: very different but potentially confusing sentences
|
| 44 |
-
- `entailment`: one sentence logically entails the other
|
| 45 |
-
- `passive`: passive voice version
|
| 46 |
|
| 47 |
---
|
| 48 |
|
|
|
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
-
|
| 57 |
-
- **Semantic Annotations**: Each sentence pair includes a `relation` indicating its semantic type:
|
| 58 |
-
- `summary` – concise summary of the first sentence
|
| 59 |
-
- `synonym` – paraphrases or semantically equivalent sentences
|
| 60 |
-
- `paraphrase` – sentences reworded differently but retaining the same meaning
|
| 61 |
-
- `contradiction` – sentences with opposing meanings
|
| 62 |
-
- `weak` – loosely related or contextually weak sentences
|
| 63 |
-
- `hard_negative` – sentences appearing similar but semantically unrelated
|
| 64 |
-
- `entailment` – one sentence logically follows from the other
|
| 65 |
-
- `passive` – rephrasing in passive voice
|
| 66 |
|
| 67 |
-
|
| 68 |
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
|
| 72 |
-
| Field | Type | Description |
|
| 73 |
-
|-------|------|-------------|
|
| 74 |
-
| `sentence_a` | str | First sentence |
|
| 75 |
-
| `sentence_b` | str | Second sentence |
|
| 76 |
-
| `score` | float | Semantic similarity score (0–1) |
|
| 77 |
-
| `relation` | str | Type of relation (`summary`, `synonym`, `paraphrase`, `contradiction`, `weak`, `hard_negative`, `entailment`, `passive`) |
|
| 78 |
|
| 79 |
## Example Entries
|
|
|
|
| 80 |
```json
|
| 81 |
-
{
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
}
|
| 87 |
-
{
|
| 88 |
-
"sentence_a": "إحنا محتاجين مترجم محلف عشان نترجم المستندات دي.",
|
| 89 |
-
"sentence_b": "إحنا محتاجين خبير فني يترجم الرموز اللي موجودة في كشوف الحسابات.",
|
| 90 |
-
"score": 0.58,
|
| 91 |
-
"relation": "hard_negative"
|
| 92 |
-
}
|
| 93 |
-
{
|
| 94 |
-
"sentence_a": "الجلسة كانت زحمة جداً وما قدرناش نتكلم غير كلمتين.",
|
| 95 |
-
"sentence_b": "شُهد ازدحام شديد في الجلسة ولم يُسمح إلا بحديث مقتضب.",
|
| 96 |
-
"score": 0.85,
|
| 97 |
-
"relation": "passive"
|
| 98 |
-
}
|
| 99 |
-
{
|
| 100 |
-
"sentence_a": "عم نحاول نتواصل مع المندوب بس تلفونه مغلق.",
|
| 101 |
-
"sentence_b": "هناك صعوبة مؤقتة في الوصول لجهة التوصيل المسؤولة.",
|
| 102 |
-
"score": 0.82,
|
| 103 |
-
"relation": "entailment"
|
| 104 |
-
}
|
| 105 |
-
{
|
| 106 |
-
"sentence_a": "عم نحاول نتواصل مع المندوب بس تلفونه مغلق.",
|
| 107 |
-
"sentence_b": "هناك صعوبة مؤقتة في الوصول لجهة التواصل المسؤولة.",
|
| 108 |
-
"score": 0.82,
|
| 109 |
-
"relation": "paraphrase"
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
## Open Contribution
|
| 113 |
-
|
| 114 |
-
This dataset is open for contributions.
|
| 115 |
-
|
| 116 |
-
You can:
|
| 117 |
-
- Clone the repository
|
| 118 |
-
- Add new examples
|
| 119 |
-
- Submit improvements
|
| 120 |
-
|
| 121 |
-
See CONTRIBUTING.md for details.
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
tags:
|
| 4 |
+
- arabic
|
| 5 |
+
- nli
|
| 6 |
+
- embedding
|
| 7 |
+
- legal
|
| 8 |
+
- sentence-transformers
|
|
|
|
| 9 |
language:
|
| 10 |
+
- ar
|
| 11 |
+
dataset_name: arabic-semantic-embedding-dataset
|
| 12 |
+
pretty_name: Arabic Legal Embedding & NLI Dataset
|
| 13 |
task_categories:
|
| 14 |
+
- sentence-similarity
|
| 15 |
+
- text-classification
|
| 16 |
+
task_ids:
|
| 17 |
+
- semantic-similarity-scoring
|
| 18 |
+
- natural-language-inference
|
| 19 |
size_categories:
|
| 20 |
+
- 1K<n<10K
|
| 21 |
---
|
| 22 |
+
|
| 23 |
# Arabic Legal & Semantic Embedding Dataset
|
| 24 |
|
| 25 |
## Overview
|
| 26 |
+
The **Arabic Legal Embedding Dataset** is a high-quality dataset designed for:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
- Semantic Similarity
|
| 29 |
+
- Natural Language Inference (NLI)
|
| 30 |
+
- Sentence Embedding Training
|
| 31 |
|
| 32 |
+
It focuses on **Arabic legal, administrative, and general-purpose text**, enabling the development of models that understand nuanced meanings in real-world Arabic language scenarios.
|
| 33 |
|
| 34 |
+
Each example consists of two sentences (`sentence_a`, `sentence_b`) with:
|
| 35 |
+
- A **similarity score** (0 → 1)
|
| 36 |
+
- A **semantic relation label**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
---
|
| 39 |
|
| 40 |
+
## Key Features
|
| 41 |
|
| 42 |
+
- Multiple semantic relations:
|
| 43 |
+
- `summary`
|
| 44 |
+
- `synonym`
|
| 45 |
+
- `paraphrase`
|
| 46 |
+
- `contradiction`
|
| 47 |
+
- `weak`
|
| 48 |
+
- `hard_negative`
|
| 49 |
+
- `entailment`
|
| 50 |
+
- `passive`
|
| 51 |
|
| 52 |
+
- Fine-grained similarity scoring (continuous values)
|
| 53 |
|
| 54 |
+
- Domain coverage:
|
| 55 |
+
- Legal
|
| 56 |
+
- Administrative
|
| 57 |
+
- Conversational Arabic
|
| 58 |
+
- General knowledge
|
| 59 |
|
| 60 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
+
## Dataset Structure
|
| 63 |
|
| 64 |
+
| Field | Type | Description |
|
| 65 |
+
|--------------|------|-------------|
|
| 66 |
+
| sentence_a | str | First sentence |
|
| 67 |
+
| sentence_b | str | Second sentence |
|
| 68 |
+
| score | float| Semantic similarity (0–1) |
|
| 69 |
+
| relation | str | Type of relation |
|
| 70 |
|
| 71 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
## Example Entries
|
| 74 |
+
|
| 75 |
```json
|
| 76 |
+
{"sentence_a": "يرجى التوجه إلى كاتب الجلسة لوضع توقيعك في السجل الرسمي الذي يثبت حضورك للدفاع اليوم.", "sentence_b": "يجب التوقيع على إثبات حضور الجلسة في المحضر الرسمي لضمان الحقوق الإجرائية.", "score": 0.93, "relation": "summary"}
|
| 77 |
+
{"sentence_a": "إحنا محتاجين مترجم محلف عشان نترجم المستندات دي.", "sentence_b": "إحنا محتاجين خبير فني يترجم الرموز اللي موجودة في كشوف الحسابات.", "score": 0.58, "relation": "hard_negative"}
|
| 78 |
+
{"sentence_a": "الجلسة كانت زحمة جداً وما قدرناش نتكلم غير كلمتين.", "sentence_b": "شُهد ازدحام شديد في الجلسة ولم يُسمح إلا بحديث مقتضب.", "score": 0.85, "relation": "passive"}
|
| 79 |
+
{"sentence_a": "عم نحاول نتواصل مع المندوب بس تلفونه مغلق.", "sentence_b": "هناك صعوبة مؤقتة في الوصول لجهة التوصيل المسؤولة.", "score": 0.82, "relation": "entailment"}
|
| 80 |
+
{"sentence_a": "عم نحاول نتواصل مع المندوب بس تلفونه مغلق.", "sentence_b": "هناك صعوبة مؤقتة في الوصول لجهة التواصل المسؤولة.", "score": 0.82, "relation": "paraphrase"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|