Math

math grammer not download and pase error

Hello,

I'm currently experiencing difficulties with grammar file download. I've created multiple '.def' files and I'm trying to upload them to the cloud, however, it seems that the registration is not being processed. I am unable to identify the issue. Could you please assist me with resolving this problem?

zip
(11.8 KB)
1 Comment

Hello Junayou,


Thank you for your question


I took one of your grammar : integer_only.def and I have successfully built it with our online tool https://developer.myscript.com/support/recognition-assets

and used the generated .res grammar, with this REST body:


{

    "configuration": {

                "math": {

            "customGrammarId": "integer_only"

        }

    }, 

    "contentType": "Math",

"strokeGroups": 

...

}



As far as I could see in your console view, it seems that you have uploaded the integer_only.def file, not the integer_only.res file.


Please make sure to build your .res file from your .def grammar definition, then upload the corresponding .res file in your console before using it in your Web Requests.

For more details, please refer to https://developer.myscript.com/docs/interactive-ink/3.1/web/advanced/custom-recognition/


And please let us know whether this fixes your grammar issue.


Best regards,


Gwenaëlle

Login or Signup to post a comment