Views
No views yet
1>>>from transformers import pipeline
2>>>model = pipeline('text-classification', model='Ammar-alhaj-ali/arabic-MARBERT-dialect-identification-city')
3>>>sentences = ['ناطرين البرنامج', 'اكلنا هوا بهل شروة']
4>>>model(sentences)
5[{'label': 'Beirut', 'score': 0.9731963276863098},
6{'label': 'Aleppo', 'score': 0.4592577815055847}]
7