Click or drag to resize

IWeightTableOperationsGetScoreForMatch Method (IEnumerableString, termTableColumns, dataPointAggregationType)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Queries table for specified terms and return aggregated score. The score source is specified by tf_idf (only numeric columns are supported).

Namespace:  imbSCI.DataComplex
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
double GetScoreForMatch(
	IEnumerable<string> queryTerms,
	termTableColumns scoreToUse = termTableColumns.tf_idf,
	dataPointAggregationType aggregation = dataPointAggregationType.sum
)
Request Example View Source

Parameters

queryTerms
Type: System.Collections.GenericIEnumerableString
Terms to test against the table, terms found are used in calculation.
scoreToUse (Optional)
Type: imbSCI.DataComplextermTableColumns
What numeric property of matched term to use for aggregation.
aggregation (Optional)
Type: imbSCI.Core.math.aggregationdataPointAggregationType
The aggregation type

Return Value

Type: Double
Any score information from the query terms is ignored.
See Also