Package opennlp.tools.entitylinker
Class BaseLink
java.lang.Object
opennlp.tools.entitylinker.BaseLink
Represents a minimal tuple of information.
Intended to be used with
LinkedSpan
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
void
setItemName
(String itemName) void
setItemParentID
(String itemParentID) void
setItemType
(String itemType) void
setScoreMap
(Map<String, Double> scoreMap) toString()
-
Constructor Details
-
BaseLink
-
-
Method Details
-
getItemParentID
-
setItemParentID
- Parameters:
itemParentID
- The parent ID of the linked item
-
getItemID
-
setItemID
- Parameters:
itemID
- This field can store, for example, the primary key of a now in an external/linked data source.
-
getItemName
-
setItemName
- Parameters:
itemName
- An item name can be the native name (often a normalized version of something) from an external linked data source.
-
getItemType
-
setItemType
- Parameters:
itemType
- An item type can be the native type from an external linked database. For instance, a product type or code.
-
getScoreMap
-
setScoreMap
-
toString
-
hashCode
public int hashCode() -
equals
-