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,
int offset,
String doc,
String rootDoc,
Pipeline.Type extr,
Language extrLang) |
static NamedEntity |
create(NamedEntity.Category cat,
String mention,
long offset,
String doc,
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() |
long |
getOffset() |
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, long offset, String doc, Pipeline.Type extr, Language extrLang)
public static NamedEntity create(NamedEntity.Category cat, String mention, int offset, String doc, String rootDoc, 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 long getOffset()
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.