You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/08/24 21:09:41 UTC
[incubator-nlpcraft] branch NLPCRAFT-384 updated: WIP
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-384
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-384 by this push:
new 5d2ad16 WIP
5d2ad16 is described below
commit 5d2ad16c5d9c92fd6a4da17ace4206387e713c5d
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Tue Aug 24 14:08:30 2021 -0700
WIP
---
nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml b/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml
index 57f156d..8f8bde7 100644
--- a/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml
+++ b/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml
@@ -50,12 +50,7 @@ elements:
- id: "x:addr:num"
synonyms:
- - "^^{# == 'nlpcraft:num' && meta_tok('nlpcraft:num:unit') == null && meta_tok('nlpcraft:num:isequalcondition')}^^"
-
-
- - id: addr
- synonyms:
- - "^^{# == 'addr:num'}^^ {^^{is_alphanum(tok_txt))}^^}[1,3] ^^{# == 'addr:kind'}^^"
+ - "^^{tok_id() == 'nlpcraft:num' && meta_tok('nlpcraft:num:unit') == null && meta_tok('nlpcraft:num:isequalcondition')}^^"
- id: "x:addr:st"
synonyms:
@@ -63,7 +58,7 @@ elements:
- id: "x:addr"
synonyms:
- - "^^[num]{# == 'x:addr:num'}^^ ^^[name]{# == 'x:addr:st'}^^ ^^[kind]{# == 'x:addr:kind'}^^"
+ - "^^[num]{tok_id() == 'x:addr:num'}^^ ^^[name]{tok_id() == 'x:addr:st'}^^ ^^[kind]{tok_id() == 'x:addr:kind'}^^"
- id: "x:hey"
description: "NLI prompt"