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

Comments

Fixes to LU format for phraselist handling as well introduction of new parser flags for collision handling for labels#979

Merged
munozemilio merged 4 commits intomainfrom
vishwac/lufixes
Sep 16, 2020
Merged

Fixes to LU format for phraselist handling as well introduction of new parser flags for collision handling for labels#979
munozemilio merged 4 commits intomainfrom
vishwac/lufixes

Conversation

@vishwacsena
Copy link
Contributor

  • Includes fix to an issue where imported phraselists were not converted to LUIS JSON correctly. Old output still had "modelName": "phraseListName" which would not work and this instead needs to be "featureName": "phraseListName".
  • Add new capability to LU format to signal parser how to handle collisions for entity labels.
> !# @parser.OnAmbiguousLabels = takeFirst | takeLast | takeLongestLabel (default) | throwAnError

takeFirst will accept the first label. As an example, the first label vishwac for userName will be accepted.

> !# @parser.OnAmbiguousLabels = takeFirst

# intent1
- my name is {@userName = vishwac} sena

# intent1
- my name is {@userName = vishwac sena}

takeLast will accept the last label in case of collision. As an example, the last label vishwac sena for userName will be accepted.

> !# @parser.OnAmbiguousLabels = takeLast

# intent1
- my name is {@userName = vishwac} sena

# intent1
- my name is {@userName = vishwac sena}

takeLongestLabel will accept vishwac sena since that is the longest label for userName

> !# @parser.OnAmbiguousLabels = takeLongestLabel

# intent1
- my name is {@userName = vishwac} sena

# intent1
- my name is {@userName = vishwac sena}

throwAnError will throw an exception when duplicate overlapping labels are found for the utterance.

@munozemilio munozemilio merged commit a020a62 into main Sep 16, 2020
@munozemilio munozemilio deleted the vishwac/lufixes branch September 16, 2020 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants