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 3893dfb WIP.
3893dfb is described below
commit 3893dfb86c57a7d68a7febe149092853978e4f48
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Tue Apr 27 10:36:42 2021 +0300
WIP.
---
README.md | 8 ++++----
.../example/minecraft/utils/NCMinecraftFilesDump.java | 5 +++++
.../minecraft/src/main/resources/minecraft.yaml | 16 ++++++++--------
3 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index e7a522e..6e8081d 100644
--- a/README.md
+++ b/README.md
@@ -123,16 +123,16 @@ macros:
- name: "<ACTION>"
macro: "{turn|switch|dial|control|let|set|get|put}"
- name: "<ENTIRE_OPT>"
- macro: "{entire|full|whole|total|*}"
+ macro: "{entire|full|whole|total|_}"
- name: "<LIGHT>"
- macro: "{all|*} {it|them|light|illumination|lamp|lamplight}"
+ macro: "{all|_} {it|them|light|illumination|lamp|lamplight}"
enabledBuiltInTokens: [] # This example doesn't use any built-in tokens.
elements:
- id: "ls:loc"
description: "Location of lights."
synonyms:
- - "<ENTIRE_OPT> {upstairs|downstairs|*}
{kitchen|library|closet|garage|office|playroom|{dinning|laundry|play} room}"
- - "<ENTIRE_OPT> {upstairs|downstairs|*}
{master|kid|children|child|guest|*} {bedroom|bathroom|washroom|storage}
{closet|*}"
+ - "<ENTIRE_OPT> {upstairs|downstairs|_}
{kitchen|library|closet|garage|office|playroom|{dinning|laundry|play} room}"
+ - "<ENTIRE_OPT> {upstairs|downstairs|_}
{master|kid|children|child|guest|_} {bedroom|bathroom|washroom|storage}
{closet|_}"
- "<ENTIRE_OPT> {house|home|building|{1st|first} floor|{2nd|second}
floor}"
- id: "ls:on"
diff --git
a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java
b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java
index 6334904..4098ae9 100644
---
a/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java
+++
b/nlpcraft-examples/minecraft-mod/src/main/java/org/apache/nplcraft/example/minecraft/utils/NCMinecraftFilesDump.java
@@ -64,6 +64,11 @@ public class NCMinecraftFilesDump {
return path.replaceAll("_", " ");
}
+ /**
+ * App entry point.
+ *
+ * @param args Command line arguments.
+ */
public static void main(String[] args) {
String type = args[0];
String version = args[1];
diff --git a/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
b/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
index 73a5434..57eed4e 100644
--- a/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
+++ b/nlpcraft-examples/minecraft/src/main/resources/minecraft.yaml
@@ -50,46 +50,46 @@ elements:
groups:
- weather
synonyms:
- - "{rain|rainy}"
+ - "{rain|downpour}"
- id: clear
description: Set sunny weather
groups:
- weather
synonyms:
- - "{sun|sunny|clear sky}"
+ - "{sun|clear sky}"
- id: thunder
description: Set stormy weather
groups:
- weather
synonyms:
- - "{thunder|storm|stormy}"
+ - "{thunder|thunderstorm|storm|hurricane}"
# Time intent
- id: morning
groups:
- time
synonyms:
- - "{morning}"
+ - "morning"
- id: day
groups:
- time
synonyms:
- - "{day}"
+ - "day"
- id: afternoon
groups:
- time
synonyms:
- - "{afternoon|noon}"
+ - "{{late|_} afternoon|noon|midday}"
- id: evening
groups:
- time
synonyms:
- - "{evening}"
+ - "{late|_} {evening}"
- id: night
groups:
- time
synonyms:
- - "{night}"
+ - "{night|midnight|late evening}"
- id: midnight
groups:
- time