A character string recognition apparatus includes a prediction unit that computes an attention single character certainty factor from a single character certainty factor, computed for a sequence of a partial pattern of an input pattern that is a character string serving as a recognition target, and from attention information computed by a recurrent neural network. The prediction unit shares a parameter among labels serving as recognition results, and uses the attention single character certainty factor as a feature value.
Character string recognition apparatus, and non-transitory computer readable medium