AlvisNLP

corpus processing engine

LayerComparator

Synopsis

Compares annotations in two different layers.

Description

LayerComparator traverses the annotations in the layers predictedLayer and referenceLayer in each section. This is useful when analyzing the result of named entity recognition systems. The result of the comparison is written for each section in terms of recall and precision into the file outFile . This file will also point boundary mismatches.

Snippet

<layercomparator class="LayerComparator">
    <outFile></outFile>
    <predictedLayer></predictedLayer>
    <referenceLayer></referenceLayer>
</layercomparator>

Mandatory parameters

outFile

Mandatory

Path to the file where to store results.

predictedLayer

Mandatory
Type: String[]

Name of the source layer.

referenceLayer

Mandatory
Type: String[]

Name of the reference layer.

Optional parameters

documentFilter

Default value: `true`
Type: Expression

Only process document that satisfy this expression.

sectionFilter

Default value: `true`
Type: Expression

Process only sections that satisfy this expression.

Deprecated parameters

predictedLayerName

Deprecated
Type: String[]

Deprecated alias for predictedLayer .

referenceLayerName

Deprecated
Type: String[]

Deprecated alias for referenceLayer .