[ https://issues.apache.org/jira/browse/NLPCRAFT-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Kamov updated NLPCRAFT-37: --------------------------------- Description: 1) We can't use super.onMatchedIntent in implementations because NCModel is the interface. Maybe better to have constant default values? 2) If onMatchedIntent returns false and single variant found, we have an endless cycle. Users can check it on the probe side, but maybe safer to check it on the server-side and throw some error? 3) onMatchedIntent should return boolean and sometimes throw an exception. Maybe better to return some enumeration values? (Note that some `on` methods can throw rejection exception, but some can't. ) was: 1) We can't use super.onMatchedIntent in implementations because NCModel is interface. Maybe better to have constant default values? 2) If onMatchedIntent returns false and single variant found, we have endless cycle. User can check it on probe side, but maybe safer to check it on server side and throw some error? > NCModel#onMatchedIntent behaviour > --------------------------------- > > Key: NLPCRAFT-37 > URL: https://issues.apache.org/jira/browse/NLPCRAFT-37 > Project: NLPCraft > Issue Type: Improvement > Components: probe > Reporter: Sergey Kamov > Assignee: Aaron Radzinski > Priority: Major > Fix For: 0.6.0 > > > 1) We can't use super.onMatchedIntent in implementations because NCModel is > the interface. > Maybe better to have constant default values? > 2) If onMatchedIntent returns false and single variant found, we have an > endless cycle. > Users can check it on the probe side, but maybe safer to check it on the > server-side and throw some error? > 3) onMatchedIntent should return boolean and sometimes throw an exception. > Maybe better to return some enumeration values? (Note that some `on` methods > can throw rejection exception, but some can't. ) > -- This message was sent by Atlassian Jira (v8.3.4#803005)