|
CWB
|
The Mapping object. More...
#include <class-mapping.h>
Data Fields | |
| Corpus * | corpus |
| the corpus this Mapping is valid in More... | |
| Attribute * | attribute |
| the attribute this object is valid for More... | |
| char * | mapping_name |
| this Mapping's name More... | |
| int | nr_classes |
| the number of single mappings currently in this Mapping More... | |
| SingleMappingRecord * | classes |
| the mappings themselves More... | |
The Mapping object.
A Mapping consists of a bundle of SingleMappings. Each SingleMapping represents a class within the mapping, and each class maps to a number of different tokens on a particular p-attribute in a particular corpus.
Classes are mutually exclusive, i.e. a single token cannot be a member of more than one class in the same Mapping.
NB: "Mapping" is the pointer (class); MappingRecord is the underlying structure.
| Attribute* attribute |
the attribute this object is valid for
Referenced by get_position_values(), map_token_to_class_number(), member_of_class_s(), print_mapping(), and read_mapping().
| SingleMappingRecord* classes |
the mappings themselves
Referenced by find_mapping(), map_id_to_class_number(), map_token_to_class(), print_mapping(), and read_mapping().
| Corpus* corpus |
the corpus this Mapping is valid in
Referenced by print_mapping(), and read_mapping().
| char* mapping_name |
this Mapping's name
Referenced by print_mapping(), and read_mapping().
| int nr_classes |
the number of single mappings currently in this Mapping
Referenced by find_mapping(), map_id_to_class_number(), number_of_classes(), print_mapping(), and read_mapping().
1.8.8