bugfixed PoS and NER tagging code