public class NamedEntityUtil extends Object
| Constructor and Description |
|---|
NamedEntityUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
packNamedEntity(Document doc,
Span span,
String system)
create ENAMEX annotations from the NE_INTERNAL annotations used internally
by the Extended Named Entity annotator.
|
static void |
packNamedEntity(Document doc,
String system) |
static void |
splitToNamedEntity(Document doc) |
static void |
splitToNamedEntity(Document doc,
Span span)
create NE_INTERNAL annotations for use by the Extended Named Entity
annotator.
|
public static void splitToNamedEntity(Document doc, Span span)
span.
Information from existing 'tagger' and 'ENAMEX' annotations is captured in
the 'pos' and 'categories' features on the NE_INTERNAL annotation.
Existing ENAMEX annotations are deleted.doc - document containing annotationsspan - annotations within this span are processedpublic static void splitToNamedEntity(Document doc)
public static void packNamedEntity(Document doc, Span span, String system)
doc - document containing annotationsspan - annotations within this span are processedsystem - named entity system nameCopyright © 2016 New York University. All rights reserved.