Package de.julielab.jcore.ae.jpos.main
Class JPOSApplication
- java.lang.Object
-
- de.julielab.jcore.ae.jpos.main.JPOSApplication
-
public class JPOSApplication extends Object
Command line application
-
-
Constructor Summary
Constructors Constructor Description JPOSApplication()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidevalXVal(File dataFile, int n, File featureConfigFile, int number_iter, boolean maxEnt)performs a 'n'-fold-cross-validation on a list of sentence strings in piped format, like "this|o is|o a|o NE|i" The pred files lists token\tprediction\tgold\tPOSstatic doublegetAverage(double[] values)static doublegetStandardDeviation(double[] values, double avg)static voidmain(String[] args)static voidprintFeatureConfig(File modelFile)prints out the feature configuration used in the model 'modelFile'static voidprintTagset(File modelFile)prints out the tagset used in the model 'modelFile'
-
-
-
Method Detail
-
evalXVal
public static void evalXVal(File dataFile, int n, File featureConfigFile, int number_iter, boolean maxEnt) throws IOException
performs a 'n'-fold-cross-validation on a list of sentence strings in piped format, like "this|o is|o a|o NE|i" The pred files lists token\tprediction\tgold\tPOS- Throws:
IOException
-
getStandardDeviation
public static double getStandardDeviation(double[] values, double avg)
-
getAverage
public static double getAverage(double[] values)
-
printFeatureConfig
public static void printFeatureConfig(File modelFile) throws FileNotFoundException, ClassNotFoundException, IOException
prints out the feature configuration used in the model 'modelFile'
-
printTagset
public static void printTagset(File modelFile) throws FileNotFoundException, ClassNotFoundException, IOException
prints out the tagset used in the model 'modelFile'
-
-