Click or drag to resize

weightTableSetOperationsGetScoreForMatch Method (IWeightTable, 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#
public static double GetScoreForMatch(
	this IWeightTable table,
	IEnumerable<string> queryTerms,
	termTableColumns scoreToUse = termTableColumns.tf_idf,
	dataPointAggregationType aggregation = dataPointAggregationType.sum
)
Request Example View Source

Parameters

table
Type: imbSCI.DataComplexIWeightTable
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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWeightTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also