The Phrase Library and the Backus-Naur Form
 

The Phrase Library

Secondary Concept A Concept is a general idea used to describe a group of Phrases. Phrases are the words for which the program will listen A Listen tells the program to listen to the caller. It will then try to match what they say to the information you enter in the Grammar. A Listen is a Terminal Action. This means it will be the last Action in an Actions List.. For example, "Locations," "Your location," "Where you're located," and "Your address" are all Phrases that could be used within the Concept of "Locations." Phrases Phrases are all the individual ways that a Concept could be described and are the words and phrases for which the program will listen. Phrases are marked with a double quote. Each individual Phrase that makes up the Phrases is marked by a single quote. are drawn from the Phrase Library The Phrase Library is used in the Natural Language module. It is composed of two types of Phrases. The first type of Phrases in the Phrase Library are words that are needed for Secondary Concepts. The second type of Phrases are words that should be ignored by the system. The system will recognize these phrases but will ignore them when it is trying to determine what was said. The more words and phrases recognized, the better the system will run..  Our Phrase Library is empty at the moment, so we need to enter the all the phrases we may want to use.

  1. Right click on the Phrase Library.

  2. Click on the word “Phrases” in the box that pops up.

  3. The Phrase Library will open.  Type in the following phrases.

Backus-Naur Form

When you enter Phrases in the Phrase Library it is a good idea to use Backus-Naur Form Backus-Naur Form is a simplified way to add Phrases with multiple variations. You can use Backus-Naur Form anywhere you need to enter Phrases. Backus-Naur Form is especially helpful in the Natural Language Module because there are so many Phrases to enter. For instructions on using basic Backus-Naur Form, click on the Index tab of the Help and type in "Backus-Naur Form.", or BNF.  Backus-Naur Form is a system by which you can easily enter multiple variations on the same idea within a single phrase.  You can use Backus-Naur Form anywhere you need to enter Phrases, but it is especially helpful in the Natural Language Module Modules are the individual elements you use to create your Information System An Information System is a general term used to describe the product you are designing with this software. This could be any type of system in which you can give information to your callers, such as a Virtual Customer Service Center, a Virtual Technical Support Center, or a Virtual Help Desk.. When you create an Information System, you are crafting a conversation between a computer and a live person. Each Module represents a single, distinct portion of that conversation. The different types of Modules are: Start, List, Multilevel, Overview, Yes/No, Goto A Goto is an Action that sends callers to another Module. A Goto is a Terminal Action. This means it will be the last Action in an Actions List., Hangup A Hangup is an Action that will hang up on callers. A Hangup is a Terminal Action. This means it will be the last Action in an Actions List., Transfer A Transfer is an Action that will hang up on callers. A Transfer is a Terminal Action. This means it will be the last Action in an Actions List., Global, Global Yes/No and Goto Project Each Project you create represents a single Speech Driven Information System. So, if you want to create three separate Information Systems, you will need to create three different Projects.. Each Module has its own unique function and symbol. because there are so many phrase variations to enter.

Here is a very basic lesson for using Backus-Naur Form:

[ ] - words or phrases entered between brackets are optional and may or may not be included in the final phrases.

( ) - words or phrases entered between parenthesis will be included in the final phrases.

  | - pipes are used to separate phrases that can be used in place of one another.

For example, the phrase [I] (would like|want|need|am looking for) can mean any of the following:

The “I” is in brackets [ ] and therefore is optional.  The words “would like,”  “want,”  “need,”  “am looking for” will be included because they are within parenthesis.  The pipes function like saying “or,” so (would like|want|need|am looking for) if read as “would like” or “want” or “need” or “am looking for.”

So let’s add some more phrases to the Phrase Library, using the BNF.

  1.  
  1. Your phrase library should still be open.  If it is not, open it now by right clicking on the Phrase Library and clicking on the word “Phrases” when it pops up.

  2. Type in the following:

The Phrase Library (Part 2)

The phrases you need for Secondary Concepts are all entered, but the Phrase Library also holds words that should be ignored by the system.  In this case, these include Phrases such as “I would like” and “for my.”  The system will recognize these phrases but will ignore them when it is trying to determine what was said.  The more words and phrases recognized, the better the system will run.

  1. Type in the following:

So if someone called in and said “I would like something for my dog to chew on, “  the system would break the sentence apart as follows:

“I would like”

(ignored)

“to buy”

(ignored)

“something”

(ignored)

“for my”

(ignored)

“dog”

(Primary Concept - dog)

“to chew on”

(Secondary Concept- toy)

 

The system would then direct the caller to the Response A Response gives your customers an answer to their question or directs them to another Module that has the information they need. A Response can contain as many Voxes as you would like AND/OR a Goto OR a Transfer OR a Hangup. for “Dog”-“Toy” and would not be confused by any unrecognized words.

  1. When you are done entering all the phrases, click OK.

Adding phrases to Secondary Concepts

  1. Now you need to add phrases to the Secondary Concepts.  To do so, expand the “Dog” Primary Concept and each of the Secondary Concepts under it.  Right click on the word “Phrases” under the secondary concept “Toy” and select “Phrases,”  A Select Phrases box should appear like this:

  2. Select the phrases correlating to Dog-Toy by clicking on the phrase.  You can add multiple phrases by clicking on each one separately to highlight them.  To de-select, click on the phrase again.

  3. For the Primary Concept “Dog” and the Secondary Concept “Toy” appropriate phrases are (chew|gnaw) on, ball and [stuffed|squeak|squeaky|rubber|plastic|plush] toy.

  4. After you have selected the appropriate phrases, click OK to apply them.

  5. Set up phrases for each of the remaining Secondary Concepts under “Dog”, and also under “Bird” and “Rodent”

Remember, each Secondary Concept is unique to its Primary Concept.  Expand the phrases under “Bird”-“Food”  and “Dog”-“Food” so you can compare them.

You’ll notice that even though the Secondary Concept is “Food” for both, the phrases each one uses is different.

You can see how useful the Backus-Naur Form is by clicking once on the phrase “[dog|doggy|puppy] (food|chow).

If you look in the Properties Properties allow you to control specific details of the program and how it runs. For example, the "Allow Barge-in Barge-in allows the caller to interrupt the system and jump ahead. If Barge-in is disabled, the caller will have to listen to every single Vox before they are allowed to reply." property detirmines whether the caller will be allowed to interrupt the system and jump ahead without listening to every single Vox A Vox is an Action that plays a sound file. You can record a Vox in your own voice directly from the Speech Driven Information System. You can also use the Audio Manager to import recordings or sound effects that you have obtained from other sources.. All the Properties are automatically set to their default value when you create a new Project. You can change the Properties for a specific item from the Properties Table, or you can change Properties for the entire Project from the Project Properties box. Table, you’ll notice that there are eight variations on how this single phrase can be interpreted: “Dog food,”  “Doggy Food,” “Puppy Food,” “Dog Chow,” “Doggy Chow,” "Puppy Chow,” “Food,” and “Chow”

Once you have finished entering phrases into the Phrase Library, you can always go back and add or modify them.  To do so, right click on the Phrase Library and select “Phrases.”  Now, you can add another phrase, or delete/modify one that has already been entered.

Save your changes by clicking File>Save.


Complete Help Topic List | Speech Platform Product Information