You can generate POS tags using Stanford corenlp and then prune the ones not having verb and noun tags. Try this to get a feel of how tagging is done for different input sentences and do read the POS tagging manual to get a hold of what different POS tag mean.