RankedLanguageIdentifier.Identify "Item2" value

Sep 5, 2013 at 8:18 PM

Can you explain how the return value of RankedLanguageIdentifier.Identify "Item2" should be interpreted?

Dec 26, 2013 at 10:07 PM
Edited Jan 7, 2014 at 10:45 PM
"Item2" meaning is an implementation detail of a specific Identifier.

In your case, RankedLanguageIdentifier.Identify returns a sequence of Language-Distance pairs (IEnumerable<Tuple<LanguageInfo, double>>).
Lower distance (double, Item2) means more probability that the text is of the specified language (Item1 or LanguageInfo).
The distance number itself cannot be used as an indicator of the probability, it is only relevant when compared to other distances from the same Identify invocation.
The sequence is always returned sorted descending which means the best matching language is always returned first.

Hope this helps and thanks for using NTextCat!
Marked as answer by IvanAkcheurov on 1/7/2014 at 3:45 PM