jvnsensegmenter
Class FeatureGenerator

java.lang.Object
  extended by jvnsensegmenter.FeatureGenerator

public class FeatureGenerator
extends java.lang.Object

The Class FeatureGenerator.

Author:
TuNC

Constructor Summary
FeatureGenerator()
           
 
Method Summary
static java.util.List doFeatureGen(java.util.Map map, java.lang.String text, java.util.List markList, boolean label)
          Generate context predicates for a specified text, return string representing the context predicates.
static void main(java.lang.String[] args)
          The main method.
static void printUsage()
          Prints the usage.
static void readAbbrList(java.lang.String dataFile, java.util.Map map)
          Read abbr list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureGenerator

public FeatureGenerator()
Method Detail

main

public static void main(java.lang.String[] args)
The main method.

Parameters:
args - the arguments

printUsage

public static void printUsage()
Prints the usage.


readAbbrList

public static void readAbbrList(java.lang.String dataFile,
                                java.util.Map map)
                         throws java.io.IOException
Read abbr list.

Parameters:
dataFile - the data file
map - the map
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

doFeatureGen

public static java.util.List doFeatureGen(java.util.Map map,
                                          java.lang.String text,
                                          java.util.List markList,
                                          boolean label)
Generate context predicates for a specified text, return string representing the context predicates.

Parameters:
map - the map
text - the text
markList - the mark list
label - the label
Returns:
the list