public class SpanUtils extends Object
| Constructor and Description |
|---|
SpanUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
concatenateSpans(List<opennlp.tools.util.Span> allSpans,
opennlp.tools.util.Span[] neSpans)
Concatenates two span lists adding the spans of the second parameter to the
list in first parameter.
|
static void |
postProcessDuplicatedSpans(List<opennlp.tools.util.Span> preList,
opennlp.tools.util.Span[] postList)
Removes spans from the preList if the span is contained in the postList.
|
public static final void concatenateSpans(List<opennlp.tools.util.Span> allSpans, opennlp.tools.util.Span[] neSpans)
allSpans - the spans to which the other spans are addedneSpans - the spans to be added to allSpanspublic static final void postProcessDuplicatedSpans(List<opennlp.tools.util.Span> preList, opennlp.tools.util.Span[] postList)
preList - the list of spans to be post-processedpostList - the list of spans to do the post-processingCopyright © 2015 IXA pipes. All rights reserved.