public class FLExImporterProperties
extends org.corpus_tools.pepper.modules.PepperModuleProperties
Properties for the FLExImporter.
The single properties are explained in the respective field Javadoc.
Note: The properties should be considered the central API for this and the other Pepper modules.
Modifier and Type | Field and Description |
---|---|
private static String |
MAPPING_EQUAL_SYMBOL
A constant for the the mapping symbol in
PROP_LANGUAGEMAP and PROP_TYPEMAP . |
(package private) static String |
PROP_ANNOTATIONMAP
A map whose keys are FLEx annotation and whose values are annotations they should be mapped to.
|
(package private) static String |
PROP_DROP_ANNOTATIONS
A list of annotations that should be ignored during conversion.
|
(package private) static String |
PROP_LANGUAGEMAP
A map with original ‘lang’ strings and the target strings the original should be changed to during conversion.
|
(package private) static String |
PROP_TYPEMAP
A map with original ‘type’ strings and the target strings the original should be changed to during conversion.
|
private static long |
serialVersionUID
Default serial version ID
|
pepperModuleProperties, PROP_AFTER_ADD_SLAYER, PROP_AFTER_COPY_RES, PROP_AFTER_REMOVE_ANNOTATIONS, PROP_AFTER_RENAME_ANNOTATIONS, PROP_AFTER_REPORT_CORPUSGRAPH, PROP_AFTER_TOKENIZE, PROP_BEFORE_ADD_SLAYER, PROP_BEFORE_READ_META
Constructor and Description |
---|
FLExImporterProperties()
No-arg constructor adding all properties to the instance.
|
Modifier and Type | Method and Description |
---|---|
private Map<String,String> |
buildMap(org.corpus_tools.pepper.modules.PepperModuleProperty<?> property)
Creates a
Map from the passed string argument, iff the String represents a comma-separated list of strings, which in turn match the pattern \s*. |
private org.apache.commons.lang3.tuple.Triple<String,String,String> |
createTripleFromString(String string) |
Map<org.apache.commons.lang3.tuple.Triple<String,String,String>,String> |
getAnnotationMap() |
List<org.apache.commons.lang3.tuple.Triple<String,String,String>> |
getAnnotationsToDrop() |
Map<String,String> |
getLanguageMap() |
Map<String,String> |
getTypeMap() |
addProperties, addProperty, checkProperties, checkProperty, getProperties, getProperty, getPropertyDesctriptions, getPropertyNames, removePropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, stringToCharList, toString
private static final long serialVersionUID
Default serial version ID
static final String PROP_LANGUAGEMAP
A map with original ‘lang’ strings and the target strings the original should be changed to during conversion.
static final String PROP_TYPEMAP
A map with original ‘type’ strings and the target strings the original should be changed to during conversion.
static final String PROP_DROP_ANNOTATIONS
A list of annotations that should be ignored during conversion. Annotations are defined as {phrase|word|morph}::{language}:name
, of which the layer (the first) and the language (the second) element are optional. languages
is a reserved name and will drop all language meta annotations from the child elements of <languages/>
.
static final String PROP_ANNOTATIONMAP
A map whose keys are FLEx annotation and whose values are annotations they should be mapped to.
Syntax:
{interlinear-text|paragraph|phrase|word|morph}::{language}:name
name
key=value, ...
Behaviour:
For annotations matching the key pattern, the name will be changed to the name
value. language
will not be changed, layer neither.
Example:
annotationMap=word::en:gls=ge
will change the FLEx-notated annotation <word><item type="gls" lang="en">green</item></word>
to an SAnnotation
on an SLayer
named “word” with namespace “en” and name “ge”.
private static final String MAPPING_EQUAL_SYMBOL
A constant for the the mapping symbol in PROP_LANGUAGEMAP
and PROP_TYPEMAP
.
public FLExImporterProperties()
No-arg constructor adding all properties to the instance.
public List<org.apache.commons.lang3.tuple.Triple<String,String,String>> getAnnotationsToDrop()
public Map<org.apache.commons.lang3.tuple.Triple<String,String,String>,String> getAnnotationMap()
private Map<String,String> buildMap(org.corpus_tools.pepper.modules.PepperModuleProperty<?> property)
Creates a Map
from the passed string argument, iff the String represents a comma-separated list of strings, which in turn match the pattern \s*.+\s*=\s*.+\s*
.
property
- The property whose value is being mappedMap
representation of the argumentCopyright © 2011–2018 Humboldt-Universität zu Berlin. All rights reserved.