August 2014
Beginner to intermediate
304 pages
7h 10m
English
There are three RegexpChunkRule subclasses that are not supported by RegexpChunkRule.fromstring() or RegexpParser, and therefore must be created manually if you want to use them. These rules are as follows:
ExpandLeftRule: Add unchunked (chink) words to the left of a chunkExpandRightRule: Add unchunked (chink) words to the right of a chunkUnChunkRule: Unchunk any matching chunk
ExpandLeftRule and ExpandRightRule both take two patterns along with a description as arguments. For ExpandLeftRule, the first pattern is the chink we want to add to the beginning of the chunk, while the right pattern will match the beginning of the chunk we want to expand. With ExpandRightRule, the left ...
Read now
Unlock full access