Downloads · 30 days
2
3% of all-time downloads
jovima/bilstm-stego-synonym
bilstm-stego-synonym is a machine learning model from jovima. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
2
3% of all-time downloads
All-time downloads
67
Public
Repo size
91 MB
Likes
0
Public
Click a slice to open those files.
.bin91 MB · 98%
From the Hugging Face model README
Exported from:
checkpoints/synonym/stego-bilstm-word2vec-synonym-lr0.0001-epoch=08-val_f1=0.94.ckptcheckpoints/synonym/vocab.pklfrom transformers import AutoModelForSequenceClassification, AutoTokenizer
repo_or_path = "bilstm-stego-synonym"
tokenizer = AutoTokenizer.from_pretrained(repo_or_path, trust_remote_code=True)
model = AutoModelForSequenceClassification.from_pretrained(repo_or_path, trust_remote_code=True)
inputs = tokenizer("Example sentence to classify.", return_tensors="pt", truncation=True, padding=True)
outputs = model(**inputs)
pred = outputs.logits.argmax(dim=-1).item()
print(pred) # 0=CLEAN, 1=STEGO