public class EventExtractor extends Object
| Constructor and Description |
|---|
EventExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
computeDisplayAnnotations(VisualizerInput input,
Class<? extends org.corpus_tools.salt.core.SNode> type)
Returns the annotations to display according to the mappings configuration.
|
static Set<String> |
computeDisplayedNamespace(VisualizerInput input,
List<Class<? extends org.corpus_tools.salt.core.SNode>> types)
Returns the annotations to which should be displayed together with their namespace.
|
static LinkedHashMap<String,ArrayList<Row>> |
parseSalt(VisualizerInput input,
boolean showSpanAnnos,
boolean showTokenAnnos,
List<String> annotationNames,
Set<String> mediaLayer,
boolean replaceValueWithMediaIcon,
Map<org.corpus_tools.salt.common.SToken,Integer> token2index,
PDFController pdfController,
org.corpus_tools.salt.common.STextualDS text)
Converts Salt document graph to rows.
|
static void |
removeEmptySpace(LinkedHashMap<String,ArrayList<Row>> rowsByAnnotation,
Row tokenRow) |
public static List<String> computeDisplayAnnotations(VisualizerInput input, Class<? extends org.corpus_tools.salt.core.SNode> type)
input - The input for the visualizer.type - Which type of nodes to includepublic static Set<String> computeDisplayedNamespace(VisualizerInput input, List<Class<? extends org.corpus_tools.salt.core.SNode>> types)
input - The input for the visualizer.types - Which types of nodes to includepublic static LinkedHashMap<String,ArrayList<Row>> parseSalt(VisualizerInput input, boolean showSpanAnnos, boolean showTokenAnnos, List<String> annotationNames, Set<String> mediaLayer, boolean replaceValueWithMediaIcon, Map<org.corpus_tools.salt.common.SToken,Integer> token2index, PDFController pdfController, org.corpus_tools.salt.common.STextualDS text)
input - showSpanAnnos - showTokenAnnos - mediaLayer - A set of all annotation layers which should be treated as special media
layer.annotationNames - replaceValueWithMediaIcon - If true the actual value is removed and an icon for playing
the media file is shown instead.token2index - pdfController - makes status of all pdfviewer available for the events.text - If non-null only include annotations for nodes of the specified text.public static void removeEmptySpace(LinkedHashMap<String,ArrayList<Row>> rowsByAnnotation, Row tokenRow)
Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.