Skip to content

Commit

Permalink
fix(samples): update the type of Training phases per (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong Ma authored and jkwlui committed Jul 17, 2018
1 parent 086256b commit a02b330
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions dialogflow/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ function createIntents(projectId) {

// The phrases for training the linguistic model.
const pizzaPhrases = [
{type: 'TYPE_EXAMPLE', parts: [{text: 'Order pizza'}]},
{type: 'TYPE_EXAMPLE', parts: [{text: 'Pizza'}]},
{type: 'EXAMPLE', parts: [{text: 'Order pizza'}]},
{type: 'EXAMPLE', parts: [{text: 'Pizza'}]},
{
type: 'TYPE_EXAMPLE',
type: 'EXAMPLE',
parts: [
{text: 'Get me a '},
{text: 'large', entityType: '@size', alias: 'size'},
Expand All @@ -385,7 +385,7 @@ function createIntents(projectId) {
],
},
{
type: 'TYPE_EXAMPLE',
type: 'EXAMPLE',
parts: [
{text: "I'd like to order a "},
{text: 'large', entityType: '@size', alias: 'size'},
Expand All @@ -394,7 +394,7 @@ function createIntents(projectId) {
],
},
{
type: 'TYPE_TEMPLATE',
type: 'TEMPLATE',
parts: [{text: "I'd like a @size:size pizza"}],
},
];
Expand Down Expand Up @@ -498,7 +498,7 @@ function createIntents(projectId) {
// template.
const changeDeliveryAddressPhrases = [
{
type: 'TYPE_EXAMPLE',
type: 'EXAMPLE',
parts: [
{text: 'Change address to '},
{
Expand All @@ -509,7 +509,7 @@ function createIntents(projectId) {
],
},
{
type: 'TYPE_EXAMPLE',
type: 'EXAMPLE',
parts: [
{
text: '1 1st st, new york, ny',
Expand Down Expand Up @@ -592,10 +592,10 @@ function createIntents(projectId) {
};

const placeOrderPhrases = [
{type: 'TYPE_EXAMPLE', parts: [{text: 'check'}]},
{type: 'TYPE_EXAMPLE', parts: [{text: 'confirm'}]},
{type: 'TYPE_EXAMPLE', parts: [{text: 'yes'}]},
{type: 'TYPE_EXAMPLE', parts: [{text: 'place order'}]},
{type: 'EXAMPLE', parts: [{text: 'check'}]},
{type: 'EXAMPLE', parts: [{text: 'confirm'}]},
{type: 'EXAMPLE', parts: [{text: 'yes'}]},
{type: 'EXAMPLE', parts: [{text: 'place order'}]},
];

const placeOrderIntent = {
Expand Down Expand Up @@ -636,10 +636,10 @@ function createIntents(projectId) {
};

const cancelOrderPhrases = [
{type: 'TYPE_EXAMPLE', parts: [{text: 'cancel'}]},
{type: 'TYPE_EXAMPLE', parts: [{text: 'no'}]},
{type: 'TYPE_EXAMPLE', parts: [{text: 'cancel order'}]},
{type: 'TYPE_EXAMPLE', parts: [{text: "I don't want it any more"}]},
{type: 'EXAMPLE', parts: [{text: 'cancel'}]},
{type: 'EXAMPLE', parts: [{text: 'no'}]},
{type: 'EXAMPLE', parts: [{text: 'cancel order'}]},
{type: 'EXAMPLE', parts: [{text: "I don't want it any more"}]},
];

const cancelOrderIntent = {
Expand Down

0 comments on commit a02b330

Please sign in to comment.