A pipeline of NLP tasks for named entity recognition and relation extraction