Package nltk_lite :: Package contrib :: Package toolbox :: Module text :: Class Paragraph
[hide private]
[frames] | no frames]

Class Paragraph

source code

This class defines a unit of analysis above the line and below the text. Every text will have at least one paragraph and some will have more. Identified by the field marker \id by default.

Instance Methods [hide private]
 
__init__(self, label=None)
Constructor that initializes Paragraph object.
source code
 
add_line(self, line)
Add line object to list of line objects for paragraph.
source code
 
get_label(self)
Obtain identifier for paragraph.
source code
 
get_lines(self)
Get list of line objects for paragraph.
source code
 
set_label(self, label)
Set identifier for paragraph.
source code