Home | Trees | Indices | Help |
|
---|
|
object --+ | CategorizedCorpusReader
A mixin class used to aid in the implementation of corpus readers for
categorized corpora. This class defines the method categories(), which returns a list of the categories for
the corpus or for a specified set of files; and overrides files() to take a categories
argument,
restricting the set of files to be returned.
Subclasses are expected to:
categories
parameter, which can be used *instead* of the files
parameter, to select which files should be included in the returned
view.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
_f2c file-to-category mapping |
|||
_c2f category-to-file mapping |
|||
_pattern regexp specifying the mapping |
|||
_map dict specifying the mapping |
|||
_file filename of file containing the mapping |
|||
_delimiter delimiter for self._file |
|
|||
Inherited from |
|
Initialize this mapping based on keyword arguments, as follows:
The corresponding argument will be deleted from
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:52 2008 | http://epydoc.sourceforge.net |