better logging and fixing bug in nltk_tokenizer.__call__