Text

Answered

While searching custom words - iOS

Hi,

I had the custom lexicon resource.That has the following words,

Kannan

Crocin

Dolo650mg

Dolo850mg

Paracetamol350mg

abiii

Aciii

Atliii

Abcd

My problem was ,when i try to search a "Dolo" related words(Type "Dolo" via pencil) there are no suggestions are showing.When I complete the "Dolo650mg" ,then it was show the "Dolo650mg"

So my need was,Show all suggestions("Dolo650mg","Dolo850mg") When I type the "Dolo" or "Dol" something related to this.


zip

Best Answer

Dear Kannan,


basically, a GRM resource allows to "loop" over a lexicon. You can find more information in the following post: https://developer-support.myscript.com/support/discussions/topics/16000023391/page/2?url_locale=


A GRM resource file can be downloaded at the following link: https://myscript.freshdesk.com/helpdesk/attachments/16021922578


Best regards,


Olivier


Answer

Dear Kannan,


basically, a GRM resource allows to "loop" over a lexicon. You can find more information in the following post: https://developer-support.myscript.com/support/discussions/topics/16000023391/page/2?url_locale=


A GRM resource file can be downloaded at the following link: https://myscript.freshdesk.com/helpdesk/attachments/16021922578


Best regards,


Olivier

Dear Oliver,

Thank you for your quick response.

Where I can create that GRM Resource?What is the purpose of it?

This GRM resource was only able to created by your side?

Dear Kannan,

thank you for contacting us.

Currently, when creating a lexicon, only the exact words belonging to the latter can be recognized. The iink SDK doesn't currently have a completion or prediction feature.

You then understand your use-case is not possible.

What could be done is that you split the medicine name and posology, creating a lexicon as follows:
Kannan
Crocin
Dolo
650mg
Dolo
850mg
Paracetamol
350mg
abiii
Aciii
Atliii
Abcd


In order to be able to "loop" over your lexicon, also make sure you attach a grm resource: https://developer-support.myscript.com/support/discussions/topics/16000023391

=> This way, you will be able to recognize "Dolo", "Dolo 650mg"... but we insist we do not have a completion feature available with the iink SDK.

Best regards,

Olivier