Avaya AEP Accessing Recognition results in VXML

285 views
Skip to first unread message

Raymond White

unread,
Jul 16, 2020, 2:44:03 PM7/16/20
to UniMRCP
Hi!

I have an AEP that I am using the TestLex.vxml that I found on this forum.

I can see in the AEP Session log, the recognition result shows all the return values from lex for the book hotel bot.

@2020-07-15 15:37:53,451||FINEST|VB|6529|Session=lexpoclabaep-2020197203746-16|VXML_REC_RECOGNITION_RESULT
{
        dialogHandle: 55
        bargein: 0
        DTMF: 0
        result: "<?xml version="1.0"?><result><interpretation grammar="session:1" confidence="100"><instance><intent>BookHotel</intent><slots><CheckInDate></CheckInDate><Location></Location><Nights></Nights><RoomType></RoomType></slots><messageformat>PlainText</messageformat><message>What city will you be staying in?</message><dialogstate>ElicitSlot</dialogstate><slottoelicit>Location</slottoelicit><sessionattributes></sessionattributes></instance><input mode="speech">book a hotel</input></interpretation></result>"
        haveUtterance: 0
        utteranceDuration: 0
        utterancePath: ""
        rslt: [
                inputMode: 1
                result 0
                {
                        grammarName: session:1
                        confidence: 1.0
                        rawInput: book a hotel
                        interpretation 0
                        {
                                simpleResult:
                        }
                }
        ]
}

But the lastresult$ in VXML does not have the message value or dialogstate. Do you know if there is a specific syntax to obtain this value?

I have tried lastresult$.message, lastresult$[0].message and it is undefined.

Thank you again for all your assistance!

Kind Regards,

Ray

Arsen Chaloyan

unread,
Jul 20, 2020, 10:08:49 PM7/20/20
to UniMRCP
Have you tried to reference lastresult$.interpretation.message and lastresult$.interpretation.dialogstate?

As far as I remember, AAEP is sensitive to indents in NLSML results. My recollection is it would be best to use the following settings in umslex.xml

   <results
      format="standard"
      indent="2"
      confidence-format="auto"
      tag-format="swi-semantics/xml"
   />

You may also try to retrieve the instance as an JSON object by setting the tag-format to swi-semantics/json or semantics/json.

If you continue to experience the problem and can provide a full AEP Session log, I should be able to help.


--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/fb0b8120-d38b-4aa2-9036-3324c613e3dbo%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

Raymond White

unread,
Jul 21, 2020, 11:21:29 AM7/21/20
to uni...@googlegroups.com
Thank you for your kind reply Arsen.

I have tried to access it as you stated. 

I will look at these configurations and see what I can find out.

Kind regards,

Ray

You received this message because you are subscribed to a topic in the Google Groups "UniMRCP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/unimrcp/4c9i2a3iXUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/CAC5Usc%2B0ZaCnt9%2BYzZgUKwiG-h6qouyNt%2B4GGeiuAn_4%3DG4igA%40mail.gmail.com.


--
Thank you,

Ray

Raymond White

unread,
Jul 27, 2020, 10:46:23 AM7/27/20
to uni...@googlegroups.com
Hi Arsen,

I hope you are doing well today!

I have tried the mods to the umslex.xml configuration as you suggested.

I have tried lastresult$.interpretation.message and lastresult$.interpretation.dialogstate  and each is undefined. I have also tried lastresult$[0].interpretation.dialogstate with the same results.

With the xml semantics, you can see in the session log, the output results from the recognizer do not seem to show the field names. I think tried json, the results seem better, when I dump the object, I can see the individual fields in the object, but I cannot seem to access them. I have tried various access options. 

I have attached the session log for each configuration and the source code I am using.

Let me know what you think and if you need anything else.

Thank you for your assistance.

Kind regards,
Ray


On Mon, Jul 20, 2020 at 10:08 PM Arsen Chaloyan <acha...@gmail.com> wrote:
You received this message because you are subscribed to a topic in the Google Groups "UniMRCP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/unimrcp/4c9i2a3iXUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/CAC5Usc%2B0ZaCnt9%2BYzZgUKwiG-h6qouyNt%2B4GGeiuAn_4%3DG4igA%40mail.gmail.com.


--
Thank you,

Ray
TestLex.zip

Arsen Chaloyan

unread,
Aug 7, 2020, 8:49:44 PM8/7/20
to UniMRCP
Hi Raymond,

Sorry for the late response, I just had a chance to review messages posted to the discussion group.

Before moving to analysis of the supplied data, I'd like to mention that in the meantime the exact same setup has successfully been tested by another organization, a partner of Avaya also having a good knowledge of UniMRCP. I asked them to provide a sample application/configuration an hour ago and received an interim response: coordinating with their engineering team...

Now, let's see what can be deduced from the VXI logs.

> With the xml semantics, you can see in the session log, the output results from the recognizer do not seem to show the field names.

The NLSML result is dumped as intended in the logs. It is not clear to me why individual fields cannot be retrieved, though.

> I think tried json, the results seem better, when I dump the object, I can see the individual fields in the object, but I cannot seem to access them. I have tried various access options. 

Right, the following is a good indication

@2020-07-27 09:40:47,015||FINE|LogTag|17943|Session=lexpoclabaep-2020209144039-14|(SessionID: lexpoclabaep-2020209144039-14)**********>>>>>>>>> LASTRESULT  [ 0.interpretation:{
   "transcript": "book a hotel",
   "intent": "BookHotel",
   "slots": "eyJSb29tVHlwZSI6bnVsbCwiQ2hlY2tJbkRhdGUiOm51bGwsIk5pZ2h0cyI6bnVsbCwiTG9jYXRpb24iOm51bGx9",
   "sessionattributes": "e30=",
   "messageformat": "PlainText",
   "message": "What city will you be staying in?",
   "dialogstate": "ElicitSlot",
   "slottoelicit": "Location"
}| 0.interpretation$.0:{
   "transcript": "book a hotel",
   "intent": "BookHotel",
   "slots": "eyJSb29tVHlwZSI6bnVs|lexpoclabaep.ddvc.local####

Have you tried to parse the received JSON data as follows

<var name="result" expr="JSON.parse(objectToString(lastresult$))"/>

and access the individual fields via the composed variable.

Raymond White

unread,
Aug 10, 2020, 9:52:57 AM8/10/20
to uni...@googlegroups.com
Hi Arsen,

Thank you for the kind reply. I was able to parse the JSON and access the fields. Thank you so much for your assistance!

Kind regards,
Ray



--
Thank you,

Ray

Arsen Chaloyan

unread,
Aug 10, 2020, 10:58:30 PM8/10/20
to UniMRCP
Hi Raymond,

Thanks for the update. Glad the problem is resolved.

I also received a sample Lex VXML app/configuration known to work with AAEP, which I am providing attached in case anyone else hits the same problem.

umslex.xml
lexexample.vxml

Raymond White

unread,
Aug 11, 2020, 8:43:55 AM8/11/20
to uni...@googlegroups.com
Thank you  Arsen  for your kindness in replying

Have a wonderful day!

Ray



--
Thank you,

Ray
Reply all
Reply to author
Forward
0 new messages