public class SequenceExample extends SimpleExample
SequenceExample
represents a sequence of Examples
s, each containing a set of Representation
s and a set of
Label
s. 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, setRepresentations
addLabel, duplicate, getId, getLabels, getNumberOfClassificationLabels, getNumberOfRegressionLabels, getRegressionLabels, getRegressionValue, getRegressionValues, getTextualLabelPart, isExampleOf, setClassificationLabels, setLabels, setRegressionValues
public static final String SEQDELIM
SequenceClassificationLearningAlgorithm
public void add(Example example)
public HashSet<Label> getClassificationLabels()
getClassificationLabels
in class Example
public Example getExample(int i)
i
- i-th Example
in the sequencepublic int getLenght()
Example
s in the sequencepublic String toString()
toString
in class SimpleExample
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.