Class BaseLink
- Namespace
- NOpenNLP.Tools.Entitylinker
- Assembly
- NOpenNLP.Tools.dll
Stores a minimal tuple of information. Intended to be used with LinkedSpan<T>.
public abstract class BaseLink
- Inheritance
-
BaseLink
- Inherited Members
Constructors
BaseLink()
protected BaseLink()
BaseLink(string?, string?, string?, string?)
protected BaseLink(string? itemParentID, string? itemID, string? itemName, string? itemType)
Parameters
Properties
ItemID
Gets or sets the item id. This field can store, for example, the primary key of a row in an external/linked database.
public string? ItemID { get; set; }
Property Value
ItemName
Gets or sets the item name. An item name can be the native name (often a normalized version of something) from an external linked database.
public string? ItemName { get; set; }
Property Value
ItemParentID
Gets or sets any parent ID for the linked item.
public string? ItemParentID { get; set; }
Property Value
ItemType
Gets or sets the item type. An item type can be the native type from an external linked database. For instance, a product type or code.
public string? ItemType { get; set; }
Property Value
ScoreMap
Gets or sets the scores associated with this link.
public IDictionary<string, double> ScoreMap { get; set; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.