AliShahroor
commited on
Commit
·
efee33c
1
Parent(s):
f969bd5
Added files
Browse files- .gitattributes +1 -0
- Hindi-Hostility-Detection-CONSTRAINT-2021/dev.json +3 -0
- Hindi-Hostility-Detection-CONSTRAINT-2021/test.json +3 -0
- Hindi-Hostility-Detection-CONSTRAINT-2021/train.json +3 -0
- MC_Hinglish1/dev.json +3 -0
- MC_Hinglish1/test.json +3 -0
- MC_Hinglish1/train.json +3 -0
- Natural_Language_Inference/dev.json +3 -0
- Natural_Language_Inference/test.json +3 -0
- Natural_Language_Inference/train.json +3 -0
- Offensive_Speech_Detection/dev.json +3 -0
- Offensive_Speech_Detection/test.json +3 -0
- Offensive_Speech_Detection/train.json +3 -0
- Sentiment_Analysis/dev.json +3 -0
- Sentiment_Analysis/test.json +3 -0
- Sentiment_Analysis/train.json +3 -0
- fake-news/dev.json +3 -0
- fake-news/test.json +3 -0
- fake-news/train.json +3 -0
- hate-speech-detection/dev.json +3 -0
- hate-speech-detection/test.json +3 -0
- hate-speech-detection/train.json +3 -0
- readme_hindi.md +230 -0
- xlsum/dev.json +3 -0
- xlsum/test.json +3 -0
- xlsum/train.json +3 -0
.gitattributes
CHANGED
@@ -56,3 +56,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
59 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
Hindi-Hostility-Detection-CONSTRAINT-2021/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:07a0e7353c74148248a8c23341b2eb2981272aeb9c6b1f55b5c4a7e9fc653c16
|
3 |
+
size 878495
|
Hindi-Hostility-Detection-CONSTRAINT-2021/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e33926e947b58fbb5750fdfde69a6db850a1d72cc9df1783ae483faaf194c2c1
|
3 |
+
size 1850425
|
Hindi-Hostility-Detection-CONSTRAINT-2021/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:793141a2d65d5c5ad06a19bd223ea2edd3de8d8ee2421bce3aada494303363ec
|
3 |
+
size 6175741
|
MC_Hinglish1/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b1f742532f4eee412be3b73f1031b50444dd88e1c63577f0365f3a6bd32fe5d4
|
3 |
+
size 1353116
|
MC_Hinglish1/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9197deac3250f6d08e9a0c667e0e76d521493cd414e08ed3bcfdba98d61ef444
|
3 |
+
size 532684
|
MC_Hinglish1/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:543b3bfac59f36152f6db18ba04ef10412e258d92a3d56d6712c63bb10a1fa01
|
3 |
+
size 3108659
|
Natural_Language_Inference/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3eaf694ec261f1e7824aa1a5141a0ae292e9dd16bef2934e444a051023e4e222
|
3 |
+
size 529352
|
Natural_Language_Inference/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:98ace45ae4adb37fc18394c0fd76344ab1f5307872d3214a3739fc87b6814a24
|
3 |
+
size 448068
|
Natural_Language_Inference/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:37f28ad5b1b1e5fa88a43ab402df6cb17cafd9c84887466fad4ef228b708d3b0
|
3 |
+
size 1249280
|
Offensive_Speech_Detection/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3735c4f8bf4ed0d0f7128c20a870b24087af53cea43c23bb7833d303fb3b7fd
|
3 |
+
size 184707
|
Offensive_Speech_Detection/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:de804578c88a3aefbf51e836cdd0de746d5762bcce45ba2127dc65ebe1b922be
|
3 |
+
size 367026
|
Offensive_Speech_Detection/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d41c18b3aa9c60756be2a8248aeb3f39b4783a96af4ed4f2dd6cc74a3ae7a044
|
3 |
+
size 1257831
|
Sentiment_Analysis/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7415853d08c498d0f41d1ad34cb8a110de3c56f87b91878edb8f361fe04d0d4a
|
3 |
+
size 680813
|
Sentiment_Analysis/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:22fe3860364fe9cbf65915118941fddbf9432692672b52b648b49ab19e492079
|
3 |
+
size 676978
|
Sentiment_Analysis/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfee4f22648911e2ff0753faa0d9e43c4d45ac132ab8b4f2c53e4c6fe64317dc
|
3 |
+
size 5484240
|
fake-news/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:16aa10d192a3b382c5104649e3cfd5ef8b3c2d7ecfc504de3c72e1743bf1ceae
|
3 |
+
size 14910669
|
fake-news/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3279f6cd42b990f3bcc80854dccadfaf28b37e19666d2cb0a5b2d82bee7df507
|
3 |
+
size 28063664
|
fake-news/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8af5728faf7c97f91815ce8b6785ed2910d2f26199ffdb49dbf2bb4109f4a444
|
3 |
+
size 84867100
|
hate-speech-detection/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec5ed0bde2922421b1245b1decbf5f59904a669cd6fbc9699906eab0791d8fae
|
3 |
+
size 265663
|
hate-speech-detection/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47fa5c0219ce012c761f486c7f3b2f65789d6fa71b1a5969c02b01cda180ef06
|
3 |
+
size 508110
|
hate-speech-detection/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce694ac7decb4671901ff0d91525c6ad65243c56aef48719fb2472f8f2177666
|
3 |
+
size 1847014
|
readme_hindi.md
ADDED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hi
|
7 |
+
tags:
|
8 |
+
- Social Media
|
9 |
+
- News Media
|
10 |
+
- Sentiment
|
11 |
+
- Stance
|
12 |
+
- Emotion
|
13 |
+
pretty_name: "LlamaLens: Specialized Multilingual LLM for Analyzing News and Social Media Content -- Hindi"
|
14 |
+
size_categories:
|
15 |
+
- 10K<n<100K
|
16 |
+
dataset_info:
|
17 |
+
- config_name: Sentiment Analysis
|
18 |
+
splits:
|
19 |
+
- name: train
|
20 |
+
num_examples: 10039
|
21 |
+
- name: dev
|
22 |
+
num_examples: 1258
|
23 |
+
- name: test
|
24 |
+
num_examples: 1259
|
25 |
+
- config_name: MC_Hinglish1
|
26 |
+
splits:
|
27 |
+
- name: train
|
28 |
+
num_examples: 5177
|
29 |
+
- name: dev
|
30 |
+
num_examples: 2219
|
31 |
+
- name: test
|
32 |
+
num_examples: 1000
|
33 |
+
- config_name: Offensive Speech Detection
|
34 |
+
splits:
|
35 |
+
- name: train
|
36 |
+
num_examples: 2172
|
37 |
+
- name: dev
|
38 |
+
num_examples: 318
|
39 |
+
- name: test
|
40 |
+
num_examples: 636
|
41 |
+
- config_name: xlsum
|
42 |
+
splits:
|
43 |
+
- name: train
|
44 |
+
num_examples: 70754
|
45 |
+
- name: dev
|
46 |
+
num_examples: 8847
|
47 |
+
- name: test
|
48 |
+
num_examples: 8847
|
49 |
+
- config_name: Hindi-Hostility-Detection-CONSTRAINT-2021
|
50 |
+
splits:
|
51 |
+
- name: train
|
52 |
+
num_examples: 5718
|
53 |
+
- name: dev
|
54 |
+
num_examples: 811
|
55 |
+
- name: test
|
56 |
+
num_examples: 1651
|
57 |
+
- config_name: hate-speech-detection
|
58 |
+
splits:
|
59 |
+
- name: train
|
60 |
+
num_examples: 3327
|
61 |
+
- name: dev
|
62 |
+
num_examples: 476
|
63 |
+
- name: test
|
64 |
+
num_examples: 951
|
65 |
+
- config_name: fake-news
|
66 |
+
splits:
|
67 |
+
- name: train
|
68 |
+
num_examples: 8393
|
69 |
+
- name: dev
|
70 |
+
num_examples: 1417
|
71 |
+
- name: test
|
72 |
+
num_examples: 2743
|
73 |
+
- config_name: Natural Language Inference
|
74 |
+
splits:
|
75 |
+
- name: train
|
76 |
+
num_examples: 1251
|
77 |
+
- name: dev
|
78 |
+
num_examples: 537
|
79 |
+
- name: test
|
80 |
+
num_examples: 447
|
81 |
+
configs:
|
82 |
+
- config_name: Sentiment Analysis
|
83 |
+
data_files:
|
84 |
+
- split: test
|
85 |
+
path: Sentiment Analysis/test.json
|
86 |
+
- split: dev
|
87 |
+
path: Sentiment Analysis/dev.json
|
88 |
+
- split: train
|
89 |
+
path: Sentiment Analysis/train.json
|
90 |
+
- config_name: MC_Hinglish1
|
91 |
+
data_files:
|
92 |
+
- split: test
|
93 |
+
path: MC_Hinglish1/test.json
|
94 |
+
- split: dev
|
95 |
+
path: MC_Hinglish1/dev.json
|
96 |
+
- split: train
|
97 |
+
path: MC_Hinglish1/train.json
|
98 |
+
- config_name: Offensive Speech Detection
|
99 |
+
data_files:
|
100 |
+
- split: test
|
101 |
+
path: Offensive Speech Detection/test.json
|
102 |
+
- split: dev
|
103 |
+
path: Offensive Speech Detection/dev.json
|
104 |
+
- split: train
|
105 |
+
path: Offensive Speech Detection/train.json
|
106 |
+
- config_name: xlsum
|
107 |
+
data_files:
|
108 |
+
- split: test
|
109 |
+
path: xlsum/test.json
|
110 |
+
- split: dev
|
111 |
+
path: xlsum/dev.json
|
112 |
+
- split: train
|
113 |
+
path: xlsum/train.json
|
114 |
+
- config_name: Hindi-Hostility-Detection-CONSTRAINT-2021
|
115 |
+
data_files:
|
116 |
+
- split: test
|
117 |
+
path: Hindi-Hostility-Detection-CONSTRAINT-2021/test.json
|
118 |
+
- split: dev
|
119 |
+
path: Hindi-Hostility-Detection-CONSTRAINT-2021/dev.json
|
120 |
+
- split: train
|
121 |
+
path: Hindi-Hostility-Detection-CONSTRAINT-2021/train.json
|
122 |
+
- config_name: hate-speech-detection
|
123 |
+
data_files:
|
124 |
+
- split: test
|
125 |
+
path: hate-speech-detection/test.json
|
126 |
+
- split: dev
|
127 |
+
path: hate-speech-detection/dev.json
|
128 |
+
- split: train
|
129 |
+
path: hate-speech-detection/train.json
|
130 |
+
- config_name: fake-news
|
131 |
+
data_files:
|
132 |
+
- split: test
|
133 |
+
path: fake-news/test.json
|
134 |
+
- split: dev
|
135 |
+
path: fake-news/dev.json
|
136 |
+
- split: train
|
137 |
+
path: fake-news/train.json
|
138 |
+
- config_name: Natural Language Inference
|
139 |
+
data_files:
|
140 |
+
- split: test
|
141 |
+
path: Natural Language Inference/test.json
|
142 |
+
- split: dev
|
143 |
+
path: Natural Language Inference/dev.json
|
144 |
+
- split: train
|
145 |
+
path: Natural Language Inference/train.json
|
146 |
+
---
|
147 |
+
|
148 |
+
# LlamaLens: Specialized Multilingual LLM Dataset
|
149 |
+
|
150 |
+
## Overview
|
151 |
+
|
152 |
+
LlamaLens is a specialized multilingual LLM designed for analyzing news and social media content. It focuses on 19 NLP tasks, leveraging 52 datasets across Arabic, English, and Hindi.
|
153 |
+
|
154 |
+
<p align="center"> <img src="https://huggingface.co/datasets/QCRI/LlamaLens-Arabic/resolve/main/capablities_tasks_datasets.png" style="width: 40%;" id="title-icon"> </p>
|
155 |
+
|
156 |
+
## LlamaLens
|
157 |
+
|
158 |
+
This repo includes scripts needed to run our full pipeline, including data preprocessing and sampling, instruction dataset creation, model fine-tuning, inference and evaluation.
|
159 |
+
|
160 |
+
### Features
|
161 |
+
|
162 |
+
- Multilingual support (Arabic, English, Hindi)
|
163 |
+
- 19 NLP tasks with 52 datasets
|
164 |
+
- Optimized for news and social media content analysis
|
165 |
+
|
166 |
+
## 📂 Dataset Overview
|
167 |
+
|
168 |
+
### Hindi Datasets
|
169 |
+
|
170 |
+
| **Task** | **Dataset** | **# Labels** | **# Train** | **# Test** | **# Dev** |
|
171 |
+
| -------------------------- | ----------------------------------------- | ------------ | ----------- | ---------- | --------- |
|
172 |
+
| Cyberbullying | MC-Hinglish1.0 | 7 | 7,400 | 1,000 | 2,119 |
|
173 |
+
| Factuality | fake-news | 2 | 8,393 | 2,743 | 1,417 |
|
174 |
+
| Hate Speech | hate-speech-detection | 2 | 3,327 | 951 | 476 |
|
175 |
+
| Hate Speech | Hindi-Hostility-Detection-CONSTRAINT-2021 | 15 | 5,718 | 1,651 | 811 |
|
176 |
+
| Natural Language Inference | Natural Language Inference | 2 | 1,251 | 447 | 537 |
|
177 |
+
| Summarization | xlsum | -- | 70,754 | 8,847 | 8,847 |
|
178 |
+
| Offensive Speech | Offensive Speech Detection | 3 | 2,172 | 636 | 318 |
|
179 |
+
| Sentiment | Sentiment Analysis | 3 | 10,039 | 1,259 | 1,258 |
|
180 |
+
|
181 |
+
---
|
182 |
+
|
183 |
+
## File Format
|
184 |
+
|
185 |
+
Each JSONL file in the dataset follows a structured format with the following fields:
|
186 |
+
|
187 |
+
- `id`: Unique identifier for each data entry.
|
188 |
+
- `original_id`: Identifier from the original dataset, if available.
|
189 |
+
- `input`: The original text that needs to be analyzed.
|
190 |
+
- `output`: The label assigned to the text after analysis.
|
191 |
+
- `dataset`: Name of the dataset the entry belongs.
|
192 |
+
- `task`: The specific task type.
|
193 |
+
- `lang`: The language of the input text.
|
194 |
+
- `instructions`: A brief set of instructions describing how the text should be labeled.
|
195 |
+
- `text`: A formatted structure including instructions and response for the task in a conversation format between the system, user, and assistant, showing the decision process.
|
196 |
+
|
197 |
+
**Example entry in JSONL file:**
|
198 |
+
|
199 |
+
```
|
200 |
+
{
|
201 |
+
"id": "2b1878df-5a4f-4f74-bcd8-e38e1c3c7cf6",
|
202 |
+
"original_id": null,
|
203 |
+
"input": "sub गंदा है पर धंधा है ये . .",
|
204 |
+
"output": "neutral",
|
205 |
+
"dataset": "Sentiment Analysis",
|
206 |
+
"task": "Sentiment",
|
207 |
+
"lang": "hi",
|
208 |
+
"instruction": "Identify the sentiment in the text and label it as positive, negative, or neutral. Return only the label without any explanation, justification or additional text."
|
209 |
+
}
|
210 |
+
```
|
211 |
+
|
212 |
+
## 📢 Citation
|
213 |
+
|
214 |
+
If you use this dataset, please cite our [paper](https://arxiv.org/pdf/2410.15308):
|
215 |
+
|
216 |
+
```
|
217 |
+
@article{kmainasi2024llamalensspecializedmultilingualllm,
|
218 |
+
title={LlamaLens: Specialized Multilingual LLM for Analyzing News and Social Media Content},
|
219 |
+
author={Mohamed Bayan Kmainasi and Ali Ezzat Shahroor and Maram Hasanain and Sahinur Rahman Laskar and Naeemul Hassan and Firoj Alam},
|
220 |
+
year={2024},
|
221 |
+
journal={arXiv preprint arXiv:2410.15308},
|
222 |
+
volume={},
|
223 |
+
number={},
|
224 |
+
pages={},
|
225 |
+
url={https://arxiv.org/abs/2410.15308},
|
226 |
+
eprint={2410.15308},
|
227 |
+
archivePrefix={arXiv},
|
228 |
+
primaryClass={cs.CL}
|
229 |
+
}
|
230 |
+
```
|
xlsum/dev.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff37727cbb49f75b5f18e4860a6cd679a14baa6a49057ffd4defe19df68c9f34
|
3 |
+
size 58229742
|
xlsum/test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df3aeda5d8f612eb7ed90696778159ee9a3eb1c887f0bd3b68e3e4c28bf08a5a
|
3 |
+
size 58556383
|
xlsum/train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb40b408fc1461f4bb3a90c12ed5e73fd2607fbf5d2e0afe0cebacc9f5385677
|
3 |
+
size 564284408
|