Instructions to use gurkan08/bert-turkish-text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gurkan08/bert-turkish-text-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gurkan08/bert-turkish-text-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gurkan08/bert-turkish-text-classification") model = AutoModelForSequenceClassification.from_pretrained("gurkan08/bert-turkish-text-classification") - Notebooks
- Google Colab
- Kaggle
Örnek olarak paylaştığınız kodda hata
#2
by brooqs - opened
Örnek olarak paylaştığınız kodda hata vardı. Düzelttik. label_dict kısmı aşağıdaki şekilde kullanıldığında düzgün çalışacaktır.
label_dict = {
'ekonomi': 'ekonomi',
'spor': 'spor',
'saglik': 'saglik',
'kultur_sanat': 'kultur_sanat',
'bilim_teknoloji': 'bilim_teknoloji',
'egitim': 'egitim'
}