Property DefaultLanguage
- Namespace
- LMKit.Extraction.Ocr
- Assembly
- LM-Kit.NET.dll
DefaultLanguage
Gets or sets the default ISO 639-2/T language code used when a specific language model is not available or language detection is disabled.
public string DefaultLanguage { get; set; }
Property Value
- string
A supported ISO 639-2/T language code, or several codes joined with
'+'for multi-language recognition (for example"eng+fra"). The default is"eng".
Remarks
To recognize a document that mixes several languages, combine the codes
with '+' (for example "eng+fra" for English and French).
Each component must be a supported code; the corresponding dictionaries
are downloaded on demand when EnableModelDownload is enabled.
Supported language codes are:
ara, hye, bul, chi_sim, chi_tra, hrv, ces, dan, nld, eng, fin, fra, deu, heb, hin, hun, ind, ita, jpn, kor, ell, nor, pol, por, ron, rus, srp, slk, spa, swe, tha, tur, ukr, vie.
Exceptions
- ArgumentException
Thrown if the specified language code is not in the list of supported codes.