public final class NamedEntity extends Object implements Entity
| Modifier and Type | Class and Description |
|---|---|
static class |
NamedEntity.Category |
| Modifier and Type | Method and Description |
|---|---|
static List<NamedEntity> |
allFrom(String text,
Annotations annotations) |
static NamedEntity |
create(NamedEntity.Category cat,
String mention,
List<Long> offsets,
String doc,
String rootDocument,
Pipeline.Type extr,
Language extrLang) |
boolean |
equals(Object o) |
static NamedEntity |
from(String text,
NlpTag tag,
Annotations annotations) |
NamedEntity.Category |
getCategory() |
String |
getDocumentId() |
Pipeline.Type |
getExtractor() |
Language |
getExtractorLanguage() |
String |
getId() |
String |
getMention() |
int |
getMentionNormTextLength() |
List<Long> |
getOffsets() |
String |
getPartsOfSpeech() |
String |
getRootDocument() |
int |
hashCode() |
NamedEntity |
hide() |
Boolean |
isHidden() |
static String |
normalize(String unicoded) |
String |
toString() |
NamedEntity |
unhide() |
public static NamedEntity create(NamedEntity.Category cat, String mention, List<Long> offsets, String doc, String rootDocument, Pipeline.Type extr, Language extrLang)
public static List<NamedEntity> allFrom(String text, Annotations annotations)
public static NamedEntity from(String text, NlpTag tag, Annotations annotations)
public String getMention()
public NamedEntity.Category getCategory()
public String getDocumentId()
public String getRootDocument()
public int getMentionNormTextLength()
public Pipeline.Type getExtractor()
public Language getExtractorLanguage()
public Boolean isHidden()
public NamedEntity hide()
public NamedEntity unhide()
public String getPartsOfSpeech()
Copyright © 2020–2021 ICIJ. All rights reserved.