@@ -367,10 +367,10 @@ function createIntents(projectId) {
367
367
368
368
// The phrases for training the linguistic model.
369
369
const pizzaPhrases = [
370
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'Order pizza' } ] } ,
371
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'Pizza' } ] } ,
370
+ { type : 'EXAMPLE ' , parts : [ { text : 'Order pizza' } ] } ,
371
+ { type : 'EXAMPLE ' , parts : [ { text : 'Pizza' } ] } ,
372
372
{
373
- type : 'TYPE_EXAMPLE ' ,
373
+ type : 'EXAMPLE ' ,
374
374
parts : [
375
375
{ text : 'Get me a ' } ,
376
376
{ text : 'large' , entityType : '@size' , alias : 'size' } ,
@@ -385,7 +385,7 @@ function createIntents(projectId) {
385
385
] ,
386
386
} ,
387
387
{
388
- type : 'TYPE_EXAMPLE ' ,
388
+ type : 'EXAMPLE ' ,
389
389
parts : [
390
390
{ text : "I'd like to order a " } ,
391
391
{ text : 'large' , entityType : '@size' , alias : 'size' } ,
@@ -394,7 +394,7 @@ function createIntents(projectId) {
394
394
] ,
395
395
} ,
396
396
{
397
- type : 'TYPE_TEMPLATE ' ,
397
+ type : 'TEMPLATE ' ,
398
398
parts : [ { text : "I'd like a @size:size pizza" } ] ,
399
399
} ,
400
400
] ;
@@ -498,7 +498,7 @@ function createIntents(projectId) {
498
498
// template.
499
499
const changeDeliveryAddressPhrases = [
500
500
{
501
- type : 'TYPE_EXAMPLE ' ,
501
+ type : 'EXAMPLE ' ,
502
502
parts : [
503
503
{ text : 'Change address to ' } ,
504
504
{
@@ -509,7 +509,7 @@ function createIntents(projectId) {
509
509
] ,
510
510
} ,
511
511
{
512
- type : 'TYPE_EXAMPLE ' ,
512
+ type : 'EXAMPLE ' ,
513
513
parts : [
514
514
{
515
515
text : '1 1st st, new york, ny' ,
@@ -592,10 +592,10 @@ function createIntents(projectId) {
592
592
} ;
593
593
594
594
const placeOrderPhrases = [
595
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'check' } ] } ,
596
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'confirm' } ] } ,
597
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'yes' } ] } ,
598
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'place order' } ] } ,
595
+ { type : 'EXAMPLE ' , parts : [ { text : 'check' } ] } ,
596
+ { type : 'EXAMPLE ' , parts : [ { text : 'confirm' } ] } ,
597
+ { type : 'EXAMPLE ' , parts : [ { text : 'yes' } ] } ,
598
+ { type : 'EXAMPLE ' , parts : [ { text : 'place order' } ] } ,
599
599
] ;
600
600
601
601
const placeOrderIntent = {
@@ -636,10 +636,10 @@ function createIntents(projectId) {
636
636
} ;
637
637
638
638
const cancelOrderPhrases = [
639
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'cancel' } ] } ,
640
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'no' } ] } ,
641
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : 'cancel order' } ] } ,
642
- { type : 'TYPE_EXAMPLE ' , parts : [ { text : "I don't want it any more" } ] } ,
639
+ { type : 'EXAMPLE ' , parts : [ { text : 'cancel' } ] } ,
640
+ { type : 'EXAMPLE ' , parts : [ { text : 'no' } ] } ,
641
+ { type : 'EXAMPLE ' , parts : [ { text : 'cancel order' } ] } ,
642
+ { type : 'EXAMPLE ' , parts : [ { text : "I don't want it any more" } ] } ,
643
643
] ;
644
644
645
645
const cancelOrderIntent = {
0 commit comments