@Component public class RawTextVisualizer extends AbstractVisualizer
Therefore this visualizer is faster, than a visualizer which has to traverse a
SaltProject for getting the spanned STextualDS.
Mappings: vertical: true | false - Defines the alignment of
multiple text, e. g. for parralel corpora it is a convenient visualization<./p>
DEFAULT_VISUALIZER| Constructor and Description |
|---|
RawTextVisualizer() |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.ui.Panel |
createComponent(VisualizerInput visInput,
VisualizationToggle visToggle)
It is used by the ANNIS plugin system to generate something viewable for vaadin.
|
String |
getShortName()
Get the shorted name of the linguistic type of this visualizer ("partitur", "tree", etc.)
|
boolean |
hasOnlyWhiteSpace(String text)
Checks whether a string contains only whitespace.
|
boolean |
isUsingRawText()
Determines if this visaulizer wants to use the original text.
|
getFilteredNodeAnnotationNames, isUsingText, setSegmentationLayer, setVisibleTokenAnnosVisiblepublic com.vaadin.ui.Panel createComponent(VisualizerInput visInput, VisualizationToggle visToggle)
VisualizerPluginpublic String getShortName()
VisualizerPluginpublic boolean hasOnlyWhiteSpace(String text)
text - The text which is checked. Throws NullPointerException when text is empty.public boolean isUsingRawText()
VisualizerPlugin
This is a convenient and very fast method for extracting the whole text of a document, since
this method simply reads database tupels and does not map anything to salt. It is recommended
to use the raw text over the VisualizerPlugin.isUsingText() method, which indicates,
that the visualizer needs the whole document graph, which can slow down the user experience.
It can be use in parralel with VisualizerPlugin.isUsingText(), but makes in most cases no sense.
isUsingRawText in interface VisualizerPluginisUsingRawText in class AbstractVisualizerCopyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.