Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China.
The emotion analysis of hotel online reviews is discussed by using the neural network model BERT, which proves that this method can not only help hotel network platforms fully understand customer needs but also help customers find suitable hotels according to their needs and affordability and help h...
Main Authors: | , , |
---|---|
Format: | Article |
Language: | English |
Published: |
Public Library of Science (PLoS)
2023-01-01
|
Series: | PLoS ONE |
Online Access: | https://doi.org/10.1371/journal.pone.0275382 |
_version_ | 1797848137957638144 |
---|---|
author | Yu Wen Yezhang Liang Xinhua Zhu |
author_facet | Yu Wen Yezhang Liang Xinhua Zhu |
author_sort | Yu Wen |
collection | DOAJ |
description | The emotion analysis of hotel online reviews is discussed by using the neural network model BERT, which proves that this method can not only help hotel network platforms fully understand customer needs but also help customers find suitable hotels according to their needs and affordability and help hotel recommendations be more intelligent. Therefore, using the pretraining BERT model, a number of emotion analytical experiments were carried out through fine-tuning, and a model with high classification accuracy was obtained by frequently adjusting the parameters during the experiment. The BERT layer was taken as a word vector layer, and the input text sequence was used as the input to the BERT layer for vector transformation. The output vectors of BERT passed through the corresponding neural network and were then classified by the softmax activation function. ERNIE is an enhancement of the BERT layer. Both models can lead to good classification results, but the latter performs better. ERNIE exhibits stronger classification and stability than BERT, which provides a promising research direction for the field of tourism and hotels. |
first_indexed | 2024-04-09T18:23:42Z |
format | Article |
id | doaj.art-d7ebc0b723d1404f9b816b744d6d00d6 |
institution | Directory Open Access Journal |
issn | 1932-6203 |
language | English |
last_indexed | 2024-04-09T18:23:42Z |
publishDate | 2023-01-01 |
publisher | Public Library of Science (PLoS) |
record_format | Article |
series | PLoS ONE |
spelling | doaj.art-d7ebc0b723d1404f9b816b744d6d00d62023-04-12T05:32:54ZengPublic Library of Science (PLoS)PLoS ONE1932-62032023-01-01183e027538210.1371/journal.pone.0275382Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China.Yu WenYezhang LiangXinhua ZhuThe emotion analysis of hotel online reviews is discussed by using the neural network model BERT, which proves that this method can not only help hotel network platforms fully understand customer needs but also help customers find suitable hotels according to their needs and affordability and help hotel recommendations be more intelligent. Therefore, using the pretraining BERT model, a number of emotion analytical experiments were carried out through fine-tuning, and a model with high classification accuracy was obtained by frequently adjusting the parameters during the experiment. The BERT layer was taken as a word vector layer, and the input text sequence was used as the input to the BERT layer for vector transformation. The output vectors of BERT passed through the corresponding neural network and were then classified by the softmax activation function. ERNIE is an enhancement of the BERT layer. Both models can lead to good classification results, but the latter performs better. ERNIE exhibits stronger classification and stability than BERT, which provides a promising research direction for the field of tourism and hotels.https://doi.org/10.1371/journal.pone.0275382 |
spellingShingle | Yu Wen Yezhang Liang Xinhua Zhu Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China. PLoS ONE |
title | Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China. |
title_full | Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China. |
title_fullStr | Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China. |
title_full_unstemmed | Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China. |
title_short | Sentiment analysis of hotel online reviews using the BERT model and ERNIE model-Data from China. |
title_sort | sentiment analysis of hotel online reviews using the bert model and ernie model data from china |
url | https://doi.org/10.1371/journal.pone.0275382 |
work_keys_str_mv | AT yuwen sentimentanalysisofhotelonlinereviewsusingthebertmodelanderniemodeldatafromchina AT yezhangliang sentimentanalysisofhotelonlinereviewsusingthebertmodelanderniemodeldatafromchina AT xinhuazhu sentimentanalysisofhotelonlinereviewsusingthebertmodelanderniemodeldatafromchina |