Package com.basistech.rosette.dm
Class EntityMention
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Attribute
com.basistech.rosette.dm.EntityMention
- All Implemented Interfaces:
Serializable
Deprecated.
A mention of a entity in the text. For example, "George" and
"George Washington" are mentions of type "PERSON".
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.A builder for entity mentions. -
Field Summary
Fields inherited from class com.basistech.rosette.dm.Attribute
endOffset, startOffset
Fields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the confidence of the entity extractor in identifying this mention.Deprecated.Returns a chain id that links together entity mentions that refer to the same entity as determined by in-document analysis.Deprecated.Returns the type of the entity.getFlags()
Deprecated.Returns flags associated with a mention.Deprecated.Returns the linking confidence of the kb-linker in link this mention and entity id.Deprecated.Returns the normalized form of the mention.Deprecated.Returns the entity extraction source that produced this entity.Deprecated.Returns the entity extraction subsource that produced this entity.protected com.google.common.base.MoreObjects.ToStringHelper
Deprecated.Methods inherited from class com.basistech.rosette.dm.Attribute
getEndOffset, getStartOffset
Methods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
Method Details
-
getEntityType
Deprecated.Returns the type of the entity. For example, "PERSON", "LOCATION", "ORGANIZATION".- Returns:
- the type of entity
-
getConfidence
Deprecated.Returns the confidence of the entity extractor in identifying this mention.- Returns:
- the confidence of the entity extractor in identifying this mention. This value will be null if there is no calculated confidence value.
-
getLinkingConfidence
Deprecated.Returns the linking confidence of the kb-linker in link this mention and entity id.- Returns:
- the linking confidence of the kb-linker in link this mention and entity id. This value will be null if there is no calculated confidence value.
-
getCoreferenceChainId
Deprecated.Returns a chain id that links together entity mentions that refer to the same entity as determined by in-document analysis. This isnull
if no in-document coreference information is available. Currently, the chain id is the index (into theEntityMention
list) of the head mention of the chain. The head mention is the (first) longest mention in the chain.- Returns:
- the coreference chain id, or null if chaining has not been applied
-
getFlags
Deprecated.Returns flags associated with a mention. Interpretation of the flags varies by extractor and language.- Returns:
- flags associated with the mention. These may be null (rather than 0) if there are no flags.
-
getSource
Deprecated.Returns the entity extraction source that produced this entity. For example, "statistical", "regex", "gazetteer".- Returns:
- the entity extraction source
-
getSubsource
Deprecated.Returns the entity extraction subsource that produced this entity. This is usually filename for the regular expression file or gazetteer in which the entity appears. For example, "./data/gazetteer/eng/accept/gaz-LE.bin"- Returns:
- the entity extraction subsource
-
getNormalized
Deprecated.Returns the normalized form of the mention. This form typically normalizes spaces spaces and removes embedded newlines. It may omit prefixes in languages like Arabic. This is not a canonical way to refer to the entity (seeResolvedEntity
) but rather a simplified form of this particular mention text.- Returns:
- the normalized form of the mention
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()Deprecated.- Overrides:
toStringHelper
in classAttribute
-
Mention
.