Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Rasooli
/
KABERT-sentiment-analysis
like
0
Model card
Files
Files and versions
xet
Community
Rasooli
commited on
about 1 month ago
Commit
f24f534
·
verified
·
1 Parent(s):
4c473b4
Create README.md
Browse files
Files changed (1)
hide
show
README.md
+6
-0
README.md
ADDED
Viewed
@@ -0,0 +1,6 @@
1
+
import torch
2
+
from kabert import KABERT
3
+
4
+
model = KABERT("bert-base-multilingual-cased", num_labels=3)
5
+
model.load_state_dict(torch.load("kabert_gpu_best.pt", map_location="cpu"))
6
+
model.eval()