jvnpostag
Class POSContextGenerator

java.lang.Object
  extended by jvntextpro.data.ContextGenerator
      extended by jvnpostag.POSContextGenerator

public class POSContextGenerator
extends ContextGenerator


Constructor Summary
POSContextGenerator(java.lang.String featureTemplateFile)
           
 
Method Summary
 java.lang.String[] getContext(Sentence sent, int pos)
          Gets the context.
 boolean readDict()
           
 boolean readFeatureTemplate(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSContextGenerator

public POSContextGenerator(java.lang.String featureTemplateFile)
Method Detail

getContext

public java.lang.String[] getContext(Sentence sent,
                                     int pos)
Description copied from class: ContextGenerator
Gets the context.

Specified by:
getContext in class ContextGenerator
Parameters:
sent - the sent
pos - the pos
Returns:
the context

readDict

public boolean readDict()

readFeatureTemplate

public boolean readFeatureTemplate(java.lang.String file)