In this part of the lab you will need to improve dmAppointment.ts
application from Lab II. Create a copy of it dmAppointmentPlus.ts
and
‘route’ index.tsx
to it. Now you will need to implement some
improvements.
Note: try not to copy and paste the same code, use functions to abstract certain blocks.
- Make sure that system handles unexpected input (out-of-grammar situations).
- A opportunity to say “help” at any point when system is recognising something. You should provide a help message (anything you like) and return the user to the state where they were before asking for help.
- In a stepwise fashion change the formulations for your re-prompts
in case of noinput (ASR sends
NOINPUT
) event and out-of-grammar situations. - If the user is silent and not reacting to 3 reprompts, return to
the
init
state.
- Implement confidence threshold for speech recognition of user
inputs.
- If
- the confidence for the top-ranked recognition hypothesis is higher than threshold X
- then
- assume that the speech recogniton is correct is correct and proceed
- else
- ask the user whether the top-ranked recognition hypothesis is what the user wants.
- Test the system and adjust the threshold.
- Can you implement a similar threshold for natural language
understanding? How can it be combined with the ASR threshold?
Justify your choice and provide a sketch implementation.
Note: The system’s grounding question can to be perceptual (“Did you say ‘create a meeting’?”) or semantic (You want to create a meeting, is that correct?).
Redeploy your app to Github pages and submit two links: 1) Github pages URL and 2) URL of your repository.