Reuse some code in noun_phrases_extraction