tde.extract();
} else {
// train (extract features).
File inf = options.valueOf(inputspec);
File outf = options.valueOf(outputspec);
FeatureExtractor fexer = (stPrior == null) ? new STFex() : new STFex(stPrior);
ZhangLeTrainingExtractor fexApp = new ZhangLeTrainingExtractor(inf, outf, options.valueOf(tokenisation), fexer);
System.err.println("Extracting features from file: " + inf.toString() + ", and placing extracted features in: " + outf.toString() + ".");
fexApp.writeFeats();
}