Sasidhar1826
commited on
Commit
•
4614566
1
Parent(s):
dcfbea4
Update README.md
Browse files
README.md
CHANGED
@@ -1,22 +1,27 @@
|
|
1 |
---
|
2 |
language: en
|
3 |
-
license:
|
4 |
tags:
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
model-index:
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
---
|
21 |
|
22 |
# Fine-Tuned Metaphor Detection Model
|
@@ -55,4 +60,4 @@ with torch.no_grad():
|
|
55 |
logits = outputs.logits
|
56 |
prediction = torch.argmax(logits, dim=-1)
|
57 |
|
58 |
-
print("Prediction:", "Metaphor" if prediction.item() == 1 else "Literal")
|
|
|
1 |
---
|
2 |
language: en
|
3 |
+
license: apache-2.0
|
4 |
tags:
|
5 |
+
- metaphor-detection
|
6 |
+
- bert
|
7 |
+
- text-classification
|
8 |
+
- nlp
|
9 |
+
- transformer
|
10 |
model-index:
|
11 |
+
- name: Fine-Tuned Metaphor Detection Model
|
12 |
+
results:
|
13 |
+
- task:
|
14 |
+
name: text-classification
|
15 |
+
type: text-classification
|
16 |
+
metrics:
|
17 |
+
- name: Accuracy
|
18 |
+
value: 72
|
19 |
+
type: accuracy
|
20 |
+
metrics:
|
21 |
+
- accuracy
|
22 |
+
base_model:
|
23 |
+
- google-bert/bert-base-uncased
|
24 |
+
pipeline_tag: text-classification
|
25 |
---
|
26 |
|
27 |
# Fine-Tuned Metaphor Detection Model
|
|
|
60 |
logits = outputs.logits
|
61 |
prediction = torch.argmax(logits, dim=-1)
|
62 |
|
63 |
+
print("Prediction:", "Metaphor" if prediction.item() == 1 else "Literal")
|