FIELD OF THE TECHNOLOGY

The present disclosure relates to the field of computer technologies, and in particular, to a mathematical processing method for a textual question, an apparatus, a computer device, and a storage medium.

BACKGROUND OF THE DISCLOSURE

With development of science and technologies, artificial intelligence is applied increasingly widely, and researches on using artificial intelligence to answer questions also gradually draw much attention.

When artificial intelligence is applied to answering a question, an expression for answering the question needs to be determined. A current processing method is presetting expression templates, and answering questions by using the preset expression templates.

However, in the current method, only specific fixed expression templates can be used to answer questions, but questions are diverse, and preset expression templates often have limitations and cannot be applicable to all questions. Consequently, expressions used to answer questions are not accurate enough, leading to relatively low accuracy of intelligent question-answering.

SUMMARY

Based on this, a mathematical processing method for a textual question, an apparatus, a computer device, and a storage medium are provided, so that a problem that current expressions used for answering questions have low accuracy can be resolved specifically.

According to a first aspect, a mathematical processing method for a textual question is performed at a computing device having one or more processors and memory storing programs to be executed by the one or more processors, the method comprising:

obtaining a question text sequence;

mapping a numeral in the question text sequence to an expression word;

encoding the question text sequence including the expression word into a semantic vector;

decoding the semantic vector to generate a first expression, the first expression being an expression including the expression word; and

replacing the expression word in the first expression with the mapped numeral, to obtain a second expression.

According to a second aspect, a computing device comprises one or more processors, memory coupled to the one or more processors and a plurality of programs stored in the memory that, when executed by the one or more processors, cause the computing device to perform the aforementioned mathematical processing method for a textual question.

According to a third aspect, a computer device is provided, including: a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform the aforementioned mathematical processing method for a textual question.

According to a fourth aspect, a non-transitory computer readable storage medium stores a plurality of machine readable instructions in connection with a first terminal having one or more processors. The plurality of machine readable instructions, when executed by the one or more processors, cause the first terminal to perform the aforementioned mathematical processing method for a textual question.

In the foregoing mathematical processing method for a textual question, apparatus, computer device, and storage medium, a numeral in a question text sequence is mapped to an expression word, a question text sequence including the expression word is encoded into a semantic vector, an expression is generated by using the semantic vector including question information, and the expression word in the expression is replaced with the mapped numeral, so that the obtained mathematical expression, compared with a preset fixed expression template, is more accurate, is more likely to meet question-answering requirements, and can improve intelligent question-answering accuracy.

