Package opennlp.tools.entitylinker
Class BaseLink
- java.lang.Object
-
- opennlp.tools.entitylinker.BaseLink
-
public abstract class BaseLink extends Object
Stores a minimal tuple of information. Intended to be used with LinkedSpan
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getItemID()
returns the itemidString
getItemName()
returns the nameString
getItemParentID()
Any parent ID for the linked itemString
getItemType()
returns the typeHashMap<String,Double>
getScoreMap()
int
hashCode()
void
setItemID(String itemID)
sets the item id.void
setItemName(String itemName)
Sets the item name.void
setItemParentID(String itemParentID)
returns the parent ID of the linked itemvoid
setItemType(String itemType)
sets the item type.void
setScoreMap(HashMap<String,Double> scoreMap)
String
toString()
-
-
-
Method Detail
-
getItemParentID
public String getItemParentID()
Any parent ID for the linked item- Returns:
-
setItemParentID
public void setItemParentID(String itemParentID)
returns the parent ID of the linked item- Parameters:
itemParentID
-
-
getItemID
public String getItemID()
returns the itemid- Returns:
-
setItemID
public void setItemID(String itemID)
sets the item id. This field can store, for example, the primary key of a row in an external/linked database- Parameters:
itemID
-
-
getItemName
public String getItemName()
returns the name- Returns:
-
setItemName
public void setItemName(String itemName)
Sets the item name. An item name can be the native name (often a normalized version of something) from an external linked database- Parameters:
itemName
-
-
getItemType
public String getItemType()
returns the type- Returns:
-
setItemType
public void setItemType(String itemType)
sets the item type. An item type can be the native type from an external linked database. For instance, a product type or code- Parameters:
itemType
-
-
-