-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: en | ||
pipeline: | ||
- name: WhitespaceTokenizer | ||
intent_tokenization_flag: True | ||
- name: RegexFeaturizer | ||
- name: LexicalSyntacticFeaturizer | ||
- name: CountVectorsFeaturizer | ||
- name: CountVectorsFeaturizer | ||
analyzer: char_wb | ||
min_ngram: 1 | ||
max_ngram: 4 | ||
- name: DIETClassifier | ||
epochs: 1 | ||
policies: | ||
- name: TEDPolicy | ||
epochs: 5 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: "2.0" | ||
|
||
nlu: | ||
- intent: tell_name | ||
examples: | | ||
- my name is [joe](name) | ||
- my name is [bob](name) | ||
- I am [bob](name) | ||
- I am [jim](name) | ||
- I am called [bill](name) | ||
- intent: tell_mood | ||
examples: | | ||
- I am feeling [happy](mood) | ||
- I am quite [happy](mood) | ||
- I feel [sad](mood) | ||
- I feel [happy](mood) | ||
- I am so [sad](mood) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: "2.0" | ||
|
||
stories: | ||
- story: Tell name and mood | ||
steps: | ||
- user: my name is [joe](name) | ||
- bot: hi joe! | ||
- user: I am feeling [happy](mood) | ||
- bot: I'm glad | ||
|
||
- story: Tell name and mood 2 | ||
steps: | ||
- user: my name is [bob](name) | ||
- bot: hi bob! | ||
- user: I am feeling [sad](mood) | ||
- bot: oh dear... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: "2.0" | ||
|
||
intents: | ||
- tell_name | ||
- tell_mood | ||
|
||
entities: | ||
- name | ||
- mood | ||
|
||
responses: | ||
utter_greet: | ||
- text: "hi!" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "2.0" | ||
|
||
stories: | ||
- story: Test with two easy entities | ||
steps: | ||
- user: my name is [joe](name) | ||
- bot: hi joe! | ||
- user: I am feeling [happy](mood) | ||
- bot: I'm glad | ||
|
||
- story: Test with a hard entity | ||
steps: | ||
- user: today I was very [cranky](mood) | ||
- bot: I'm sorry! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "2.0" | ||
nlu: | ||
- intent: greet | ||
examples: | ||
- text: | | ||
Hello, | ||
My name is Christof | ||
- text: | | ||
Hello, | ||
You can call me Christof | ||
- intent: bye | ||
examples: | | ||
- bye, my friend | ||
- cya |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
stories: | ||
- story: story_with_two_equal_or_statements | ||
steps: | ||
- intent: simple | ||
- action: utter_default | ||
- or: | ||
- intent: affirm | ||
- intent: thank_you | ||
- action: utter_greet | ||
- action: utter_default | ||
- or: | ||
- intent: affirm | ||
- intent: thank_you | ||
- action: utter_goodbye | ||
# same name again, same events, same intents, but with entities | ||
- story: story_with_two_equal_or_statements | ||
steps: | ||
- intent: simple | ||
- action: utter_default | ||
- or: | ||
- intent: affirm | ||
entities: | ||
- name: peter | ||
- intent: thank_you | ||
- action: utter_greet |