Getting the language of a field based on the recognition results

Question

Is it possible to get the language of a field based on the recognition results?

Answer

It is possible to get the field's language and save it to another field.

The next example script outputs the languages detected on the field called TestField in a recognition log:

var t = Context.Field("TestField").GetLangs();
var p = "";
foreach (var s in t)
{
p += s.ToString()+",";
}
FCTools.ShowMessage( "Language " +  p);

The output will be received as the locale ID in accordance with this Microsoft article: Locale ID.

E.g., for the Czech language detected in the field, the following results will be output: 
image

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed