We are building a dictionary of words that we want myscript to recognize.
I am able to build a dictionary with single words.
Is it possible to recognize compound words for e.g
Crocin 100 Mg
thank you for contacting us.
Currently, you should use a grammar resource, that will allow you to "loop" in your lexicon. You can find more explanation in the following topic: https://developer-support.myscript.com/support/discussions/topics/16000023391
I went through the discussion but its still not clear what I need to do.
I need to recognize around 20-30000 medical words and some of them are compound words.
Please can you tell me the steps that I can follow.
Also, I need to recognize general words.
thank you for the precision.
Currently, if you also want to recognize "general words", the easier is that you create a new configuration in your ".conf" file and add your custom lexicon with the TEXT resource.
Let's say you created the myResource.res resource and stored it into the "MyResources" directory of the assets. You should then create a configuration as follows:
You can then set the textwithMyResource configuration as follows: conf.setString("text.configuration.name","textwithMyResource");
You can also find this explanation in the following topics:
Thank you Olivier for the quick response.
Will this work with compound words?
For e.g I want the system to recognize
Crocin 100 MG
as the TEXT resource contains a GRM, you should normally be able to recognize compounds words.