Package com.basistech.rosette.dm
Class ResolvedEntity
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Attribute
com.basistech.rosette.dm.ResolvedEntity
- All Implemented Interfaces:
Serializable
Deprecated.
A reference to a "real world" entity. For example, an
EntityMention of
"George" could refer to many different Georges. A ResolvedEntity
associates the mention with an id from some external knowledge base, e.g.
Q23 from Wikidata.
An entity may optionally have a sentiment category associated with it
(e.g. "positive", "negative", "neutral").- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.A builder for resolved entities. -
Field Summary
Fields inherited from class com.basistech.rosette.dm.Attribute
endOffset, startOffsetFields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResolvedEntity(int startOffset, int endOffset, String entityId, Integer coreferenceChainId, Double confidence, CategorizerResult sentiment, Map<String, Object> extendedProperties) Deprecated.protectedResolvedEntity(int startOffset, int endOffset, String entityId, Integer coreferenceChainId, Double confidence, Map<String, Object> extendedProperties) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the confidence for this resolved entity, or null if there is none.Deprecated.Returns the in-document coreference chain ID for this entity, or null if there is none.Deprecated.Returns the unique identifier of this entity.Deprecated.Returns the sentiment of this entity, or null if not computed.protected com.google.common.base.MoreObjects.ToStringHelperDeprecated.Methods inherited from class com.basistech.rosette.dm.Attribute
getEndOffset, getStartOffsetMethods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
ResolvedEntity
protected ResolvedEntity(int startOffset, int endOffset, String entityId, Integer coreferenceChainId, Double confidence, Map<String, Object> extendedProperties) Deprecated. -
ResolvedEntity
protected ResolvedEntity(int startOffset, int endOffset, String entityId, Integer coreferenceChainId, Double confidence, CategorizerResult sentiment, Map<String, Object> extendedProperties) Deprecated.
-
-
Method Details
-
getEntityId
Deprecated.Returns the unique identifier of this entity.- Returns:
- the unique identifier of this entity
-
getCoreferenceChainId
Deprecated.Returns the in-document coreference chain ID for this entity, or null if there is none.- Returns:
- the in-document coreference chain ID for this entity, or null if there is none
-
getConfidence
Deprecated.Returns the confidence for this resolved entity, or null if there is none.- Returns:
- the confidence for this resolved entity, or null if there is none
-
getSentiment
Deprecated.Returns the sentiment of this entity, or null if not computed. Only the top-ranked sentiment result is returned. UseEntity.getSentiment()to obtain all results.- Returns:
- the sentiment of this entity, or null if not computed.
-
toStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()Deprecated.- Overrides:
toStringHelperin classAttribute
-
Entity.