grammar = nltk.parse_cfg(
    """
S -> NP
S -> NN NP
S -> NP NN
NP -> NN NN
NN -> 'market'
NN -> 'money'
NN -> 'fund'
"""
    )
sentence = 'money market fund'.split(' ')
cp = nltk.ChartParser(grammar)
Chunking with nltk