A neural network for learning how to parse tree adjoining grammars