Setting more than one language of RecognizerParams

  • 109 Views
  • Last Post 04 January 2018
  • Topic Is Solved
PhilippWuelfing posted this 03 January 2018

Hello,

with the DocumentViewer you are able to create a stack of languages.

For example "German, German new spelling and English" in one.

Is the same possible programmatically when defining blocks and setting their RegonizerParams?

 

Like:

                Dim RP As FREngine.RecognizerParams = _Engine.CreateRecognizerParams

                RP.SetPredefinedTextLanguage("German")

 

Is there a chance to add more languages?

 

Order By: Standard | Newest | Votes
Kseniya Leontyeva posted this 03 January 2018

Hi Philipp,

Yes, you can define multiple languages by listing them in this command as follows:

RP.SetPredefinedTextLanguage("German,GermanNewSpelling,English")

 

Another way is to call ILanguageDatabase::CreateCompoundTextLanguage method.

To learn more about specifying multiple predefined languages and creating compound languages please visit Developer's Help → Guided Tour →Advanced Techniques → Working with Languages.

PhilippWuelfing posted this 04 January 2018

Thank you very much!

Close