Interface DocumentAnnotators.SentenceTokenConsumer

Enclosing class:
DocumentAnnotators
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DocumentAnnotators.SentenceTokenConsumer
Receives one sentence's contiguous token run during DocumentAnnotators.forEachSentence(List, List, SentenceTokenConsumer).
Since:
3.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(int first, String[] words)
    Consumes one sentence's tokens.
  • Method Details

    • accept

      void accept(int first, String[] words)
      Consumes one sentence's tokens.
      Parameters:
      first - The position of the sentence's first token in the token layer.
      words - The sentence's token values in layer order. Never null or empty; the run covers the token layer positions [first, first + words.length).