jvnsensegmenter
Class JVnSenSegmenter

java.lang.Object
  extended by jvnsensegmenter.JVnSenSegmenter

public class JVnSenSegmenter
extends java.lang.Object

The Class JVnSenSegmenter.


Field Summary
 Classification classifier
          The classifier.
 FeatureGenerator feaGen
          The fea gen.
static java.lang.String positiveLabel
          The positive label.
 
Constructor Summary
JVnSenSegmenter()
           
 
Method Summary
static void displayHelp()
          Display help.
 boolean init(java.lang.String modelDir)
          Creates a new instance of JVnSenSegmenter.
static void main(java.lang.String[] args)
          main method of JVnSenSegmenter to use this tool from command line.
 java.lang.String senSegment(java.lang.String text)
          Sen segment.
 void senSegment(java.lang.String text, java.util.List senList)
          Sen segment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

positiveLabel

public static java.lang.String positiveLabel
The positive label.


classifier

public Classification classifier
The classifier.


feaGen

public FeatureGenerator feaGen
The fea gen.

Constructor Detail

JVnSenSegmenter

public JVnSenSegmenter()
Method Detail

init

public boolean init(java.lang.String modelDir)
Creates a new instance of JVnSenSegmenter.

Parameters:
modelDir - the model dir
Returns:
true, if successful

senSegment

public java.lang.String senSegment(java.lang.String text)
Sen segment.

Parameters:
text - the text
Returns:
the string

senSegment

public void senSegment(java.lang.String text,
                       java.util.List senList)
Sen segment.

Parameters:
text - the text
senList - the sen list

main

public static void main(java.lang.String[] args)
main method of JVnSenSegmenter to use this tool from command line.

Parameters:
args - the arguments

displayHelp

public static void displayHelp()
Display help.