Text Classification
Transformers
PyTorch
bert
Inference Endpoints
rttl nazneen commited on
Commit
a3c3f29
1 Parent(s): b827343

model documentation (#3)

Browse files

- model documentation (5cf1a3ea6f8b1abe1f5f48599c5384abca9f8828)


Co-authored-by: Nazneen Rajani <nazneen@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +189 -3
README.md CHANGED
@@ -1,8 +1,194 @@
 
1
  ---
2
  license: bigscience-bloom-rail-1.0
3
  ---
4
 
5
- # Foody BERT
 
 
 
 
 
 
 
 
6
  Foody-bert results from the second round of fine-tuning on the text classification task.
7
- Continuation of fine-tuning of senty-bert (https://huggingface.co/rttl-ai/senty-bert), which is fine-tuned on yelp reviews and Stanford sentiment treebank with ternary labels (neutral, positive, negative).
8
- A foody-bert fine-tuned on DynaSent Bench Data (https://github.com/cgpotts/dynasent), which has more adversarial examples. The dataset mainly contains restaurant review data.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
  ---
3
  license: bigscience-bloom-rail-1.0
4
  ---
5
 
6
+
7
+
8
+ # Model Card for Foody Bert
9
+
10
+
11
+ # Model Details
12
+
13
+ ## Model Description
14
+
15
  Foody-bert results from the second round of fine-tuning on the text classification task.
16
+ Continuation of fine-tuning of [senty-bert](https://huggingface.co/rttl-ai/senty-bert), which is fine-tuned on yelp reviews and Stanford sentiment treebank with ternary labels (neutral, positive, negative).
17
+
18
+
19
+
20
+ - **Developed by:** [Christopher Potts](http://web.stanford.edu/~cgpotts/), [Zhengxuan Wu](http://zen-wu.social), Atticus Geiger, and [Douwe Kiela](https://douwekiela.github.io). 2020. DynaSent: A dynamic benchmark for sentiment analysis. Ms., Stanford University and Facebook AI Research.
21
+ - **Shared by [Optional]:** Hugging Face
22
+ - **Model type:** Language model
23
+ - **Language(s) (NLP):** More information needed
24
+ - **License:** bigscience-bloom-rail-1.0
25
+ - **Related Models:** More information needed
26
+ - **Parent Model:** More information needed
27
+ - **Resources for more information:**
28
+ - [Associated Paper](https://arxiv.org/abs/2012.15349)
29
+
30
+
31
+
32
+ # Uses
33
+
34
+
35
+ ## Direct Use
36
+
37
+
38
+ - The primary intended use is in sentiment analysis of the texts of product and service reviews, and this is the domain in which the model has been evaluated to date.
39
+
40
+ - We urge caution about using these models for sentiment prediction in other domains. For example, sentiment expression in medical contexts and professional evaluations can be different from sentiment expression in product/service reviews.
41
+
42
+
43
+ ## Downstream Use [Optional]
44
+
45
+ More information needed
46
+
47
+
48
+
49
+
50
+ ## Out-of-Scope Use
51
+
52
+ More information needed
53
+
54
+
55
+
56
+
57
+ # Bias, Risks, and Limitations
58
+
59
+
60
+ Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
61
+
62
+
63
+ ## Recommendations
64
+
65
+
66
+
67
+ - We recommend careful study of how these models behave, even when they are used in the domain on which they were trained and assessed. The models are deep learning models about which it is challenging to gain full analytic command; two examples that appear synonymous to human readers can receive very different predictions from these models, in ways that are hard to anticipate or explain, and so it is crucial to do continual qualitative and quantitative evaluation as part of any deployment.
68
+
69
+ - We advise even more caution when using these models in new domains, as sentiment expression can shift in subtle (and not-so-subtle) ways across different domains, and this could lead specific phenomena to be mis-handled in ways that could have dramatic and pernicious consequences.
70
+
71
+
72
+ # Training Details
73
+
74
+ ## Training Data
75
+
76
+ The model was trained on product/service reviews from Yelp, reviews from Amazon, reviews from IMDB (as defined by [this dataset](https://ai.stanford.edu/~amaas/data/sentiment/)), sentences from Rotten Tomatoes (as given by the [Stanford Sentiment Treebank](https://nlp.stanford.edu/sentiment/)), the [Customer Reviews](https://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html) dataset, and on subsets of the DynaSent dataset. The dataset mainly contains restaurant review data.
77
+
78
+ For extensive details on these datasets are included in the [associated Paper](https://arxiv.org/abs/2012.15349).
79
+
80
+
81
+ ## Training Procedure
82
+
83
+
84
+ ### Preprocessing
85
+
86
+ More information needed
87
+
88
+ ### Speeds, Sizes, Times
89
+
90
+
91
+ More information needed
92
+
93
+ # Evaluation
94
+
95
+
96
+ ## Testing Data, Factors & Metrics
97
+
98
+ ### Testing Data
99
+
100
+ More information needed
101
+
102
+
103
+ ### Factors
104
+
105
+ More information needed
106
+
107
+ ### Metrics
108
+
109
+ More information needed
110
+
111
+ ## Results
112
+
113
+ More information needed
114
+
115
+ # Model Examination
116
+
117
+ More information needed
118
+
119
+ # Environmental Impact
120
+
121
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
122
+
123
+ - **Hardware Type:** More information needed
124
+ - **Hours used:** More information needed
125
+ - **Cloud Provider:** More information needed
126
+ - **Compute Region:** More information needed
127
+ - **Carbon Emitted:** More information needed
128
+
129
+ # Technical Specifications [optional]
130
+
131
+ ## Model Architecture and Objective
132
+
133
+ More information needed
134
+
135
+ ## Compute Infrastructure
136
+
137
+ More information needed
138
+
139
+ ### Hardware
140
+
141
+ More information needed
142
+
143
+ ### Software
144
+
145
+ More information needed
146
+
147
+ # Citation
148
+
149
+ **BibTeX:**
150
+
151
+ More information needed
152
+
153
+ **APA:**
154
+ ```
155
+ @article{potts-etal-2020-dynasent,
156
+ title={{DynaSent}: A Dynamic Benchmark for Sentiment Analysis},
157
+ author={Potts, Christopher and Wu, Zhengxuan and Geiger, Atticus and Kiela, Douwe},
158
+ journal={arXiv preprint arXiv:2012.15349},
159
+ url={https://arxiv.org/abs/2012.15349},
160
+ year={2020}}
161
+ ```
162
+
163
+ # Glossary [optional]
164
+ More information needed
165
+
166
+ # More Information [optional]
167
+
168
+ More information needed
169
+
170
+ # Model Card Authors [optional]
171
+
172
+ [Christopher Potts](http://web.stanford.edu/~cgpotts/), [Zhengxuan Wu](http://zen-wu.social), Atticus Geiger, and [Douwe Kiela](https://douwekiela.github.io). 2020. DynaSent: A dynamic benchmark for sentiment analysis. Ms., Stanford University and Facebook AI Research, in collabertation with the Hugging Face team
173
+
174
+ # Model Card Contact
175
+
176
+ More information needed
177
+
178
+ # How to Get Started with the Model
179
+
180
+ Use the code below to get started with the model.
181
+
182
+ <details>
183
+ <summary> Click to expand </summary>
184
+
185
+ ```python
186
+
187
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
188
+
189
+ tokenizer = AutoTokenizer.from_pretrained("rttl-ai/foody-bert")
190
+
191
+ model = AutoModelForSequenceClassification.from_pretrained("rttl-ai/foody-bert")
192
+ ```
193
+ </details>
194
+