tnt tagger change to logprob var and improve docstrings