Text textrankoptions equals - CyrilB1531/lodestar GitHub Wiki

Development build. This page describes main, not a released package. The latest published Lodestar.Text is 0.6.0 — read its documentation.

HomeTextKeyword extraction

TextRankOptions.Equals

Compares every option, treating the stop words as a set.

public bool Equals(TextRankOptions other)

Parametersother is the options to compare against, or null.

Returnstrue when every scalar matches and both stop-word collections hold the same words.

Example — the same configuration, written two ways.

using Lodestar.Text.Keywords;

TextRankOptions left = new() { StopWords = ["the", "the"] };
TextRankOptions right = new() { StopWords = ["the"] };

bool same = left == right;  // => True

RemarksDamping, Tolerance and Ratio compare by bits, which makes NaN equal NaN and keeps equality reflexive. the equality rule has the rule.

Applies to — net10.0, netstandard2.0.

See alsoTextRankOptions.GetHashCode, TextRankOptions.