dejanseo commited on
Commit
c2dcfa8
1 Parent(s): 3c25df7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +127 -2
README.md CHANGED
@@ -1,7 +1,132 @@
1
  ---
2
- license: bigscience-openrail-m
 
 
 
 
 
 
 
 
 
 
3
  ---
4
 
 
 
 
 
5
  * 0: positive
6
  * 1: neutral
7
- * 2: negative
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - exbert
4
+ language:
5
+ - hr
6
+
7
+ license: mit
8
+ pipeline_tag: text-classification
9
+ widget:
10
+ - text: "Uzbuđen sam što mogu podijeliti da smo postigli novi rekord u prodaji naših proizvoda ovog kvartala."
11
+ - text: "Na web stranici je objavljena nova analiza tržišta koja pokazuje nove trendove u sektoru nekretnina."
12
+ - text: "S velikim razočaranjem moram reći da su korisničke recenzije našeg najnovijeg proizvoda izrazito loše."
13
  ---
14
 
15
+ # Croatian Sentiment
16
+ Croatian sentence sentiment classification model. A fine-tuned version of XLM-RoBERTa Large, trained and released by [Dejan Marketing](https://dejanmarketing.com/).
17
+
18
+ # Sentiment Labels
19
  * 0: positive
20
  * 1: neutral
21
+ * 2: negative
22
+
23
+ # Engage Our Team
24
+ Interested in using this in an automated pipeline for bulk link prediction?
25
+
26
+ Please [book an appointment](https://dejanmarketing.com/conference/) to discuss your needs.
27
+
28
+ # Training Data:
29
+ - Synthetic dataset generated using mistralai/Mistral-7B-Instruct-v0.3
30
+
31
+ # ORIGINAL MODEL
32
+
33
+ # XLM-RoBERTa (large-sized model)
34
+
35
+ XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Conneau et al. and first released in [this repository](https://github.com/pytorch/fairseq/tree/master/examples/xlmr).
36
+
37
+ Disclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.
38
+
39
+ ## Model description
40
+
41
+ XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
42
+
43
+ RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
44
+
45
+ More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
46
+
47
+ This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
48
+
49
+ ## Intended uses & limitations
50
+
51
+ You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?search=xlm-roberta) to look for fine-tuned versions on a task that interests you.
52
+
53
+ Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
54
+
55
+ ## Usage
56
+
57
+ You can use this model directly with a pipeline for masked language modeling:
58
+
59
+ ```python
60
+ >>> from transformers import pipeline
61
+ >>> unmasker = pipeline('fill-mask', model='xlm-roberta-large')
62
+ >>> unmasker("Hello I'm a <mask> model.")
63
+
64
+ [{'score': 0.10563907772302628,
65
+ 'sequence': "Hello I'm a fashion model.",
66
+ 'token': 54543,
67
+ 'token_str': 'fashion'},
68
+ {'score': 0.08015287667512894,
69
+ 'sequence': "Hello I'm a new model.",
70
+ 'token': 3525,
71
+ 'token_str': 'new'},
72
+ {'score': 0.033413201570510864,
73
+ 'sequence': "Hello I'm a model model.",
74
+ 'token': 3299,
75
+ 'token_str': 'model'},
76
+ {'score': 0.030217764899134636,
77
+ 'sequence': "Hello I'm a French model.",
78
+ 'token': 92265,
79
+ 'token_str': 'French'},
80
+ {'score': 0.026436051353812218,
81
+ 'sequence': "Hello I'm a sexy model.",
82
+ 'token': 17473,
83
+ 'token_str': 'sexy'}]
84
+ ```
85
+
86
+ Here is how to use this model to get the features of a given text in PyTorch:
87
+
88
+ ```python
89
+ from transformers import AutoTokenizer, AutoModelForMaskedLM
90
+
91
+ tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-large')
92
+ model = AutoModelForMaskedLM.from_pretrained("xlm-roberta-large")
93
+
94
+ # prepare input
95
+ text = "Replace me by any text you'd like."
96
+ encoded_input = tokenizer(text, return_tensors='pt')
97
+
98
+ # forward pass
99
+ output = model(**encoded_input)
100
+ ```
101
+
102
+ ### BibTeX entry and citation info
103
+
104
+ ```bibtex
105
+ @article{DBLP:journals/corr/abs-1911-02116,
106
+ author = {Alexis Conneau and
107
+ Kartikay Khandelwal and
108
+ Naman Goyal and
109
+ Vishrav Chaudhary and
110
+ Guillaume Wenzek and
111
+ Francisco Guzm{\'{a}}n and
112
+ Edouard Grave and
113
+ Myle Ott and
114
+ Luke Zettlemoyer and
115
+ Veselin Stoyanov},
116
+ title = {Unsupervised Cross-lingual Representation Learning at Scale},
117
+ journal = {CoRR},
118
+ volume = {abs/1911.02116},
119
+ year = {2019},
120
+ url = {http://arxiv.org/abs/1911.02116},
121
+ eprinttype = {arXiv},
122
+ eprint = {1911.02116},
123
+ timestamp = {Mon, 11 Nov 2019 18:38:09 +0100},
124
+ biburl = {https://dblp.org/rec/journals/corr/abs-1911-02116.bib},
125
+ bibsource = {dblp computer science bibliography, https://dblp.org}
126
+ }
127
+ ```
128
+
129
+ <a href="https://huggingface.co/exbert/?model=xlm-roberta-base">
130
+ <img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
131
+ </a>
132
+