The invention belongs to the field of computer
natural language processing, and relates to a method for carrying out high-quality syntactic analysis on human
natural language sentences, in particular to a syntactic
analysis method based on sliding semantic string matching. The method is characterized in that when a rule base is built, hierarchic flattening transformation is firstly carried out on a usual
phrase syntax tree, then
semantic code labeling is carried out on the chunking information of each layer, and therefore the chunking rules of context-sensitive grammar of N elements are extracted; in the syntactic analysis process, the optimal chunking rules are matched to carry out stacking chunking type analysis through a sliding semantic string matching model; errors in the lower layer are found and corrected in the higher layer through an error correction template, and
heuristic backtracking in the stacking chunking type syntactic analysis is achieved; template information is directly added to a semantic template index, and a
machine can learn new syntactic rules immediately. The method solves the problems that a PCFG type syntactic analysis level can hardly be further improved and the correct chucking rules are hard to choose in the stacking chunking type syntactic analysis, and improves the existing syntactic analysis level.