Package com.basistech.rosette.dm
Class Mention
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Attribute
com.basistech.rosette.dm.Mention
- All Implemented Interfaces:
Serializable
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 Classes -
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 TypeMethodDescriptionReturns the confidence of the entity extractor in identifying this mention.Returns the linking confidence of the kb-linker in link this mention and entity id.Returns the normalized form of the mention.Returns the entity extraction source that produced this entity.Returns the entity extraction subsource that produced this entity.protected com.google.common.base.MoreObjects.ToStringHelper
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
-
Mention
-
-
Method Details
-
getConfidence
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
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.
-
getSource
Returns the entity extraction source that produced this entity. For example, "statistical", "regex", "gazetteer".- Returns:
- the entity extraction source
-
getSubsource
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
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()- Overrides:
toStringHelper
in classAttribute
-