This is an automated email from the ASF dual-hosted git repository. aradzinski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit d67861737322cc1005d27ff9795c8bc263287634 Author: Aaron Radzinzski <[email protected]> AuthorDate: Tue Apr 27 22:55:59 2021 +0300 WIP. --- .../org/apache/nlpcraft/example/minecraft/MinecraftModel.kt | 5 ++++- nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml | 10 ++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt index 5191776..6e2ffe9 100644 --- a/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt +++ b/nlpcraft-examples/minecraft/src/main/kotlin/org/apache/nlpcraft/example/minecraft/MinecraftModel.kt @@ -53,7 +53,10 @@ class MinecraftModel : NCModelFileAdapter("minecraft.yaml") { "make it a wet weather", "make it a drizzle weather conditions", "make it balmy", - "set it to sunny climate" + "set it to sunny climate", + "make it super stormy", + "start a hurricane", + "cast super squall" ) fun onWeatherMatch(ctx: NCIntentMatch, @NCIntentTerm("arg") tok: NCToken): NCResult { checkAmbiguous(ctx) diff --git a/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml b/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml index 115c2e7..c3c7c11 100644 --- a/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml +++ b/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml @@ -62,7 +62,7 @@ elements: groups: - weather synonyms: - - "{thunder|thunderstorm|storm|hurricane}" + - "{super|_} {thunder|thunderstorm|storm|stormy|cyclone|hurricane|gale|tornado|squall|typhoon|superstorm|hailstrorm}" # Time intent - id: time:action @@ -82,22 +82,20 @@ elements: groups: - time synonyms: - - "{{late|_} afternoon|noon|midday}" + - "{{early|late|_} afternoon|noon|midday}" - id: evening groups: - time synonyms: - - "{late|_} {evening}" + - "{early|_} {evening}" - id: night groups: - time synonyms: - - "{night|midnight|late evening}" + - "late evening" - id: midnight groups: - time - synonyms: - - "{midnight}" # Give intent - id: give:action
