Package opennlp.tools.postag

# Class DefaultPOSSequenceValidator

java.lang.Object
opennlp.tools.postag.DefaultPOSSequenceValidator

All Implemented Interfaces:
  `opennlp.tools.util.SequenceValidator<String>`

public class DefaultPOSSequenceValidator extends Object implements opennlp.tools.util.SequenceValidator<String>
The default POS tagger `SequenceValidator` implementation.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultPOSSequenceValidator(opennlp.tools.postag.TagDictionary tagDictionary)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `validSequence(int i, String[] inputSequence, String[] outcomesSequence, String outcome)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultPOSSequenceValidator

    public DefaultPOSSequenceValidator(opennlp.tools.postag.TagDictionary tagDictionary)
    Parameters:
      `tagDictionary` - A `TagDictionary` used for the new `SequenceValidator`.

- ## Method Details

  - ### validSequence

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