Skip to content

module__org.bibliome.alvisnlp.modules.mapper.ElementMapper

Robert Bossy edited this page Jul 27, 2017 · 1 revision

#org.bibliome.alvisnlp.modules.mapper.ElementMapper

Synopsis

Maps elements according to a collection of mapping elements.

This module is experimental.

Description

org.bibliome.alvisnlp.modules.mapper.ElementMapper evaluates entries as a list of elements with the corpus as the context element. These elements represent the entries from which target elements are matched. key specifies the key of each entry, and values specifies the values of the entries. target specifies the mapped elements; the form is matched against the key of entries. If the target element matches, org.bibliome.alvisnlp.modules.mapper.ElementMapper adds the features targetFeatures with the matched entry values.

Parameters

Optional

Type: Expression

Expression evaluated as a list of elements with the corpus as the context element. Each element represents an entry.

Optional

Type: Expression

Expression evaluated as a string with the target element as context that specifies the target key.

Optional

Type: Expression

Expression evaluated as a string with the entry element as the context. The result determines the entry key.

Optional

Type: Expression

Expression evaluated as a list of elements with the corpus as the context element. The result determines the elements to be mapped.

Optional

Type: String[]]

Name of the features where to store the values of matched entries.

Optional

Type: Expression[]]

Expressions evaluated as strings with the entry element as the context. The results specify the feature values of targets that match the entry key.

Default value: false

Type: Boolean

Either to match ignoring the case.

Default value: exact

Type: MappingOperator

Matching operator.

Clone this wiki locally