You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nlpcraft.apache.org by "Aaron Radzinski (Jira)" <ji...@apache.org> on 2022/10/17 20:12:00 UTC

[jira] [Resolved] (NLPCRAFT-516) Used term entities issue.

     [ https://issues.apache.org/jira/browse/NLPCRAFT-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Radzinski resolved NLPCRAFT-516.
--------------------------------------
    Resolution: Fixed

Fixed in master.

> 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
>            Priority: Major
>             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)