botpress / nlu

This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
22 stars 21 forks source link

Adding "none" as a training phrase will make integers match the intent #204

Closed Gordon-BP closed 2 years ago

Gordon-BP commented 2 years ago

Make sure the issue is NLU related

Operating system

macOS

Product used

NLU Server

Deploy Option

Binary

Version

0.1.8

Configuration File

No response

CLI Arguments

No response

Environment variables

No response

Description of the bug

When an intent has "none" as a training phrase, it will erroneously trigger when a user enters a number.

To reproduce:

  1. Create a new intent and add "none" as the only training phrase.
image
  1. Train the bot, then send a message with a number 5 digits or shorter in length. The bot will match that message to the new intent.
image

I think this has something to do with the NLU extracting the number as a system entity automatically, and then matching the intent for some reason.

franklevasseur commented 2 years ago

wont fix