Text this: Self-learning goal-oriented neural network