

# Hashtag Prediction Dataset from paper TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg?style=flat-square)](https://huggingface.co/datasets/Twitter/HashtagPrediction/discussions) [![arXiv](https://img.shields.io/badge/arXiv-2203.15827-b31b1b.svg)](https://arxiv.org/abs/2209.07562) [![Github](https://img.shields.io/badge/Github-TwHIN--BERT-brightgreen?logo=github)](https://github.com/xinyangz/TwHIN-BERT)


This repo contains the Hashtag prediction dataset from our paper [TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations](https://arxiv.org/abs/2209.07562). <br />
[[arXiv]](https://arxiv.org/abs/2209.07562)
[[HuggingFace Models]](https://huggingface.co/Twitter/twhin-bert-base)
[[Github repo]](https://github.com/xinyangz/TwHIN-BERT)

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.

## Download
Use the `hashtag-classification-id.zip` in this repo. [Link](https://huggingface.co/datasets/Twitter/HashtagPrediction/blob/main/hashtag-classification-id.zip).

Check the first-author's GitHub repo for any supplemental dataset material or code. [Link](https://github.com/xinyangz/TwHIN-BERT)

## Dataset Description

The hashtag prediction dataset is a multilingual classification dataset. Separate datasets are given for different languages. We first select 500 (or all available) popular hashtags of each language and then sample 10k (or all available) popular Tweets that contain these hashtags. We make sure each Tweet will have exactly one of the selected hashtags.

The evaluation task is a multiclass classification task, with hashtags as labels. We remove the hashtag from the Tweet, and let the model predict the removed hashtag.

We provide Tweet ID and raw text hashtag labels in `tsv` files. For each language, we provide train, development, and test splits.

To use the dataset, you must hydrate the Tweet text with [Twitter API](https://developer.twitter.com/en/docs/twitter-api), and **remove the hashtag used for label from each Tweet** .

The data format is displayed below.

| ID | label |
| ------------- | ------------- |
| 1   | hashtag |
| 2   | another hashtag |

## Citation
If you use our dataset in your work, please cite the following:
```bib
@article{zhang2022twhin,
  title={TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations},
  author={Zhang, Xinyang and Malkov, Yury and Florez, Omar and Park, Serim and McWilliams, Brian and Han, Jiawei and El-Kishky, Ahmed},
  journal={arXiv preprint arXiv:2209.07562},
  year={2022}
}
```
language:sl language:ur language:sd language:pl language:vi language:sv language:am language:da language:mr language:no language:gu language:in language:ja language:el language:lv language:it language:ca language:is language:cs language:te language:tl language:ro language:ckb language:pt language:ps language:zh language:sr language:pa language:si language:ml language:ht language:kn language:ar language:hu language:nl language:bg language:bn language:ne language:hi language:de language:ko language:fi language:fr language:es language:et language:en language:fa language:lt language:or language:cy language:eu language:iw language:ta language:th language:tr license:cc-by-4.0 Twitter Multilingual Classification Benchmark arxiv:2209.07562 region:us
{"language": ["sl", "ur", "sd", "pl", "vi", "sv", "am", "da", "mr", false, "gu", "in", "ja", "el", "lv", "it", "ca", "is", "cs", "te", "tl", "ro", "ckb", "pt", "ps", "zh", "sr", "pa", "si", "ml", "ht", "kn", "ar", "hu", "nl", "bg", "bn", "ne", "hi", "de", "ko", "fi", "fr", "es", "et", "en", "fa", "lt", "or", "cy", "eu", "iw", "ta", "th", "tr"], "license": "cc-by-4.0", "tags": ["Twitter", "Multilingual", "Classification", "Benchmark"]}
TAGS
#language-Slovenian #language-Urdu #language-Sindhi #language-Polish #language-Vietnamese #language-Swedish #language-Amharic #language-Danish #language-Marathi #language-Norwegian #language-Gujarati #language-in #language-Japanese #language-Modern Greek (1453-) #language-Latvian #language-Italian #language-Catalan #language-Icelandic #language-Czech #language-Telugu #language-Tagalog #language-Romanian #language-Central Kurdish #language-Portuguese #language-Pushto #language-Chinese #language-Serbian #language-Panjabi #language-Sinhala #language-Malayalam #language-Haitian #language-Kannada #language-Arabic #language-Hungarian #language-Dutch #language-Bulgarian #language-Bengali #language-Nepali (macrolanguage) #language-Hindi #language-German #language-Korean #language-Finnish #language-French #language-Spanish #language-Estonian #language-English #language-Persian #language-Lithuanian #language-Oriya (macrolanguage) #language-Welsh #language-Basque #language-iw #language-Tamil #language-Thai #language-Turkish #license-cc-by-4.0 #Twitter #Multilingual #Classification #Benchmark #arxiv-2209.07562 #region-us 

Hashtag Prediction Dataset from paper TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations
=======================================================================================================================================


![PRs Welcome](URL ![arXiv](URL ![Github](URL


This repo contains the Hashtag prediction dataset from our paper TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations.   

[[arXiv]](URL
[[HuggingFace Models]](URL
[[Github repo]](URL


<a rel="license" href="URL alt="Creative Commons License" style="border-width:0" src="https://i.URL />  
This work is licensed under a <a rel="license" href="URL Commons Attribution 4.0 International License.


Download
--------


Use the 'URL' in this repo. Link.


Check the first-author's GitHub repo for any supplemental dataset material or code. Link


Dataset Description
-------------------


The hashtag prediction dataset is a multilingual classification dataset. Separate datasets are given for different languages. We first select 500 (or all available) popular hashtags of each language and then sample 10k (or all available) popular Tweets that contain these hashtags. We make sure each Tweet will have exactly one of the selected hashtags.


The evaluation task is a multiclass classification task, with hashtags as labels. We remove the hashtag from the Tweet, and let the model predict the removed hashtag.


We provide Tweet ID and raw text hashtag labels in 'tsv' files. For each language, we provide train, development, and test splits.


To use the dataset, you must hydrate the Tweet text with Twitter API, and remove the hashtag used for label from each Tweet .


The data format is displayed below.



If you use our dataset in your work, please cite the following:



TAGS
#language-Slovenian #language-Urdu #language-Sindhi #language-Polish #language-Vietnamese #language-Swedish #language-Amharic #language-Danish #language-Marathi #language-Norwegian #language-Gujarati #language-in #language-Japanese #language-Modern Greek (1453-) #language-Latvian #language-Italian #language-Catalan #language-Icelandic #language-Czech #language-Telugu #language-Tagalog #language-Romanian #language-Central Kurdish #language-Portuguese #language-Pushto #language-Chinese #language-Serbian #language-Panjabi #language-Sinhala #language-Malayalam #language-Haitian #language-Kannada #language-Arabic #language-Hungarian #language-Dutch #language-Bulgarian #language-Bengali #language-Nepali (macrolanguage) #language-Hindi #language-German #language-Korean #language-Finnish #language-French #language-Spanish #language-Estonian #language-English #language-Persian #language-Lithuanian #language-Oriya (macrolanguage) #language-Welsh #language-Basque #language-iw #language-Tamil #language-Thai #language-Turkish #license-cc-by-4.0 #Twitter #Multilingual #Classification #Benchmark #arxiv-2209.07562 #region-us 

passage: TAGS
#language-Slovenian #language-Urdu #language-Sindhi #language-Polish #language-Vietnamese #language-Swedish #language-Amharic #language-Danish #language-Marathi #language-Norwegian #language-Gujarati #language-in #language-Japanese #language-Modern Greek (1453-) #language-Latvian #language-Italian #language-Catalan #language-Icelandic #language-Czech #language-Telugu #language-Tagalog #language-Romanian #language-Central Kurdish #language-Portuguese #language-Pushto #language-Chinese #language-Serbian #language-Panjabi #language-Sinhala #language-Malayalam #language-Haitian #language-Kannada #language-Arabic #language-Hungarian #language-Dutch #language-Bulgarian #language-Bengali #language-Nepali (macrolanguage) #language-Hindi #language-German #language-Korean #language-Finnish #language-French #language-Spanish #language-Estonian #language-English #language-Persian #language-Lithuanian #language-Oriya (macrolanguage) #language-Welsh #language-Basque #language-iw #language-Tamil #language-Thai #language-Turkish #license-cc-by-4.0 #Twitter #Multilingual #Classification #Benchmark #arxiv-2209.07562 #region-us 
