| Constructor and Description |
|---|
CRFFeatureExporter(CRFClassifier<IN> classifier) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
printFeatures(String exportFile,
Collection<List<IN>> documents)
Output features from a collection of documents to a file
Format is with one line per token using the following format
word label feat1 feat2 ...
|
void |
printFeatures(String exportFile,
int[][][][] docsData,
int[][] labels)
Output features that have already been converted into features
(using documentToDataAndLabels) in format suitable for CRFSuite
Format is with one line per token using the following format
label feat1 feat2 ...
|
public CRFFeatureExporter(CRFClassifier<IN> classifier)
public void printFeatures(String exportFile, int[][][][] docsData, int[][] labels)
exportFile - file to export the features todocsData - array of document featureslabels - correct labels indexed by document, and position within documentpublic void printFeatures(String exportFile, Collection<List<IN>> documents)
exportFile - file to export the features todocuments - input collection of documents