The solution is suitable for the field of information processing, and provides an input sentence error correction method and device, an electronic device, and a medium. The method comprises: establishing and training a language model based on a training language material; acquiring an error determining threshold value of the language model, the error determining threshold value indicating a critical probability value for an input sentence being an incorrect sentence; inputting, into the language model, a sentence to be identified, so as to calculate an accuracy rate of the sentence to be identified; and when the correct probability of the sentence to be identified is lower than the error determining threshold value, determining the sentence to be identified as an incorrect sentence and performing error correction processing on the sentence to be identified. The present solution realises an automatic detection for correctness of a sentence, performs error correction processing on a sentence to be identified, which is determined to be an incorrect sentence, so as to ensure that a user, even if inputting an incorrect word in an intelligent question-answering system, can also automatically adjust the incorrect word into a sentence complying with an actual will of a user, so that the intelligent question-answering system can correctly understand a question of the user, and improves the success rate of automatic question-answering, thereby improving the technical development of intelligent question-answering.
INPUT SENTENCE ERROR CORRECTION METHOD AND DEVICE, ELECTRONIC DEVICE, AND MEDIUM