org.cogroo.tools.featurizer
Class DefaultFeaturizerSequenceValidator

java.lang.Object
  extended by org.cogroo.tools.featurizer.DefaultFeaturizerSequenceValidator
All Implemented Interfaces:
opennlp.tools.util.SequenceValidator<WordTag>

public class DefaultFeaturizerSequenceValidator
extends Object
implements opennlp.tools.util.SequenceValidator<WordTag>


Constructor Summary
DefaultFeaturizerSequenceValidator(FeatureDictionary tagDict, Set<String> poisonedTags)
           
 
Method Summary
static boolean matches(String outcome, String tag)
           
 boolean validSequence(int i, WordTag[] sequence, String[] s, String outcome)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFeaturizerSequenceValidator

public DefaultFeaturizerSequenceValidator(FeatureDictionary tagDict,
                                          Set<String> poisonedTags)
Method Detail

validSequence

public boolean validSequence(int i,
                             WordTag[] sequence,
                             String[] s,
                             String outcome)
Specified by:
validSequence in interface opennlp.tools.util.SequenceValidator<WordTag>

matches

public static boolean matches(String outcome,
                              String tag)


Copyright © 2012-2013 CoGrOO. All Rights Reserved.