Click or drag to resize

basicLanguageToolslanguageTestSample Method

Home | imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Tests sample from provided words

Namespace:  imbNLP.Data.basic
Assembly:  imbNLP.Data (in imbNLP.Data.dll) Version: 0.2.30
Syntax
C#
public static bool languageTestSample(
	this IEnumerable<string> words,
	int take,
	basicLanguage model,
	double criteria = 0.6,
	bool filterSample = true
)

Parameters

words
Type: System.Collections.GenericIEnumerableString
The words to take sample from
take
Type: SystemInt32
Words to take
model
Type: imbNLP.Data.basicbasicLanguage
Language model to test against
criteria (Optional)
Type: SystemDouble
The criteria.
filterSample (Optional)
Type: SystemBoolean
if set to true it will skip short words and non-word tokens

Return Value

Type: Boolean
TRUE if more than criteria ratio of taken samples is positive for specified language

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableString. 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