Downloads · 30 days
33
2% of all-time downloads
notaphoenix/shakespeare_classifier_model
shakespeare_classifier_model is a text classification model from notaphoenix. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
With this model, you can classify if an English sentence has a Shakespearean style or a modern style
Downloads · 30 days
33
2% of all-time downloads
All-time downloads
1.7K
Public
Parameters
67M
3.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin268 MB · 50%
From the Hugging Face model README
With this model, you can classify if an English sentence has a Shakespearean style or a modern style
The model is a fine-tuned checkpoint of DistilBERT-base-uncased.
from transformers import pipeline
classifier = pipeline("text-classification", model="notaphoenix/shakespeare_classifier_model", top_k=None)
classifier("This is a modern sentence!")
[[
{'label': 'modern', 'score': 0.901931643486023},
{'label': 'shakespearean', 'score': 0.09806833416223526}
]]
from transformers import pipeline
classifier = pipeline("text-classification", model="notaphoenix/shakespeare_classifier_model")
classifier("This is a modern sentence!")
[
{'label': 'modern', 'score': 0.901931643486023}
]