Natural Language Tool Kit – Tutorial 6

Chinking

Chinking is the process of excluding/removing things from Chunks. So there might be items in the Chunk that need to be removed.

This is done by expanding the Chunk code to include }{ brackets that contain the items to be excluded.

Example:-

chunkGram = r"""Chunk: {<.*>+}
                        }<VB.?|IN|DT|TO>+{"""

Leave a Reply