The invention belongs to the technical field of
text processing, and particularly relates to a method and
system for retrieving DOCX document content based on keywords, which comprises the following steps: analyzing an Office Open
XML structure of a DOCX document, combining with multi-dimensional features such as style names, and utilizing a title classification
score model to accurately distinguish a title and a text, so that a semantic hierarchical structure of the document is effectively reserved; and secondly, a multi-level semantic extension mechanism is introduced, and a Sension-BERT, a HowNet
knowledge base and a Word2Vec model are fused, so that intelligent extension of synonyms and synonyms of keywords is realized, and the
recall rate and semantic understanding ability of retrieval are remarkably improved. And in addition, a BM25 model is combined with
paragraph length normalization and structure position weight to calculate a correlation
score, so that retrieval results are sorted more accurately and reasonably. The construction of the
reverse index is combined with the position coding and compression optimization strategy, and the retrieval efficiency and the storage performance are both considered.