| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Small comment on code optimization
Sorry, something went wrong.
|
|
||
| const matchedUtterence = luObj.utterances.find(e => e.intent === intent) | ||
| const fileContent = `# ${intent}\r\n${parseUtterancesToLu([matchedUtterence], luObj)}` | ||
| let cloned = {...(isAbsolutePath ? importFile : filePathOrFound[0])} |
There was a problem hiding this comment.
const, also does this need to be a deep clone?
Sorry, something went wrong.
There was a problem hiding this comment.
The reason I used a deep clone here is due to I don't want to change the original content of luis and qna files.
Sorry, something went wrong.
There was a problem hiding this comment.
This isn't a deep clone actually, that was my question. See Typescript playground for explanataion.
Sorry, something went wrong.
There was a problem hiding this comment.
I see. I just fixed this.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
closes: #1210
In this PR, for the test cases of using imported intents User report case will only includes the referenced intents in the generated files.
Here is the new result of Cross-train for that case above: