You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nlpcraft.apache.org by "Sergey Kamov (Jira)" <ji...@apache.org> on 2020/09/13 20:32:00 UTC

[jira] [Closed] (NLPCRAFT-118) Insufficient NCIntentTerm validation.

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

Sergey Kamov closed NLPCRAFT-118.
---------------------------------

> Insufficient NCIntentTerm validation.
> -------------------------------------
>
>                 Key: NLPCRAFT-118
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-118
>             Project: NLPCraft
>          Issue Type: Task
>          Components: model
>            Reporter: Aaron Radzinski
>            Assignee: Sergey Kamov
>            Priority: Blocker
>             Fix For: 0.7.0
>
>
> This code currently passes the validation (from WeatherModel):
> {code:java}
>     public NCResult onMatch(
>         NCIntentMatch ctx,
>         @NCIntentTerm("ind") List<NCToken> indToksOpt,
>         @NCIntentTerm("city") Optional<NCToken> cityTokOpt_extra, /* SHOULD BE INVALID */
>         @NCIntentTerm("city") Optional<NCToken> cityTokOpt,
>         @NCIntentTerm("date") Optional<NCToken> dateTokOpt
>     ) {
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)