Interface AlphanumericCheck

All Known Implementing Classes:
TokenizerFactory.PatternCheck
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface interface AlphanumericCheck
Checks whether a candidate token is accepted by the alphanumeric optimization of TokenizerME and TokSpanEventStream, so it is not split further.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    check(CharSequence candidate)
    Returns true if candidate is accepted as alphanumeric.
  • Method Details

    • check

      boolean check(CharSequence candidate)
      Returns true if candidate is accepted as alphanumeric.
      Parameters:
      candidate - The candidate token.
      Returns:
      true if candidate is accepted as alphanumeric