Class SequenceDataGenerator
java.lang.Object
org.tribuo.classification.sequence.example.SequenceDataGenerator
A data generator for smoke testing sequence label models.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SequenceExample<Label> This generates a sequence example with no examples.static SequenceExample<Label> static SequenceExample<Label> static MutableSequenceDataset<Label> generateGorillaDataset(int numCopies) static SequenceExample<Label> This generates a sequence example with features that are unused by the training data.static SequenceExample<Label> This generates a sequence example where the first example has no features.
-
Method Details
-
generateGorillaDataset
-
generateGorillaA
-
generateGorillaB
-
generateInvalidExample
This generates a sequence example with features that are unused by the training data.- Returns:
- A
SequenceExamplewhich is invalid in the context of the Gorilla example data.
-
generateOtherInvalidExample
This generates a sequence example where the first example has no features.- Returns:
- A
SequenceExamplewhich is invalid as one example contains no features.
-
generateEmptyExample
This generates a sequence example with no examples.- Returns:
- A
SequenceExamplewhich is invalid as it contains no examples.
-