Search code examples
botframeworkbotsazure-language-understanding

Luis Api 'FewLabels' issue


I am developing bot using LUIS framework by Microsoft. I am able to create application, Intent and utterances but when I try to train and publish my bot I am getting following error.

{
  modelId: 'some-model-id',
  details: {
    statusId: 1,
    status: 'Fail',
    exampleCount: 0,
    failureReason: 'FewLabels'
  }
}

Because of this I am not able to publish my LUIS application. I don't find much information about the cause and prevention of this issue in Microsoft documents.


Solution

  • Thanks to @Nicolas R.

    This is because of zero utterances in one of the intent while training. So if you are using Luis Api make sure that each intent atleast have one utterance.

    FewLabels seems to be a wrong failure Reason though, it should be like NoUtterance or ZeroUtterance or a detailed message like Unable to train XYZ application because ABC intent have zero utterances