improve nlpdict