Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,33 @@
|
|
1 |
---
|
|
|
|
|
|
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language: eng
|
3 |
+
tags:
|
4 |
+
- bert
|
5 |
license: apache-2.0
|
6 |
+
|
7 |
+
widget:
|
8 |
+
- text: "The hotel is very nicely located"
|
9 |
+
example_title: "Example 1"
|
10 |
+
- text: "The reception staff were extremely helpful and very welcoming"
|
11 |
+
example_title: "Example 2"
|
12 |
+
- text: "There is no balcony in the rooms on the mountain side"
|
13 |
+
example_title: "Example 3"
|
14 |
+
- text: "A bit pricey"
|
15 |
+
example_title: "Example 4"
|
16 |
---
|
17 |
+
|
18 |
+
# German Hotel Review Sentiment Classification
|
19 |
+
A model trained on English Hotel Reviews from Switzerland. The base model is the [bert-base-uncased](https://huggingface.co/bert-base-uncased). The last hidden layer of the base model was extracted and a classification layer was added. The entire model was then trained for 5 epochs on our dataset.
|
20 |
+
|
21 |
+
# Model Performance
|
22 |
+
|
23 |
+
| Classes | Precision | Recall | F1 Score |
|
24 |
+
| :---: | :---: | :---: |:---: |
|
25 |
+
| Positive | 86.36% | 95.00% | 90.48% |
|
26 |
+
| Negative | 90.91% | 76.92% | 83.33% |
|
27 |
+
| Neutral | 50.00% | 42.86% | 46.15% |
|
28 |
+
| Accuracy | | | 83.00% |
|
29 |
+
| Macro Average | 75.76% | 71.59% | 73.32% |
|
30 |
+
| Weighted Average | 82.45% | 83.00% | 82.41% |
|
31 |
+
|
32 |
+
## Confusion Matrix
|
33 |
+
![Confusion Matrix](bert-base-uncased_English_sentiment.jpg)
|