The present disclosure provides a sentence processing method, comprising: determining a vector representation of a sentence to be processed; inputting the vector representation of the sentence to be processed into a first recurrent neural network, and updating a state of a hidden layer of the first recurrent neural network to serve as a vector representation of a historical dialogue, wherein if an already-processed sentence exists, the state of the hidden layer of the first recurrent neural network is related to the already-processed sentence; determining a knowledge vector related to the sentence to be processed; and generating a response sentence on the basis of the vector representation of the historical dialogue and the knowledge vector. The present disclosure further provides a sentence processing system, an electronic device, and a computer-readable medium.
SENTENCE PROCESSING METHOD AND SYSTEM AND ELECTRONIC DEVICE