CoolFace
Datasetpublic

QCRI/LlamaLens-Hindi

LlamaLens: Specialized Multilingual LLM Dataset Overview LlamaLens is a specialized multilingual LLM designed for analyzing news and social media content. It focuses on 18 NLP tasks, leveraging 52 datasets across Arabic, English, and Hindi. LlamaLens This repo includes scripts needed to run our full pipeline, including data preprocessing and sampling, instruction dataset creation, model fine-tuning, inference and evaluation. Features… See the full description on the dataset page: https://huggingface.co/datasets/QCRI/LlamaLens-Hindi.

sourceHugging Facecc-by-nc-sa-4.0updated 2y agoView on Hugging Face
1likes117downloads
Dataset Card

LlamaLens: Specialized Multilingual LLM Dataset

Overview

LlamaLens is a specialized multilingual LLM designed for analyzing news and social media content. It focuses on 18 NLP tasks, leveraging 52 datasets across Arabic, English, and Hindi.

<p align="center"> <img src="https://huggingface.co/datasets/QCRI/LlamaLens-Arabic/resolve/main/capablitiestasksdatasets.png" style="width: 40%;" id="title-icon"> </p>

LlamaLens

This repo includes scripts needed to run our full pipeline, including data preprocessing and sampling, instruction dataset creation, model fine-tuning, inference and evaluation.

Features

  • —Multilingual support (Arabic, English, Hindi)
  • —18 NLP tasks with 52 datasets
  • —Optimized for news and social media content analysis

📂 Dataset Overview

Hindi Datasets

**Task****Dataset****# Labels****# Train****# Test****# Dev**
CyberbullyingMC-Hinglish1.077,4001,0002,119
Factualityfake-news28,3932,7431,417
Hate Speechhate-speech-detection23,327951476
Hate SpeechHindi-Hostility-Detection-CONSTRAINT-2021155,7181,651811
NaturalLanguageInferenceNaturalLanguageInference21,251447537
Summarizationxlsum--70,7548,8478,847
Offensive SpeechOffensiveSpeechDetection32,172636318
SentimentSentiment_Analysis310,0391,2591,258

Results

Below, we present the performance of L-Lens: LlamaLens , where "Eng" refers to the English-instructed model and "Native" refers to the model trained with native language instructions. The results are compared against the SOTA (where available) and the Base: Llama-Instruct 3.1 baseline. The Δ (Delta) column indicates the difference between LlamaLens and the SOTA performance, calculated as (LlamaLens – SOTA).


**Task****Dataset****Metric****SOTA****Base****L-Lens-Eng****L-Lens-Native****Δ (L-Lens (Eng) - SOTA)**
Factualityfake-newsMi-F1--0.7590.9940.993--
Hate Speech Detectionhate-speech-detectionMi-F10.6390.7500.9630.9630.324
Hate Speech DetectionHindi-Hostility-Detection-CONSTRAINT-2021W-F10.8410.4690.7530.753-0.088
Natural Language InferenceNatural Language InferenceW-F10.6460.6330.5680.679-0.078
News SummarizationxlsumR-20.1360.0780.1710.1700.035
Offensive Language DetectionOffensive Speech DetectionMi-F10.7230.6210.8620.8650.139
Cyberbullying DetectionMC_Hinglish1Acc0.6090.2330.6250.6270.016
Sentiment ClassificationSentiment AnalysisAcc0.6970.5520.6470.654-0.050

File Format

Each JSONL file in the dataset follows a structured format with the following fields:

  • —id: Unique identifier for each data entry.
  • —original_id: Identifier from the original dataset, if available.
  • —input: The original text that needs to be analyzed.
  • —output: The label assigned to the text after analysis.
  • —dataset: Name of the dataset the entry belongs.
  • —task: The specific task type.
  • —lang: The language of the input text.
  • —instructions: A brief set of instructions describing how the text should be labeled.

Example entry in JSONL file:

{
    "id": "5486ee85-4a70-4b33-8711-fb2a0b6d81e1",
    "original_id": null,
    "input": "आप और बाकी सभी मुसलमान समाज के लिए आशीर्वाद हैं.",
    "output": "not-hateful",
    "dataset": "hate-speech-detection",
    "task": "Factuality",
    "lang": "hi",
    "instructions": "Classify the given text as either 'not-hateful' or 'hateful'. Return only the label without any explanation, justification, or additional text."
}

Model

**LlamaLens on Hugging Face**

Replication Scripts

**LlamaLens GitHub Repository**

📢 Citation

If you use this dataset, please cite our paper:

@article{kmainasi2024llamalensspecializedmultilingualllm,
  title={LlamaLens: Specialized Multilingual LLM for Analyzing News and Social Media Content},
  author={Mohamed Bayan Kmainasi and Ali Ezzat Shahroor and Maram Hasanain and Sahinur Rahman Laskar and Naeemul Hassan and Firoj Alam},
  year={2024},
  journal={arXiv preprint arXiv:2410.15308},
  volume={},
  number={},
  pages={},
  url={https://arxiv.org/abs/2410.15308},
  eprint={2410.15308},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}