public interface DataSequence
Interface of data sequence
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
DataSequence |
copy()
Makes a copy of the current data sequence
|
int |
getLabel(int pos)
Gets the label of the token in the given position
|
int |
getOriginalLabel(int pos)
Gets the original label of the token in the given position.
|
Dataset |
getParent()
Gets the dataset object which the current data sequence belongs to
|
int |
getSegmentEnd(int segmentStart)
Gets the ending position of the segment beginning at the given position
|
BasicToken |
getToken(int pos)
Gets the token in the given position of the sequence
|
int |
length() |
void |
setLabel(int pos,
int label)
Sets the label to the token in the given position.
|
void |
setParent(Dataset parent)
Sets the dataset object which the current data sequence belongs to
|
void |
setSegment(int segmentStart,
int segmentEnd,
int label)
Marks the bondary of the segment and sets the given label to all tokens of the segment.
|
Dataset getParent()
void setParent(Dataset parent)
parent - the parsent datasetDataSequence copy()
int length()
int getLabel(int pos)
pos - the position in the sequenceint getOriginalLabel(int pos)
pos - the position in the sequenceBasicToken getToken(int pos)
pos - the position of the tokenvoid setLabel(int pos,
int label)
pos - the position of the tokenlabel - the label for the positionint getSegmentEnd(int segmentStart)
segmentStart - the starting position of the segmentvoid setSegment(int segmentStart,
int segmentEnd,
int label)
segmentStart - the starting position of the segmentsegmentEnd - the ending position of the segmentlabel - the lable for the segmentCopyright © 2018 JULIE Lab, Germany. All rights reserved.