CoolFace
Modelpublic

rushdiodeh/Multi-dialect-Arabicrush

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
README.md13 linesDownload Raw Back to root
1---2license: apache-2.03metrics:4- accuracy5pipeline_tag: text-classification6---7# Arabic-Dialects-Identification-Model8here's a complete Python code to perform the Arabic dialects identification using MultinomialNB and Random Forest classifiers and evaluate the model using various performance metrics:9 10This creates a dataframe 'comparison_df' that has three columns: 'Actual', 'Multinomial NB', and Random ,Forest'. The Actual column contains the true labels for the testing data, while the Multinomial NB and Random Forest columns contain the predicted labels for the testing data using the corresponding classifier.11 12Finally, the comparison dataframe is saved to an Excel file called arabic_dialects_comparison.xlsx using the to_excel() method with index=False argument to exclude the row index from the Excel file.13