3.5. Merging units with annotations

Annotations can also be used for merging units (that is, columns) during counting operations in particular. Consider again the example of annotations extracted from XML data developed here. The segmentation produced by Extract XML can be sent to an instance of Count as on the schema shown on figure 1 below.

Counting segments extracted from XML data

Figure 1: Counting segments extracted from XML data.

If the type annotation key is selected in section Units of widget Count‘s interface (see figure 2 below), the annotation values correponding to this key (namely part of speech) will be counted in place of the segments’ content.

Counting segments extracted from XML data

Figure 2: Merging units using annotation values.

The resulting table is as follows:

Table 1: Part of speech frequency.
NOUN DET PREP
3 1 1

Of course, annotations may be used to merge units and contexts simultaneously.