anilguven/turkish_news_dataset
Viewer • Updated • 4.2k • 56
How to use anilguven/bert_tr_turkish_news with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="anilguven/bert_tr_turkish_news") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("anilguven/bert_tr_turkish_news")
model = AutoModelForSequenceClassification.from_pretrained("anilguven/bert_tr_turkish_news", device_map="auto")This model was developed/finetuned for news classification task for the Turkish Language. This model was finetuned via news dataset. This dataset contains 7 classes: economy, magazine, sport, politics, technology, health, and events.
You must apply removing stopwords, stemming, or lemmatization process for Turkish.
BibTeX: Peer review process