1.2. Merging units with XML annotations

Annotations can also be used for merging units, notably during counting operations. 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 in the workflow 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 corresponding to this key (namely part of speech tags) 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:

NOUN

3

DET

1

PREP

1

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

See also