Cargando…

Multi-class sentiment analysis of urdu text using multilingual BERT

Sentiment analysis (SA) is an important task because of its vital role in analyzing people’s opinions. However, existing research is solely based on the English language with limited work on low-resource languages. This study introduced a new multi-class Urdu dataset based on user reviews for sentim...

Descripción completa

Detalles Bibliográficos
Autores principales: Khan, Lal, Amjad, Ammar, Ashraf, Noman, Chang, Hsien-Tsung
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Nature Publishing Group UK 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8971433/
https://www.ncbi.nlm.nih.gov/pubmed/35361890
http://dx.doi.org/10.1038/s41598-022-09381-9
_version_ 1784679632008642560
author Khan, Lal
Amjad, Ammar
Ashraf, Noman
Chang, Hsien-Tsung
author_facet Khan, Lal
Amjad, Ammar
Ashraf, Noman
Chang, Hsien-Tsung
author_sort Khan, Lal
collection PubMed
description Sentiment analysis (SA) is an important task because of its vital role in analyzing people’s opinions. However, existing research is solely based on the English language with limited work on low-resource languages. This study introduced a new multi-class Urdu dataset based on user reviews for sentiment analysis. This dataset is gathered from various domains such as food and beverages, movies and plays, software and apps, politics, and sports. Our proposed dataset contains 9312 reviews manually annotated by human experts into three classes: positive, negative and neutral. The main goal of this research study is to create a manually annotated dataset for Urdu sentiment analysis and to set baseline results using rule-based, machine learning (SVM, NB, Adabbost, MLP, LR and RF) and deep learning (CNN-1D, LSTM, Bi-LSTM, GRU and Bi-GRU) techniques. Additionally, we fine-tuned Multilingual BERT(mBERT) for Urdu sentiment analysis. We used four text representations: word n-grams, char n-grams,pre-trained fastText and BERT word embeddings to train our classifiers. We trained these models on two different datasets for evaluation purposes. Finding shows that the proposed mBERT model with BERT pre-trained word embeddings outperformed deep learning, machine learning and rule-based classifiers and achieved an F1 score of 81.49%.
format Online
Article
Text
id pubmed-8971433
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher Nature Publishing Group UK
record_format MEDLINE/PubMed
spelling pubmed-89714332022-04-01 Multi-class sentiment analysis of urdu text using multilingual BERT Khan, Lal Amjad, Ammar Ashraf, Noman Chang, Hsien-Tsung Sci Rep Article Sentiment analysis (SA) is an important task because of its vital role in analyzing people’s opinions. However, existing research is solely based on the English language with limited work on low-resource languages. This study introduced a new multi-class Urdu dataset based on user reviews for sentiment analysis. This dataset is gathered from various domains such as food and beverages, movies and plays, software and apps, politics, and sports. Our proposed dataset contains 9312 reviews manually annotated by human experts into three classes: positive, negative and neutral. The main goal of this research study is to create a manually annotated dataset for Urdu sentiment analysis and to set baseline results using rule-based, machine learning (SVM, NB, Adabbost, MLP, LR and RF) and deep learning (CNN-1D, LSTM, Bi-LSTM, GRU and Bi-GRU) techniques. Additionally, we fine-tuned Multilingual BERT(mBERT) for Urdu sentiment analysis. We used four text representations: word n-grams, char n-grams,pre-trained fastText and BERT word embeddings to train our classifiers. We trained these models on two different datasets for evaluation purposes. Finding shows that the proposed mBERT model with BERT pre-trained word embeddings outperformed deep learning, machine learning and rule-based classifiers and achieved an F1 score of 81.49%. Nature Publishing Group UK 2022-03-31 /pmc/articles/PMC8971433/ /pubmed/35361890 http://dx.doi.org/10.1038/s41598-022-09381-9 Text en © The Author(s) 2022 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) .
spellingShingle Article
Khan, Lal
Amjad, Ammar
Ashraf, Noman
Chang, Hsien-Tsung
Multi-class sentiment analysis of urdu text using multilingual BERT
title Multi-class sentiment analysis of urdu text using multilingual BERT
title_full Multi-class sentiment analysis of urdu text using multilingual BERT
title_fullStr Multi-class sentiment analysis of urdu text using multilingual BERT
title_full_unstemmed Multi-class sentiment analysis of urdu text using multilingual BERT
title_short Multi-class sentiment analysis of urdu text using multilingual BERT
title_sort multi-class sentiment analysis of urdu text using multilingual bert
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8971433/
https://www.ncbi.nlm.nih.gov/pubmed/35361890
http://dx.doi.org/10.1038/s41598-022-09381-9
work_keys_str_mv AT khanlal multiclasssentimentanalysisofurdutextusingmultilingualbert
AT amjadammar multiclasssentimentanalysisofurdutextusingmultilingualbert
AT ashrafnoman multiclasssentimentanalysisofurdutextusingmultilingualbert
AT changhsientsung multiclasssentimentanalysisofurdutextusingmultilingualbert