makes graph of noun phrases using POS tagging