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.
Receives one sentence's contiguous token run during
DocumentAnnotators.forEachSentence(List, List, SentenceTokenConsumer).- Since:
- 3.0.0
-
Method Summary
-
Method Details
-
accept
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. Nevernullor empty; the run covers the token layer positions[first, first + words.length).
-