nltk.chunk.RegexpChunkParser.parse¶
-
RegexpChunkParser.
parse
(chunk_struct, trace=None)[source]¶ Parameters: - chunk_struct (Tree) – the chunk structure to be (further) chunked
- trace (int) – The level of tracing that should be used when
parsing a text.
0
will generate no tracing output;1
will generate normal tracing output; and2
or highter will generate verbose tracing output. This value overrides the trace level value that was given to the constructor.
Return type: Returns: a chunk structure that encodes the chunks in a given tagged sentence. A chunk is a non-overlapping linguistic group, such as a noun phrase. The set of chunks identified in the chunk structure depends on the rules used to define this
RegexpChunkParser
.