public class SequenceExample extends SimpleExample
SequenceExample represents a sequence of Examples
s, each containing a set of Representations and a set of
Labels. This is the object used to train a
SequenceClassificationLearningAlgorithm| Modifier and Type | Field and Description |
|---|---|
static String |
SEQDELIM
This delimiter is used in the construction of artificial features
representing transitions for the
SequenceClassificationLearningAlgorithm |
logger| Constructor and Description |
|---|
SequenceExample() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Example example) |
HashSet<Label> |
getClassificationLabels() |
Example |
getExample(int i) |
List<Example> |
getExamples() |
int |
getLenght() |
String |
toString() |
addRepresentation, equals, equalsIgnoreLabels, getNumberOfRepresentations, getRepresentation, getRepresentations, isCompatible, manipulate, printExample, setRepresentationsaddLabel, duplicate, getId, getLabels, getNumberOfClassificationLabels, getNumberOfRegressionLabels, getRegressionLabels, getRegressionValue, getRegressionValues, getTextualLabelPart, isExampleOf, setClassificationLabels, setLabels, setRegressionValuespublic static final String SEQDELIM
SequenceClassificationLearningAlgorithmpublic void add(Example example)
public HashSet<Label> getClassificationLabels()
getClassificationLabels in class Examplepublic Example getExample(int i)
i - i-th Example in the sequencepublic int getLenght()
Examples in the sequencepublic String toString()
toString in class SimpleExampleCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.