question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to train from feedback with mitie-sklearn backend

See original GitHub issue

I was building a bot using wit.ai Recently i am planning to move from wit.ai to rasa.ai I exported the expressions from witai and trained them in rasa.ai

When I am trying to retrain the model with new expressions and new/existing intents, I am getting errors like:

  1. ValueError: Found array with 0 sample(s) (shape=(0,)) while a minimum of 1 is required.
  2. ValueError: models greater than splits
  3. ValueError: The number of classes has to be greater than one; got 1

The input file to train is:

curl -XPOST localhost:5000/train -d'{  
   "rasa_nlu_data":{  
      "intent_examples":[  
         {  
            "text":"Receive calls on  vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"Receive calls on vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"Receive calls on vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i make calls to any operator using vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i make calls to any operator using   vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i make calls to any operator using vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i make calls to any operator using   vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i receive calls from any operator on vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i receive calls from other operator on vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i receive calls from any operator on vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"can i receive calls from any operator on   vogapp",
            "intent":"vogapp_call_outgoing",
            "entities":[  

            ]
         },
         {  
            "text":"Can I make a vogapp call without going into the app",
            "intent":"vogapp_call_query",
            "entities":[  

            ]
         },
         {  
            "text":"Can I make a vogapp call without going into the app",
            "intent":"vogapp_call_query",
            "entities":[  

            ]
         }
      ]
   }
}'

There are more than one class and more than one expression for each of them. I am unable to understand why these errors are coming.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tmbocommented, Mar 3, 2017

I ve created a seperate issue describing the underlying issue. #198

0reactions
tmbocommented, Mar 3, 2017

Right, ok the issue is that you need more training samples (i think at least 3 per intent for spacy / mitie-sklearn).

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found