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
The following commit(s) were added to refs/heads/master by this push:
new cdf5864 WIP.
cdf5864 is described below
commit cdf5864c5aade71074b441491235cde8faa02de7
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Tue Apr 27 22:43:29 2021 +0300
WIP.
---
.../org/apache/nlpcraft/example/minecraft/MinecraftModel.kt | 11 ++++++++++-
nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml | 8 ++++----
2 files changed, 14 insertions(+), 5 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 745d792..5191776 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
@@ -44,7 +44,16 @@ class MinecraftModel : NCModelFileAdapter("minecraft.yaml") {
"make it rain",
"cast the sun rays",
"it's rather rainy today",
- "heavy storm is coming"
+ "heavy storm is coming",
+ "make it drizzle now",
+ "start downpour",
+ "start the rain",
+ "make the raindrops",
+ "start the raindrops downpour",
+ "make it a wet weather",
+ "make it a drizzle weather conditions",
+ "make it balmy",
+ "set it to sunny climate"
)
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 5d0a844..50a6fe5 100644
--- a/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
+++ b/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
@@ -44,19 +44,19 @@ elements:
# Weather intent
- id: weather:action
synonyms:
- - "{make|start|cast}"
+ - "{set|make|start|cast}
{it|weather|temperature|climate|mode|{weather|_} condition|_}"
- id: rain
- description: Set rain weather
+ description: Set rainy weather
groups:
- weather
synonyms:
- - "{rain|downpour}"
+ -
"{rain|downpour|rainy|wet|sprinkle|precipitation|raindrop|drizzle|shower|rainstorm}
{downpour|_}"
- id: clear
description: Set sunny weather
groups:
- weather
synonyms:
- - "{sun|clear sky}"
+ - "{sun|sunny|balmy|clear|bright|clear sky}"
- id: thunder
description: Set stormy weather
groups: