'RegexpParser nltk named entity phrase

Hello what would be the definition of a named entity phrase in a nltk regexParser

I have come up with this:

constituent_parser_v2 = nltk.RegexpParser('''
NEP: {<N.*>} ''')

This however does not seem to work. Pls help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source