-
Notifications
You must be signed in to change notification settings - Fork 372
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
[Managed LU] Design for serialization & deserialization for dialog.lu file #733
Comments
Suppor for nested intentsNested intents help authors keep related intents + entity definitions together. This will also be helpful for tools like designer to capture and represent intents that aid and are relevant/ applicable to a specific conversation sub-flow. In order to support this, we will leverage markdown's ability to represent sections and subsections. # section
## intentDefintion1
- utterances
- utterances
@ simple entityName
> Additional entity or other LU constructs
> ...
## intentDefintion2
- utterances
- utterances
> additional entity definitions or other LU constructs
> ... Rules for interpretation:
> Enable section parsing (Disabled by default)
> !# @sections
> Direct parser output to merge intents to a single intent named after the section-name (Default behavior)
> !# @sections.mergeIntents
> Provide a different name for merged intents for each section
> !# @sections.mergeIntents = sectionName : \<name-of-section>; intentName : \<name-of-output-intent>
> Valid section definition
# section
## intent1
> start and end of section1
# section1
## intent1
## intent2
> end of section1
# intent3
> Invalid section definition
# section
### intent1
> Invalid section definition
# section
@ simple entityName
> Invalid section definition - in this case, both section and intent1 are interpreted as just two regular intent definitions.
# section
# intent1 Parser interface:
|
@boydc2014 please review. Emilio on our side is doing some work to decouple the core parser into its own library since it is not being used in several places (including LUIS portal, ludown cli, bf cli). We should coordinate this addition with him so we can get it into the right place (repo, branch). |
Functionally, it's all make sense, a few feeback in terms of engineering design
1.1 Usually if you are specifying options\commands in comments section, it must be at beginning, like
1.2 And it would be good to keep the format consistent like
1.3 it probably not suitable for using comments to specific another merged intent name, because you have to duplicate the section name there, perhaps we either just use the section name, or use
So, the flow will always look like this |
So, the first thing to me, is we define a LUResource structure that serves as the base of any toJson operation, and be able to support editing capability (like create\update "_interrupted" intent). |
Moved to R7. Related to #690 |
as new bf lu (ludown) is implemented . so close it. |
The text was updated successfully, but these errors were encountered: