Research Article

Aspect-Level Sentiment Analysis Approach via BERT and Aspect Feature Location Model

Algorithm 1

Aspect feature location algorithm.
Require: the context representation ; the position of aspect words in a sentence; the length of aspect words; the batch size ;
1: repeat
2:  for each do
3:   Select lines ( and ) of to obtain aspect feature ;
4:   Calculate the most important features according to Eq. (8);
5:   Apply the dropout operation to all the important features to get the ;
6:  end for;
7: until Accuracy and macro-F1 tend to be stable.