Patent attributes
A method and apparatus for input prediction. The method includes: obtaining an input current text; obtaining a first state parameter of a first text from a cache; inputting the current text and the first state parameter into the recurrent neural network, determining a state parameter of the current text through the recurrent neural network according to the first state parameter; and determining a predicted text of the current text from the word library according to the state parameter of the current text. The first text is a previous text of the current text; the first state parameter is determined through a preset recurrent neural network according to the first text and a state parameter of a previous text of the first text; the recurrent neural network is trained with a preset word library; the word library is used to store words. Through the method and apparatus, time for determining a predicted text is reduced.