edu.stanford.nlp.process
Class FeatureLabelTokenFactory

java.lang.Object
  extended by edu.stanford.nlp.process.FeatureLabelTokenFactory
All Implemented Interfaces:
LexedTokenFactory<FeatureLabel>

public class FeatureLabelTokenFactory
extends Object
implements LexedTokenFactory<FeatureLabel>

Constructs FeatureLabel as a String with a corresponding BEGIN and END position.

Author:
Marie-Catherine de Marneffe

Constructor Summary
FeatureLabelTokenFactory()
           
 
Method Summary
 FeatureLabel makeToken(String str, int begin, int length)
          Constructs FeatureLabel as a String with a corresponding BEGIN and END position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureLabelTokenFactory

public FeatureLabelTokenFactory()
Method Detail

makeToken

public FeatureLabel makeToken(String str,
                              int begin,
                              int length)
Constructs FeatureLabel as a String with a corresponding BEGIN and END position. (Does not take substr).

Specified by:
makeToken in interface LexedTokenFactory<FeatureLabel>
Parameters:
str - The String extracted by the lexer.
begin - The offset in the document of the first character in this string.
length - The number of characters the string takes up in the document.


Stanford NLP Group