Class MatchState


  • public class MatchState
    extends Object
    The state of a matching process. This state is NOT thread-safe.
    Since:
    2.3
    Author:
    Stefan Lotties
    • Constructor Detail

    • Method Detail

      • setToken

        public final void setToken​(AnalyzedTokenReadings[] tokens,
                                   int index,
                                   int next)
        Sets the token to be formatted etc. and includes the support for including the skipped tokens.
        Parameters:
        tokens - Array of tokens
        index - Index of the token to be formatted
        next - Position of the next token (the skipped tokens are the ones between the tokens[index] and tokens[next]
      • getTargetPosTag

        public final String getTargetPosTag()
        Format POS tag using parameters already defined in the class.
        Returns:
        Formatted POS tag as String.
      • getMatch

        public Match getMatch()