Skip to content

Commit 2056025

Browse files
authored
Merge pull request #46877 from v-jaswel/patch-2
Update CommandLine.md
2 parents 1a84127 + ecd7ec4 commit 2056025

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

articles/cognitive-services/KES/CommandLine.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ The KES command line interface provides the ability to build index and grammar f
2121
* describe_grammar
2222

2323
<a name="build_index-command"></a>
24+
2425
## build_index Command
26+
2527
The **build_index** command builds a binary index file from a schema definition file and a data file of objects to be indexed. The resulting index file can be used to evaluate structured query expressions, or to generate interpretations of natural language queries in conjunction with a compiled grammar file.
2628

2729
`kes.exe build_index <schemaFile> <dataFile> <indexFile> [options]`
@@ -44,7 +46,9 @@ By default, the index is built on the local machine. Outside of the Azure envir
4446
> For faster builds, presort the objects in the data file by decreasing probability.
4547
4648
<a name="build_grammar-command"></a>
49+
4750
## build_grammar Command
51+
4852
The **build_grammar** command compiles a grammar specified in XML to a binary grammar file. The resulting grammar file can be used in conjunction with an index file to generate interpretations of natural language queries.
4953

5054
`kes.exe build_grammar <xmlFile> <grammarFile>`
@@ -57,7 +61,9 @@ The **build_grammar** command compiles a grammar specified in XML to a binary gr
5761
These files may be specified by local file paths or URL paths to Azure blobs. The grammar specification describes the set of weighted natural language expressions and their semantic interpretations (see [Grammar Format](GrammarFormat.md)). When the build succeeds, the output grammar file contains a binary representation of the grammar specification to enable fast decoding.
5862

5963
<a name="host_service-command"/>
64+
6065
## host_service Command
66+
6167
The **host_service** command hosts an instance of the KES service on the local machine.
6268

6369
`kes.exe host_service <grammarFile> <indexFile> [options]`
@@ -73,7 +79,9 @@ These files may be specified by local file paths or URL paths to Azure blobs. A
7379
Outside of the Azure environment, locally hosted services are limited to index files up to 1 MB in size, 10 requests per second, and 1000 total calls. To overcome these limitations, run **host_service** inside an Azure VM, or deploy to an Azure cloud service using **deploy_service**.
7480

7581
<a name="deploy_service-command"/>
82+
7683
## deploy_service Command
84+
7785
The **deploy_service** command deploys an instance of the KES service to an Azure cloud service.
7886

7987
`kes.exe deploy_service <grammarFile> <indexFile> <serviceName> <vmSize>[options]`
@@ -91,7 +99,9 @@ These files may be specified by local file paths or URL paths to Azure blobs. S
9199
By default, the service is deployed to the staging environment, optionally overridden via the --slot parameter. See [Web APIs](WebAPI.md) for a list of supported operations.
92100

93101
<a name="describe_index-command"/>
102+
94103
## describe_index command
104+
95105
The **describe_index** command outputs information about an index file, including the schema and description.
96106

97107
`kes.exe describe_index <indexFile>`
@@ -103,7 +113,9 @@ The **describe_index** command outputs information about an index file, includin
103113
This file may be specified by a local file path or a URL path to an Azure blob. The output description string can be specified using the --description parameter of the **build_index** command.
104114

105115
<a name="describe_grammar-command"/>
116+
106117
## describe_grammar command
118+
107119
The **describe_grammar** command outputs the original grammar specification used to build the binary grammar.
108120

109121
`kes.exe describe_grammar <grammarFile>`

0 commit comments

Comments
 (0)