1. A character recognition apparatus comprising: an extracting unit that extracts a feature point for a line in a handwritten character; a first generation unit that generates first feature data based on a feature point extracted by the extracting unit, for a line group which includes an in-same-character line and which is selected from lines included in a handwritten character string containing a plurality of handwritten characters, each of the plurality of handwritten characters being a character for which a character code is specified, the in-same-character line being a line in a character identical to a character for a previous line which is written just before the in-same-character line; a second generation unit that generates second feature data based on a feature point extracted by the extracting unit, for a line group which includes an after-character-transition line and which is selected from lines included in a handwritten character string containing a plurality of handwritten characters, each of the plurality of handwritten characters being a character for which a character code is specified, the after-character-transition line being a line in a character different from a character for a previous line which is written just before the after-character-transition line; a learning unit that causes a discriminator to learn a classification for an in-same-character line and a classification for an after-character-transition line on the basis of the first feature data and the second feature data; and a determination unit that determines whether each of lines included in a handwritten character string in which character codes are unknown is an in-same-character line or an after-character-transition line, on the basis of which classification is determined by the discriminator for feature data based on a feature point extracted by the extracting unit from the line.