added class that trains the stanford nlp model