Computer and Modernization ›› 2021, Vol. 0 ›› Issue (01): 120-126.

Previous Articles    

Algorithm of Answer Sentence Selection Based on Q and A Interaction

  

  1. (Information Engineering College, Chang’an University, Xian 710064, China)
  • Online:2021-01-28 Published:2021-01-29

Abstract: The accuracy of answer selection task has an important influence on the application of question answering system, text processing and so on. In order to solve the problem that the semantic information and the shallow features of question and the candidate answer are not fully utilized in the answer selection model, an answer selection model based on the interaction of question and answer is proposed. Given question Q and candidate answer A, the model first uses BiLSTM encoder to encode them, concatenates the two directions encode results of each time step of Q and A, and then uses Feed-Forward attention to encode question sentence Q; all the time steps of question Q are matched with all the time steps of A. According to the matching results, the weight of each word of the answer sentence is calculated, and then the sentence code of the answer sentence is calculated according to the weight of each word of the answer sentence. Finally, the sentence coding of Q and A sentences is input into the full connection layer after the aggregation operation, and the final judgment result is output by fusion with the co-occurrence feature of words. The experimental results on the DBQA data set show that this model can effectively improve the effect of answer selection task compared with the mainstream Siamese neural network.

Key words: answer sentence selection, BiLSTM, Feed-Forward attention, attention mechanism of Q and A interaction, co-occurrence of words