Neural network to categorize graphemes