jvnsegmenter
Class RegexContextGenerator

java.lang.Object
  extended by jvntextpro.data.ContextGenerator
      extended by jvnsegmenter.BasicContextGenerator
          extended by jvnsegmenter.RegexContextGenerator

public class RegexContextGenerator
extends BasicContextGenerator

The Class RegexContextGenerator.


Constructor Summary
RegexContextGenerator(org.w3c.dom.Element node)
          Instantiates a new regex context generator.
 
Method Summary
 java.lang.String[] getContext(Sentence sent, int pos)
          Gets the context.
 
Methods inherited from class jvnsegmenter.BasicContextGenerator
readFeatureNodes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexContextGenerator

public RegexContextGenerator(org.w3c.dom.Element node)
Instantiates a new regex context generator.

Parameters:
node - the node
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