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

protected BaseLink()
protected BaseLink(string? itemParentID, string? itemID, string? itemName, string? itemType)

Parameters

itemParentID string
itemID string
itemName string
itemType string

Properties

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

string

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

string

Gets or sets any parent ID for the linked item.

public string? ItemParentID { get; set; }

Property Value

string

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

string

Gets or sets the scores associated with this link.

public IDictionary<string, double> ScoreMap { get; set; }

Property Value

IDictionary<string, double>

Methods

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.