mloubser
(Melinda Loubser)
2
It is possible, but the documentation is not clear. See these issues:
Try this:
curl --request POST \
--url http://localhost:5005/model/train \
--header 'Content-Type: application/x-yaml' \
--data '---
intents:
- greet
language: en
nlu:
- examples: |
- hi
- hello
intent: greet
- examples: |
- goodbye
- bye
intent: bye
pipeline:
- name: WhitespaceTokenizer
- name: CountVectorsFeaturizer
- name: DucklingHTTPExtractor
- epochs: 1
name: DIETClassifier
policies:
- name: RulePolicy
responses:
utter_greet:
- text: Hi
rules:
- rule: "My rule"
steps:
- intent: greet
- action: utter_greet
stories:
- steps:
- intent: greet
- action: utter_greet
story: "My story"
'