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 2021/03/05 10:24:00 UTC

[jira] [Commented] (NLPCRAFT-260) Invalid sentence variants detected.

    [ https://issues.apache.org/jira/browse/NLPCRAFT-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17295962#comment-17295962 ] 

Sergey Kamov commented on NLPCRAFT-260:
---------------------------------------

I can't reproduce

1) I have merged (locally) master in 91

2) ask `make a box of sand with the size of 2 10 meters in front of me`

3) winner seems ok (see below)

 

Could you provide another example or add a failed test?

 

 

-------

make a box of sand with the size of 2 10 meters in front of me

Mar-05|13:11:21|INF| Intent 'fillIntent' for variant #12 selected as the 'best match'.

Mar-05|13:11:21|INF| Parsing variant #12 of 12 for: 'make a box of sand with the size of 2 10 meters in front of me'
+===========================================================================================================================================================================================================================================================================================================+
| idx | origtext | lemma | pos | quoted | stopword | freeword | wordindexes | direct | sparsity | token data |
+===========================================================================================================================================================================================================================================================================================================+
| 0 | make | make | VB | false | false | false | [0] | true | 0 | <<fill:action>> id=fill:action |
| 1 | a | a | DT | false | true | false | [1] | true | 0 | |
| 2 | box | box | NN | false | false | false | [2] | true | 0 | <<square>> id=square |
| 3 | of | of | IN | false | false | true | [3] | true | 0 | |
| 4 | sand | sand | NN | false | false | false | [4] | true | 0 | <<mc:item>> id=mc:item |
| 5 | with the | with the | --- | false | true | false | [5,6] | true | 0 | |
| 6 | size of 2 | size of 2 | --- | false | false | false | [7,8,9] | true | 0 | <<fill:length>> id=fill:length, parts=[id=nlpcraft:nlp|id=nlpcraft:nlp|id=nlpcraft:num, aliases='distance,length'] |
| 7 | 10 meters in front of me | 10 meter in front of i | --- | false | false | false | [10,11,12,13,14,15] | true | 0 | <<position:front>> id=position:front, parts=[id=nlpcraft:num, aliases='distance'|id=nlpcraft:nlp|id=nlpcraft:nlp|id=nlpcraft:nlp|id=mc:player, aliases='player'] |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

 

> Invalid sentence variants detected.
> -----------------------------------
>
>                 Key: NLPCRAFT-260
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-260
>             Project: NLPCraft
>          Issue Type: Bug
>          Components: probe
>            Reporter: Sergey Kamov
>            Assignee: Sergey Kamov
>            Priority: Major
>             Fix For: 0.7.5
>
>
> minecraft example model
> Sentence: {color:#1d1c1d}make a box of sand with the size of 2 10 meters in front of me.{color}
> {color:#1d1c1d}detected:{color}
> {quote}size of 10 meters
> 2 in front of me{quote}
> should be
> {quote} size of 2
> 10 meters in front of me{quote}



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