For robust StanfordNlpWrapper.toPhrases