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 3e57dd4  WIP.
3e57dd4 is described below

commit 3e57dd4c57303c320c84a46a32c5ccca0c80a8e3
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Sun Apr 18 00:37:17 2021 +0300

    WIP.
---
 .../org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala   | 2 +-
 .../scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdl.g4     | 2 +-
 .../org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.interp  | 2 +-
 .../org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.java    | 2 +-
 .../model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
index 2389758..9ac0234 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
@@ -1102,7 +1102,7 @@ trait NCIdlCompilerBase {
             case "tok_is_direct" ⇒ arg1Tok() match { case x ⇒ stack.push(() ⇒ 
{ Z(toToken(x().value).isDirect, 1) }) }
             case "tok_is_permutated" ⇒ arg1Tok() match { case x ⇒ 
stack.push(() ⇒ { Z(!toToken(x().value).isDirect, 1) }) }
             case "tok_is_english" ⇒ arg1Tok() match { case x ⇒ stack.push(() ⇒ 
{ Z(toToken(x().value).isEnglish, 1) }) }
-            case "tok_is_freeWord" ⇒ arg1Tok() match { case x ⇒ stack.push(() 
⇒ { Z(toToken(x().value).isFreeWord, 1) }) }
+            case "tok_is_freeword" ⇒ arg1Tok() match { case x ⇒ stack.push(() 
⇒ { Z(toToken(x().value).isFreeWord, 1) }) }
             case "tok_is_quoted" ⇒ arg1Tok() match { case x ⇒ stack.push(() ⇒ 
{ Z(toToken(x().value).isQuoted, 1) }) }
             case "tok_is_stopword" ⇒ arg1Tok() match { case x ⇒ stack.push(() 
⇒ { Z(toToken(x().value).isStopWord, 1) }) }
             case "tok_is_swear" ⇒ arg1Tok() match { case x ⇒ stack.push(() ⇒ { 
Z(toToken(x().value).isSwear, 1) }) }
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdl.g4
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdl.g4
index 4d2d5dd..abfd465 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdl.g4
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdl.g4
@@ -159,7 +159,7 @@ FUN_NAME
     | 'tok_is_direct'
     | 'tok_is_permutated'
     | 'tok_is_english'
-    | 'tok_is_freeWord'
+    | 'tok_is_freeword'
     | 'tok_is_quoted'
     | 'tok_is_stopword'
     | 'tok_is_swear'
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.interp
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.interp
index 9924ca5..4d3a7ac 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.interp
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.interp
@@ -172,4 +172,4 @@ mode names:
 DEFAULT_MODE
 
 atn:
-[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 54, 1498, 8, 1, 
4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 
9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 
14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 
19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 
25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 
30, 4, 31, 9, 31, 4, 32, 9, [...]
\ No newline at end of file
+[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 54, 1498, 8, 1, 
4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 
9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 
14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 
19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 
25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 
30, 4, 31, 9, 31, 4, 32, 9, [...]
\ No newline at end of file
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.java
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.java
index 2e97845..59cd53a 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.java
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/antlr4/NCIdlLexer.java
@@ -304,7 +304,7 @@ public class NCIdlLexer extends Lexer {
                
"\7v\2\2\u0150\u0151\7q\2\2\u0151\u0152\7m\2\2\u0152\u0153\7a\2\2\u0153"+
                
"\u0154\7k\2\2\u0154\u0155\7u\2\2\u0155\u0156\7a\2\2\u0156\u0157\7h\2\2"+
                
"\u0157\u0158\7t\2\2\u0158\u0159\7g\2\2\u0159\u015a\7g\2\2\u015a\u015b"+
-               
"\7Y\2\2\u015b\u015c\7q\2\2\u015c\u015d\7t\2\2\u015d\u04e5\7f\2\2\u015e"+
+               
"\7y\2\2\u015b\u015c\7q\2\2\u015c\u015d\7t\2\2\u015d\u04e5\7f\2\2\u015e"+
                
"\u015f\7v\2\2\u015f\u0160\7q\2\2\u0160\u0161\7m\2\2\u0161\u0162\7a\2\2"+
                
"\u0162\u0163\7k\2\2\u0163\u0164\7u\2\2\u0164\u0165\7a\2\2\u0165\u0166"+
                
"\7s\2\2\u0166\u0167\7w\2\2\u0167\u0168\7q\2\2\u0168\u0169\7v\2\2\u0169"+
diff --git 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
index a83d448..4620c7b 100644
--- 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
+++ 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
@@ -65,7 +65,7 @@ class NCIdlFunctionsToken extends NCIdlFunctions {
             mkMeta(truth = s"tok_is_direct() == 
${meta("nlpcraft:nlp:direct")}"),
             mkMeta(truth = s"tok_is_permutated() != 
${meta("nlpcraft:nlp:direct")}"),
             mkMeta(truth = s"tok_is_english() == 
${meta("nlpcraft:nlp:english")}"),
-            mkMeta(truth = s"tok_is_freeWord() == 
${meta("nlpcraft:nlp:freeword")}"),
+            mkMeta(truth = s"tok_is_freeword() == 
${meta("nlpcraft:nlp:freeword")}"),
             mkMeta(truth = s"tok_is_quoted() == 
${meta("nlpcraft:nlp:quoted")}"),
             mkMeta(truth = s"tok_is_stopword() == 
${meta("nlpcraft:nlp:stopword")}"),
             mkMeta(truth = s"tok_is_swear() == ${meta("nlpcraft:nlp:swear")}"),

Reply via email to