public class SpanUtils extends Object
Span.| Modifier and Type | Method and Description |
|---|---|
static opennlp.tools.util.Span |
getSpan(opennlp.tools.tokenize.Tokenizer tokenizer,
String entity,
String text)
Gets a
span for an entity in a text. |
public static opennlp.tools.util.Span getSpan(opennlp.tools.tokenize.Tokenizer tokenizer,
String entity,
String text)
span for an entity in a text.tokenizer - The tokenizer.entity - The text of the entity.text - The text containing the entity.span of the entity in the text, or null if no span is found.Copyright © 2018. All rights reserved.