The invention discloses a text
similarity query method based on a preset rule. The text
similarity query method is used for Chinese and English retrieval of
aviation safety accident survey reports. According to the method, firstly, a
sample selection method capable of efficiently utilizing huge data volume and saving computing
resource consumption is designed, the method is applied to an NTSB
aviation database, a bilingual text
similarity data set is constructed, and fine adjustment of a Sensor-BERT pre-training model in the
aviation field is achieved; then designing an interpretation
sentence extraction algorithm based on vector similarity, constructing an aviation professional term dictionary, and further obtaining a more accurate semantic coding result; and finally, corresponding semantic coding rules are adopted for different types of query statements, and an aviation accident report bilingual retrieval
system is constructed. According to the method, the aviation accident report similar to the semantic meaning of the Chinese
query statement input by the user can be quickly searched in the English aviation
database, and the quantitative index
evaluation result shows the effectiveness of the retrieval
system. Besides, semantic coding is performed by constructing a dictionary, so that the query effect of aviation terminologies can be improved, and a new thought for quickly improving the application effect of the pre-training model without spending time on fine adjustment is provided.