public class FeatureTypePOSPattern extends AbstractFeatureType
This feature type will create features about part of speech patterns for segments This feature type should be wrapped by FeatureTypeStateLoop.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
idPrefix| Constructor and Description |
|---|
FeatureTypePOSPattern(int stateNum,
int tagNum) |
FeatureTypePOSPattern(int stateNum,
int tagNum,
int maxSegmentLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Tests if next feature exists
|
Feature |
next()
Gets the next feature
|
boolean |
startScanFeaturesAt(DataSequence data,
int startPos,
int endPos)
Starts scanning features of the given segment of a sequence
|
getTypeID, needTraining, readTrainingResult, saveTrainingResult, setTypeID, startScanFeaturesAt, supportSegment, trainpublic FeatureTypePOSPattern(int stateNum,
int tagNum)
public FeatureTypePOSPattern(int stateNum,
int tagNum,
int maxSegmentLength)
public boolean startScanFeaturesAt(DataSequence data, int startPos, int endPos)
FeatureTypedata - the sequencestartPos - the start position of the segmentendPos - the end position of the segmentpublic boolean hasNext()
FeatureTypepublic Feature next()
FeatureTypeCopyright © 2018 JULIE Lab, Germany. All rights reserved.