Sergey Kamov created NLPCRAFT-516:
-------------------------------------

             Summary: Used term entities issue.
                 Key: NLPCRAFT-516
                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-516
             Project: NLPCraft
          Issue Type: Bug
          Components: Main API
            Reporter: Sergey Kamov
            Assignee: Aaron Radzinski
             Fix For: 1.0.0


Look at org.apache.nlpcraft.models.NCIntCalcModelSpec

{color:#9e880d}@NCIntent{color}(
{color:#067d17}"intent=calc options=\{ 'ordered': false }" {color}+
{color:#067d17}" term(x)=\{# == 'stanford:number'} " {color}+
{color:#067d17}" term(op)=\{# == 'nlp:token' && has(list('+', '-', '*', '/'), 
meta_ent('nlp:token:text')) == true} " {color}+
{color:#067d17}" term(y)=\{# == 'stanford:number'}"
{color})

 

works fine

but

{color:#9e880d}@NCIntent{color}(
{color:#067d17}"intent=calc options=\{ 'ordered': false }" {color}+
{color:#067d17}" term(x)=\{# == 'stanford:number'} " {color}+
{color:#067d17}" term(op)=\{has(list('+', '-', '*', '/'), 
meta_ent('nlp:token:text')) == true} " {color}+
{color:#067d17}" term(y)=\{# == 'stanford:number'}"
{color})

doesn't work, because op is empty list. (Used term entities are empty)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to