Construct and train NLP models