Sujithanumala/TheFinalPropagandaDataset
Viewer • Updated • 1.06k • 9
How to use Sujithanumala/Propaganda_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Sujithanumala/Propaganda_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Sujithanumala/Propaganda_model")
model = AutoModelForTokenClassification.from_pretrained("Sujithanumala/Propaganda_model")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Sujithanumala/Propaganda_model")
model = AutoModelForTokenClassification.from_pretrained("Sujithanumala/Propaganda_model")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Sujithanumala/Propaganda_model")