se.lth.cs.nlp.nlputils.ml.glue
Class LibSVMInterface

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.ml.glue.LibSVMInterface

public class LibSVMInterface
extends Object

Author:
Richard Johansson (richard@cs.lth.se)

Constructor Summary
LibSVMInterface()
           
 
Method Summary
static void encodeFile(NumericEncoding enc, String inFile, String outFile)
           
static ProbabilityClassifier loadClassifier(JarFile jarfile, String modelName, String encodingName, boolean useNative)
           
static ProbabilityClassifier loadClassifier(String file, NumericEncoding enc)
           
static ProbabilityClassifier loadClassifier(String file, NumericEncoding enc, boolean useNative)
           
static Classifier loadExpanded(JarFile jarfile, String modelName, String encodingName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibSVMInterface

public LibSVMInterface()
Method Detail

loadClassifier

public static ProbabilityClassifier loadClassifier(String file,
                                                   NumericEncoding enc,
                                                   boolean useNative)
                                            throws IOException
Throws:
IOException

loadClassifier

public static ProbabilityClassifier loadClassifier(String file,
                                                   NumericEncoding enc)
                                            throws IOException
Throws:
IOException

loadClassifier

public static ProbabilityClassifier loadClassifier(JarFile jarfile,
                                                   String modelName,
                                                   String encodingName,
                                                   boolean useNative)

encodeFile

public static void encodeFile(NumericEncoding enc,
                              String inFile,
                              String outFile)

loadExpanded

public static Classifier loadExpanded(JarFile jarfile,
                                      String modelName,
                                      String encodingName)