nltk.RegexpParser.parse¶
-
RegexpParser.
parse
(chunk_struct, trace=None)[source]¶ Apply the chunk parser to this input.
Parameters: - chunk_struct (Tree) – the chunk structure to be (further) chunked (this tree is modified, and is also returned)
- 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.
Returns: the chunked output.
Return type: