- Working with LUIS
- Working with QnA Maker
- Machine translating .lu/ .qna files
- @microsoft/bf-lu as a library
bf luis
bf luis:convert
bf luis:generate:cs
bf luis:generate:ts
bf luis:translate
bf qnamaker:convert
bf qnamaker:translate
Converts, translates luis/lu files or generates source code.
USAGE
$ bf luis
OPTIONS
-h, --help Display Luis available commands
See code: src/commands/luis/index.ts
Convert .lu file(s) to a LUIS application JSON model or vice versa
USAGE
$ bf luis:convert
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:convert help
-i, --in=in Source .lu file(s) or LUIS application JSON model
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to file .lu file(s)
--culture=culture Lang code for the LUIS application
--description=description Text describing the LUIS applicaion
--log Enables log messages
--name=name Name of the LUIS application
--schemaversion=schemaversion Schema version of the LUIS application
--sort When set, intent, utterances, entities are alphabetically sorted in .lu files
--versionid=versionid Version ID of the LUIS application
See code: src/commands/luis/convert.ts
Generate:cs generates a strongly typed C# source code from an exported (json) LUIS model.
USAGE
$ bf luis:generate:cs
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:generate:cs help
-i, --in=in Path to the file containing the LUIS application JSON model
-o, --out=out Output file or folder name. If not specified stdout will be used as output
--className=className Name of the autogenerated class (can include namespace)
See code: src/commands/luis/generate/cs.ts
Generate:ts generates a strongly typed typescript source code from an exported (json) LUIS model.
USAGE
$ bf luis:generate:ts
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:generate:ts help
-i, --in=in Path to the file containing the LUIS application JSON model
-o, --out=out Output file or folder name. If not specified stdout will be used as output
--className=className Name of the autogenerated class
See code: src/commands/luis/generate/ts.ts
Translate given LUIS application JSON model or lu file(s)
USAGE
$ bf luis:translate
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help luis:translate help
-i, --in=in Source .lu file(s) or LUIS application JSON model
-o, --out=out Output folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to file .lu file(s)
--srclang=srclang Source lang code. Auto detect if missing.
--tgtlang=tgtlang (required) Comma separated list of target languages.
--translate_comments When set, machine translate comments found in .lu file
--translate_link_text When set, machine translate link description in .lu file
--translatekey=translatekey (required) Machine translation endpoint key.
See code: src/commands/luis/translate.ts
Converts .lu file(s) to QnA application JSON models or vice versa.
USAGE
$ bf qnamaker:convert
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help qnamaker:convert help
-i, --in=in Source .qna file(s) or QnA KB JSON file
-o, --out=out Output file or folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to file .qna file(s)
--alterations Indicates if files is QnA Alterations
--log Enables log messages
--name=name Name of the QnA KB
--sort When set, questions collections are alphabetically sorted are alphabetically sorted in .qna files
See code: src/commands/qnamaker/convert.ts
Translate given QnA maker application JSON model or qna file(s)
USAGE
$ bf qnamaker:translate
OPTIONS
-f, --force If --out flag is provided with the path to an existing file, overwrites that file
-h, --help qnamaker:translate help
-i, --in=in Source .qna file(s) or QnA maker application JSON model
-o, --out=out Output folder name. If not specified stdout will be used as output
-r, --recurse Indicates if sub-folders need to be considered to find .qna file(s)
--srclang=srclang Source lang code. Auto detect if missing.
--tgtlang=tgtlang (required) Comma separated list of target languages.
--translate_comments When set, machine translate comments found in .qna file
--translate_link_text When set, machine translate link description in .qna file
--translatekey=translatekey (required) Machine translation endpoint key.
See code: src/commands/qnamaker/translate.ts