Update README.md
Browse files
README.md
CHANGED
@@ -48,6 +48,24 @@ mixed_precision_training: Native AMP
|
|
48 |
| 0.000100 | 0.033340 | 0.994663 |
|
49 |
| 0.000000 | 0.032938 | 0.995979 |
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
## Framework versions
|
52 |
- Transformers 4.24.0
|
53 |
- Pytorch 1.13.0
|
|
|
48 |
| 0.000100 | 0.033340 | 0.994663 |
|
49 |
| 0.000000 | 0.032938 | 0.995979 |
|
50 |
|
51 |
+
|
52 |
+
## Using example
|
53 |
+
|
54 |
+
```
|
55 |
+
#Install packages
|
56 |
+
!pip install transformers --quiet
|
57 |
+
|
58 |
+
#Import libraries
|
59 |
+
import torch
|
60 |
+
from transformers import pipeline
|
61 |
+
|
62 |
+
#Define pipeline
|
63 |
+
classificator = pipeline("text-classification", model="ERCDiDip/40_langdetect_v01")
|
64 |
+
|
65 |
+
#Use pipeline
|
66 |
+
classificator("clemens etc dilecto filio scolastico ecclesie wetflari ensi treveren dioc salutem etc significarunt nobis dilecti filii commendator et fratres hospitalis beate marie theotonicorum")
|
67 |
+
```
|
68 |
+
|
69 |
## Framework versions
|
70 |
- Transformers 4.24.0
|
71 |
- Pytorch 1.13.0
|