MarkProMaster229 commited on
Commit
c8c8035
·
verified ·
1 Parent(s): 8a6b19a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -9
README.md CHANGED
@@ -1,6 +1,26 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
4
  ```python
5
  import torch
6
  import torch.nn as nn
@@ -110,15 +130,15 @@ for text in texts:
110
  logits = model(inputs['input_ids'])
111
  pred_idx = torch.argmax(logits, dim=1).item()
112
  pred_label = label_map[pred_idx]
113
- print(f"Текст: {text}")
114
- print(f"Предсказанный класс: {pred_label} ({pred_idx})")
115
  ```
116
 
117
  ```python
118
- Текст: Я люблю тебя
119
- Предсказанный класс: positive (0)
120
- Текст: Мне совсем не понравился этот фильм
121
- Предсказанный класс: negative (1)
122
- Текст: Кличка моей кошки - Ирис
123
- Предсказанный класс: neutral (2)
124
- ```
 
1
  ---
2
  license: apache-2.0
3
+ datasets:
4
+ - MarkProMaster229/toxic_dialogue
5
+ - MarkProMaster229/synthetic_classification
6
+ language:
7
+ - ru
8
+ pipeline_tag: text-classification
9
+ tags:
10
+ - toxic
11
+ - custom
12
+ - transformer
13
+ - text-classification
14
  ---
15
+
16
+ ## Model Details
17
+ - Architecture: Custom Transformer
18
+ - Number of parameters: 33,791,235 (~33.8M)
19
+ - Num layers: 4
20
+ - Num attention heads: 8
21
+ - Hidden size: 256
22
+
23
+ ## Using
24
  ```python
25
  import torch
26
  import torch.nn as nn
 
130
  logits = model(inputs['input_ids'])
131
  pred_idx = torch.argmax(logits, dim=1).item()
132
  pred_label = label_map[pred_idx]
133
+ print(f"text: {text}")
134
+ print(f"class: {pred_label} ({pred_idx})")
135
  ```
136
 
137
  ```python
138
+ text: Я люблю тебя
139
+ class: positive (0)
140
+ text: Мне совсем не понравился этот фильм
141
+ class: negative (1)
142
+ text: Кличка моей кошки - Ирис
143
+ class: neutral (2)
144
+ ```