You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/KES/CommandLine.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,9 @@ The KES command line interface provides the ability to build index and grammar f
21
21
* describe_grammar
22
22
23
23
<aname="build_index-command"></a>
24
+
24
25
## build_index Command
26
+
25
27
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.
@@ -44,7 +46,9 @@ By default, the index is built on the local machine. Outside of the Azure envir
44
46
> For faster builds, presort the objects in the data file by decreasing probability.
45
47
46
48
<aname="build_grammar-command"></a>
49
+
47
50
## build_grammar Command
51
+
48
52
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.
49
53
50
54
`kes.exe build_grammar <xmlFile> <grammarFile>`
@@ -57,7 +61,9 @@ The **build_grammar** command compiles a grammar specified in XML to a binary gr
57
61
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.
58
62
59
63
<aname="host_service-command"/>
64
+
60
65
## host_service Command
66
+
61
67
The **host_service** command hosts an instance of the KES service on the local machine.
@@ -73,7 +79,9 @@ These files may be specified by local file paths or URL paths to Azure blobs. A
73
79
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**.
74
80
75
81
<aname="deploy_service-command"/>
82
+
76
83
## deploy_service Command
84
+
77
85
The **deploy_service** command deploys an instance of the KES service to an Azure cloud service.
@@ -91,7 +99,9 @@ These files may be specified by local file paths or URL paths to Azure blobs. S
91
99
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.
92
100
93
101
<aname="describe_index-command"/>
102
+
94
103
## describe_index command
104
+
95
105
The **describe_index** command outputs information about an index file, including the schema and description.
96
106
97
107
`kes.exe describe_index <indexFile>`
@@ -103,7 +113,9 @@ The **describe_index** command outputs information about an index file, includin
103
113
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.
104
114
105
115
<aname="describe_grammar-command"/>
116
+
106
117
## describe_grammar command
118
+
107
119
The **describe_grammar** command outputs the original grammar specification used to build the binary grammar.
0 commit comments