The invention discloses a
sentence pattern recommendation method and device, an electronic device and a computer-readable storage medium. The method includes: searching a plurality of similar words corresponding to an input word from a similar word map; s for each similar word, the similar words and the historical input text of the input words are spliced to obtain the candidate
sentence patternscorresponding to the similar words; The reasonableness of candidate sentences is calculated; According to the reasonableness of the candidate
sentence patterns, the reasonable sentence patterns are selected for recommendation. The invention searches the similar words corresponding to the input words from the similar word map, splices the similar words and the history input text to obtain the candidate sentence pattern, further recommends the candidate sentence pattern with high reasonableness to the developer, and inspires the developer to carry out sentence pattern configuration. Thus, the
workload of the developer for sentence configuration is reduced, the sentence configuration is more comprehensive, and in the interactive
system, all the user instructions can be matched to the appropriate sentence, the user intention can be accurately understood, and the user instructions can be executed.