|
Initialize this mapping based on keyword arguments, as follows:
-
cat_pattern: A regular expression pattern used to find the category
for each file identifier. The pattern will be applied to each file
identifier, and the first matching group will be used as the category
label for that file.
-
cat_map: A dictionary, mapping from file identifiers to category
labels.
-
cat_file: The name of a file that contains the mapping from file
identifiers to categories. The argument
cat_delimiter
can be used to specify a delimiter.
The corresponding argument will be deleted from kwargs.
If more than one argument is specified, an exception will be raised.
- Overrides:
object.__init__
|