root commited on
Commit
b528c0a
1 Parent(s): 9431782
README.md CHANGED
@@ -1,3 +1,52 @@
1
  ---
2
- license: mit
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+
5
+ tags:
6
+ - emotion-analysis
7
+
8
  ---
9
+ # Emotion Analysis in English
10
+ ## bertweet-base-emotion-analysis
11
+
12
+ Repository: [https://github.com/finiteautomata/pysentimiento/](https://github.com/finiteautomata/pysentimiento/)
13
+
14
+
15
+ Model trained with EmoEvent corpus for Emotion detection in English. Base model is [BerTweet](https://huggingface.co/vinai/bertweet-base).
16
+
17
+
18
+ ## License
19
+
20
+ `pysentimiento` is an open-source library for non-commercial use and scientific research purposes only. Please be aware that models are trained with third-party datasets and are subject to their respective licenses.
21
+
22
+ 1. [TASS Dataset license](http://tass.sepln.org/tass_data/download.php)
23
+ 2. [SEMEval 2017 Dataset license]()
24
+
25
+ ## Citation
26
+
27
+ If you use `pysentimiento` in your work, please cite [this paper](https://arxiv.org/abs/2106.09462)
28
+
29
+ ```
30
+ @misc{perez2021pysentimiento,
31
+ title={pysentimiento: A Python Toolkit for Sentiment Analysis and SocialNLP tasks},
32
+ author={Juan Manuel Pérez and Juan Carlos Giudici and Franco Luque},
33
+ year={2021},
34
+ eprint={2106.09462},
35
+ archivePrefix={arXiv},
36
+ primaryClass={cs.CL}
37
+ }
38
+ ```
39
+
40
+ and also the dataset related paper
41
+
42
+ ```
43
+ @inproceedings{del2020emoevent,
44
+ title={EmoEvent: A multilingual emotion corpus based on different events},
45
+ author={del Arco, Flor Miriam Plaza and Strapparava, Carlo and Lopez, L Alfonso Urena and Mart{\'\i}n-Valdivia, M Teresa},
46
+ booktitle={Proceedings of the 12th Language Resources and Evaluation Conference},
47
+ pages={1492--1498},
48
+ year={2020}
49
+ }
50
+ ```
51
+
52
+ Enjoy! 🤗
added_tokens.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"<mask>": 64000}
bpe.codes ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "vinai/bertweet-base",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "others",
15
+ "1": "joy",
16
+ "2": "sadness",
17
+ "3": "anger",
18
+ "4": "surprise",
19
+ "5": "disgust",
20
+ "6": "fear"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "anger": 3,
26
+ "disgust": 5,
27
+ "fear": 6,
28
+ "joy": 1,
29
+ "others": 0,
30
+ "sadness": 2,
31
+ "surprise": 4
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "max_position_embeddings": 130,
35
+ "model_type": "roberta",
36
+ "num_attention_heads": 12,
37
+ "num_hidden_layers": 12,
38
+ "pad_token_id": 1,
39
+ "position_embedding_type": "absolute",
40
+ "tokenizer_class": "BertweetTokenizer",
41
+ "transformers_version": "4.6.1",
42
+ "type_vocab_size": 1,
43
+ "use_cache": true,
44
+ "vocab_size": 64001
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38bd6088ef2036d65cb99f80b54130e9d3a17f3a0b3c7f95c8f8c421fcdf9a98
3
+ size 539646676
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbb2a82fac7350eaa0baf9aa30fb9ebc9884cb9d6c48746ae6034e89771311dc
3
+ size 539706835
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": "<mask>"}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"normalization": false, "bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 128, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "vinai/bertweet-base"}
vocab.txt ADDED
The diff for this file is too large to render. See raw diff