-
Notifications
You must be signed in to change notification settings - Fork 6
module__FileMapper
#org.bibliome.alvisnlp.modules.mapper.FileMapper
Maps elements according to a tab-separated mapping file.
org.bibliome.alvisnlp.modules.mapper.FileMapper reads the tab-separated mapping file mappingFile and maps the elements specified by the expression target. The mapping key of the elements is specified by the expression form evaluated as a string with the element as the context. The key is mapped agains the column of mappingFile specified by keyColumn (starting at 0). Each feature in targetFeatures is set with the value of the corresponding column in the matched line.
Optional
Type: Expression
Expression evaluated as a string with the target element as context that specifies the target key.
Optional
Type: SourceStream
Tab-separated file containing the dictionary.
Optional
Type: Expression
Expression evaluated as a list of elements with the corpus as context that specify the elements to be mapped.
Optional
Type: String[]]
Name of the features where to store the columns of matched lines.
Default value: false
Type: Boolean
Either to match ignoring the case.
Default value: 0
Type: Integer
Index of the line key in mappingFile.
Default value: exact
Type: MappingOperator
Matching operator.
Default value:
Type: Character
Separator character between columns in mappingFile.