The application relates to a dialogue text normative
analysis method and device and a storage medium, and is applied to the technical field of text analysis, and comprises the following steps: storing dialogue texts in an Elasticsearch cluster according to speaking roles, the Elasticsearch cluster is based on Lunce, supports self-defined word segmentation and query plug-ins, on the basis, the dialogue texts are stored according to the roles, the problem that a word segmentation plug-in cannot distinguish and store role texts based on the full-
text retrieval technology Lunce in the prior art is solved, and the application sets self-defined
system reserved words, sets a query
syntax according to the self-defined
system reserved words, generates a
syntax tree through Antlr4 technology, obtains a
query statement that can be recognized by the Elasticsearch cluster through the
syntax tree, compared with the construction of the query syntax in the prior art which adopts a common tree type
data structure, the construction of the dialogue
text query syntax in the application adopts the Antlr4 technology which is commonly used in the industry, and storage, checking and conversion are relatively simple.