public class DummyTextAnnotationGenerator extends Object
TextAnnotation
s and their View
s, 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 View s 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 View
s 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 containTextAnnotation
public static TextAnnotation generateAnnotatedTextAnnotation(String[] viewsToAdd, boolean withNoisyLabels, int sentenceNum)
Copyright © 2017. All rights reserved.