Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: ja
|
3 |
+
tags:
|
4 |
+
- japanese
|
5 |
+
- fake-news-detection
|
6 |
+
- text-classification
|
7 |
+
license: mit
|
8 |
+
---
|
9 |
+
|
10 |
+
# Japanese Fake News Detector
|
11 |
+
|
12 |
+
```
|
13 |
+
self.bert = BertModel.from_pretrained(model_name, output_hidden_states=True)
|
14 |
+
self.n_layers = n_layers
|
15 |
+
hidden_size = 768 * n_layers
|
16 |
+
self.dropout = nn.Dropout(0.1)
|
17 |
+
self.classifier = nn.Linear(hidden_size, 3)
|
18 |
+
```
|
19 |
+
|