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 15:10:00 UTC

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

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

Sergey Kamov resolved NLPCRAFT-118.
-----------------------------------
      Assignee: Aaron Radzinski  (was: Sergey Kamov)
    Resolution: Fixed

Ready for review in NLPCRAFT-120 (based on NLPCRAFT-41)

> 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: Aaron Radzinski
>            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)