{'fraction_non_alphanumeric': 0.019835841313269494, 'fraction_numerical': 0.005471956224350205, 'mean_word_length': 5.1991525423728815, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Text Similarity Measurement Method Based on BiLSTM-SECapsNet Model

Text similarity measurement is a basic task in natural language processing and widely used in information retrieval, automatic question answering, machine translation, etc. Because most traditional statistical-based methods for text similarity measurement cannot efficiently extract the semantic information of the text, we propose a BiLSTM-SECapsNet hybrid model based on BiLSTM, CapsNet, and SENet for text similarity measurement. We employed the siamese BiLSTM network as sequential inference models to extract the global features. The coattention mechanism is employed to generate attention weight between the text features, which will collect local inference over sequences. The CapsNet network is also introduced to catch the local features of the text. And then the SENet network is used to automatically calibrate the importance of each local feature to obtain the local feature matrix. After that, the feature matrix is fused again and the BiLSTM network is used to extract the context information to obtain the similarity matrix of the two texts. At last, the semantic similarity of the text is measured through the fusion, pooling, and fully connected layer. The experimental results based on the Quora Questions Pairs data set show that the accuracy of the method is 87.31, and the F-measure is 87.35. Compared with other networks, the effectiveness of the method has been improved.