-
Notifications
You must be signed in to change notification settings - Fork 52
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
[FR] Add implicit behavior to CopyUtil.copy_intent_to_agent()? #78
Comments
@kmaphoenix @MRyderOC @cgibson6279 inviting comments |
Good catch! As you mentioned the basic solution would be adding a boolean parameter like
At the very least, this function should copy all the training phrases without annotations |
@MRyderOC thank you for the feedback!
The minimum I'm aiming for is copying the training phrases with annotations - seems like much more work to manually re-tag the phrases than to re-namespace and re-run the script. |
Situation:
A tagged intent is dependent on 1+ entity types. Current behavior of copy_intent_to_agent()>_remap_parameters_in_intent() is to ONLY create or update the intent itself without consideration to the entity type dependencies. Entity type dependencies absent from the destination agent cause the method to throw an error when attempting to retag the intent's training phrases with an entity type in the dest agent with the same display name.
Proposal:
Edit copy_intent_to_agent() to create or update entity type dependencies and log the changes, possibly adding a parameter to make this behavior optional. Work started in branch feature/copy_intent_update
Alternative:
Add error handling around CopyUtil line 338 providing more explicit explanation than KeyError:<entity_type.display_name>
Ask:
Thoughts? Do you prefer the proposal or alternative?
The text was updated successfully, but these errors were encountered: