Text this: An artificial neural network for pattern classification and visualization