Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

bf:luis:convert - error for entity names containing blank spaces #472

Closed

Description

@ionut-matei

Hi,

I've notice that in the LUIS portal I can have entities with names containing blank spaces.
However, if I try to convert an .lu file containing such entities I get an error.

Example .lu file:


> LUIS application information
> !# @app.name = DemoApp
> !# @app.desc = desc
> !# @app.versionId = 0.3
> !# @app.culture = en-us
> !# @app.luis_schema_version = 6.0.0

> # Intent definitions

## Demo
- demo

> # Entity definitions

@ ml phone number entity usesFeature phonePL


> # PREBUILT Entity definitions

@ prebuilt datetimeV2

@ prebuilt number

@ prebuilt ordinalV2

@ prebuilt personName


> # Phrase list definitions

@ phraselist phonePL(interchangeable) = 
	- phone,phone number,telephone,cellphone

> # List entities

> # RegEx entities

When I run "bf luis:convert -i demo.lu", I get the following error: "[ERROR] line 16:18 - line 16:24: syntax error: invalid input 'entity' detected. Expecting one of this - end of file, Whitespace, new line".

I am using @microsoft/botframework-cli/4.7.0
I expect that the same LUIS portal restrictions (regarding naming stuff) to apply to the .lu file format.
Is there any way to support this?

Thank you!

Activity

  1. added
    Bot Services
    customer-reported
    on Jan 13, 2020
  2. munozemilio commented on Jan 14, 2020

    @munozemilio
    Contributor

    Hello Alex (@ionut-matei) , thanks for your input. We will address this in the current development cycle.

  3. added
    customer-replied-to
    R8
    on Jan 14, 2020
  4. jspruance commented on Jan 22, 2020

    @jspruance

    Entity names with spaces in them must be contained in quotes, ex: @ ml 'phone number entity'

    When formatted like this the full entity name will appear correctly in the output.

    More details on lu file format here:
    https://github.com/microsoft/botframework-cli/blob/master/packages/lu/docs/lu-file-format.md

  5. munozemilio commented on Feb 3, 2020

    @munozemilio
    Contributor

    phrase lists/ add tests to ensure any entity type can have spaces in name
    Uses features should support spaces
    Roles to support spaces?
    child ml for type definition supports multi-word with quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Bot ServicesR8customer-replied-tocustomer-reported

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions