--- license: cc-by-nc-sa-4.0 task_categories: - text-classification language: - ar tags: - Social Media - News Media - Sentiment - Stance - Emotion pretty_name: 'LlamaLens: Specialized Multilingual LLM for Analyzing News and Social Media Content -- English' size_categories: - 10K

## 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) - 19 NLP tasks with 52 datasets - Optimized for news and social media content analysis ## 📂 Dataset Overview ### English Datasets | **Task** | **Dataset** | **# Labels** | **# Train** | **# Test** | **# Dev** | |---------------------------|------------------------------|--------------|-------------|------------|-----------| | Checkworthiness | CT24_T1 | 2 | 22,403 | 1,031 | 318 | | Claim | claim-detection | 2 | 23,224 | 7,267 | 5,815 | | Cyberbullying | Cyberbullying | 6 | 32,551 | 9,473 | 4,751 | | Emotion | emotion | 6 | 280,551 | 82,454 | 41,429 | | Factuality | News_dataset | 2 | 28,147 | 8,616 | 4,376 | | Factuality | Politifact | 6 | 14,799 | 4,230 | 2,116 | | News Genre Categorization | CNN_News_Articles_2011-2022 | 6 | 32,193 | 5,682 | 9,663 | | News Genre Categorization | News_Category_Dataset | 42 | 145,748 | 41,740 | 20,899 | | News Genre Categorization | SemEval23T3-subtask1 | 3 | 302 | 83 | 130 | | Summarization | xlsum | -- | 306,493 | 11,535 | 11,535 | | Offensive Language | Offensive_Hateful_Dataset_New | 2 | 42,000 | 5,252 | 5,254 | | Offensive Language | offensive_language_dataset | 2 | 29,216 | 3,653 | 3,653 | | Offensive/Hate-Speech | hate-offensive-speech | 3 | 48,944 | 2,799 | 2,802 | | Propaganda | QProp | 2 | 35,986 | 10,159 | 5,125 | | Sarcasm | News-Headlines-Dataset-For-Sarcasm-Detection | 2 | 19,965 | 5,719 | 2,858 | | Sentiment | NewsMTSC-dataset | 3 | 7,739 | 747 | 320 | | Subjectivity | clef2024-checkthat-lab | 2 | 825 | 484 | 219 | ## 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. - `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. **Example entry in JSONL file:** ``` { "id": "3fe3eb6a-843e-4a03-b38c-8333c052f4c4", "original_id": "nan", "input": "You know, I saw a movie - \"Crocodile Dundee.\"", "output": "not_checkworthy", "dataset": "CT24_checkworthy", "task": "Checkworthiness", "lang": "en", "instructions": "Analyze the given text and label it as 'checkworthy' if it includes a factual statement that is significant or relevant to verify, or 'not_checkworthy' if it's not worth checking. Return only the label without any explanation, justification or additional text.", "text": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are a social media expert providing accurate analysis and insights.<|eot_id|><|start_header_id|>user<|end_header_id|>Analyze the given text and label it as 'checkworthy' if it includes a factual statement that is significant or relevant to verify, or 'not_checkworthy' if it's not worth checking. Return only the label without any explanation, justification or additional text.\ninput: You know, I saw a movie - \"Crocodile Dundee.\"\nlabel: <|eot_id|><|start_header_id|>assistant<|end_header_id|>not_checkworthy<|eot_id|><|end_of_text|>" } ``` ## 📢 Citation If you use this dataset, please cite our [paper](https://arxiv.org/pdf/2410.15308): ``` @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} } ```