public class DummyTextAnnotationGenerator extends Object
TextAnnotations and their Views, used for testing.| Constructor and Description |
|---|
DummyTextAnnotationGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static TextAnnotation |
generateAnnotatedTextAnnotation(boolean withNoisyLabels,
int sentenceNum)
Generate a
TextAnnotation (containing a set of Views specified in the input)
with the some dummy text repeated over a number of sentences. |
static TextAnnotation |
generateAnnotatedTextAnnotation(String[] viewsToAdd,
boolean withNoisyLabels,
int sentenceNum) |
public static TextAnnotation generateAnnotatedTextAnnotation(boolean withNoisyLabels, int sentenceNum)
TextAnnotation (containing a set of Views specified in the input)
with the some dummy text repeated over a number of sentences.withNoisyLabels - whether to nosify the annotation or notsentenceNum - The number of sentences that the TextAnnotation will containTextAnnotationpublic static TextAnnotation generateAnnotatedTextAnnotation(String[] viewsToAdd, boolean withNoisyLabels, int sentenceNum)
Copyright © 2017. All rights reserved.