Downloads · 30 days
11
0% of all-time downloads
premsa/political-bias-prediction-allsides-BERT
political-bias-prediction-allsides-BERT is a text classification model from premsa. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
model base: https://huggingface.co/google-bert/bert-base-uncased
Downloads · 30 days
11
0% of all-time downloads
All-time downloads
28.4K
Public
Parameters
109M
438 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
model base: https://huggingface.co/google-bert/bert-base-uncased
dataset: https://github.com/ramybaly/Article-Bias-Prediction
training parameters:
training methodology:
result summary:
usage:
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
def main(repository: str):
model = AutoModelForSequenceClassification.from_pretrained(repository)
tokenizer = AutoTokenizer.from_pretrained(repository)
nlp = pipeline("text-classification", model=model, tokenizer=tokenizer)
print(nlp("the masses are controlled by media."))
if __name__ == "__main__":
main(repository="premsa/political-bias-prediction-allsides-BERT")