Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for entity hierarchies in compare #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 19, 2020

  1. Adds support for entity hierarchies in compare

    This change allows users to declaratively specify hierarchical entities in their expected utterance results. For example, a user may declare the following:
    
    ```json
    {
      "text": "Order a pepperoni pizza",
      "intent": "OrderFood",
      "entities": {
        "entity": "FoodItem",
        "startPos": 8,
        "endPos": 22,
        "children": [
          {
            "entity": "Topping",
            "startPos": 8,
            "endPos": 16
          },
          {
            "entity": "FoodType",
            "startPos": 18,
            "endPos": 22
          }
        ]
      }
    }
    ```
    
    This would result in 3 test cases, one for the parent entity (the "FoodItem" entity), and two additional test cases for each of the two nested entities ("FoodItem::Topping" and "FoodItem::FoodType").
    
    Child entity type names are prefixed by their parent entity type names in the format `parentType::childType`. As such, the recursive entity parsing for the LUIS V3 provider has been updated to use this convention.
    
    Fixes microsoft#335
    rozele committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    f8a8ab1 View commit details
    Browse the repository at this point in the history