public class SequencePath extends Object implements Comparable<SequencePath>, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
SEQDELIM
This delimiter is used in the construction of artificial features
representing transitions for the
SequenceClassificationLearningAlgorithm |
Constructor and Description |
---|
SequencePath() |
Modifier and Type | Method and Description |
---|---|
void |
add(SequenceEmission sequenceLabel) |
int |
compareTo(SequencePath o) |
Label |
getAssignedLabel(int i) |
List<SequenceEmission> |
getAssignedSequnceLabels() |
String |
getHistoryBefore(int targetId,
int historySize)
This method generate a string representing an artificial feature used in
the labeling process.
|
Double |
getScore() |
void |
setAssignedSequenceLabels(List<SequenceEmission> assignedLabels) |
void |
setScore(Double score) |
String |
toString() |
public static final String SEQDELIM
SequenceClassificationLearningAlgorithm
public void add(SequenceEmission sequenceLabel)
sequenceLabel
- A sequence label to be added at the end of this listpublic int compareTo(SequencePath o)
compareTo
in interface Comparable<SequencePath>
public Label getAssignedLabel(int i)
i
- the index of the targeted elementpublic List<SequenceEmission> getAssignedSequnceLabels()
SequenceLabel
s produced during the
sequence labeling processpublic String getHistoryBefore(int targetId, int historySize)
targetId
- the index of the element whose previous labels are requiredhistorySize
- the number of labels to returnpublic Double getScore()
public void setAssignedSequenceLabels(List<SequenceEmission> assignedLabels)
assignedLabels
- The collection of SequenceLabel
s produced during
the sequence labeling processpublic void setScore(Double score)
score
- the score assigned to this labelingCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.