Metric Annotation¶
Metric Annotation is a form of higher-order annotation that allows annotation of some kind of measurement. The type of measurement is defined by the class, which in turn is defined by the set as always. The metric element has a value
attribute that stores the actual measurement, the value is often numeric but this needs not be the case.
Specification¶
Annotation Category: | |
---|---|
Declaration: |
|
Version History: | |
since v0.9 |
|
Element: |
|
API Class: |
|
Required Attributes: | |
Optional Attributes: | |
|
|
Accepted Data: |
|
Valid Context: |
|
Feature subsets (extra attributes): | |
|
Explanation¶
The <metric>
element allows annotation of some kind of measurement. The type of
measurement is defined by the class, which in turn is user-defined by the set as
always. The metric element has a value
attribute
that stores the actual measurement, the value is often numeric but this needs
not be the case. It is a higher-level annotation element
that may be used with any kind of annotation.
An example of measurements associated with a word/token:
<w xml:id="example.p.1.s.1.w.2">
<t>boot</t>
<metric class="charlength" value="4" />
<metric class="frequency" value="0.00232" />
</w>
An example of measurements associated with a span annotation element:
<su class="np">
<wref id="..." />
<wref id="..." />
<metric class="length" value="2" />
</su>