Skip to content

Commit

Permalink
feat(server): context (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed Mar 13, 2022
1 parent bf9bf23 commit a9a43ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/train.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ export default () => new Promise(async (resolve, reject) => {

const nlp = container.get('nlp')
const nluManager = container.get('nlu-manager')
// const slotManager = container.get('slot-manager')

nluManager.settings.log = false
nluManager.settings.trainByDomain = true
// slotManager.settings.
nlp.settings.forceNER = true // https://github.com/axa-group/nlp.js/blob/master/examples/17-ner-nlg/index.js
nlp.settings.calculateSentiment = true
nlp.settings.modelFileName = modelFileName
Expand Down
11 changes: 10 additions & 1 deletion skills/leon/color/nlu/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,24 @@
"I think {{ color }} is a good color, but I prefer blue and pink. Don't ask me why..."
],
"output_context": [
"why"
{
"action": "leon.color.why",
"lifespan": 1
}
]
},
"why": {
"input_context": [
"leon.color.favorite_color"
],
"utterance_samples": [
"Why do you like this color?",
"Why this colour?",
"Why not another one?",
"Why?"
],
"answers": [
"Because blue and pink are beautiful. Look at my logo..."
]
},
"color_meaning": {
Expand Down

0 comments on commit a9a43ac

Please sign in to comment.