Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
[Script] cognitive model args should be camelCased (#2141)
Browse files Browse the repository at this point in the history
* update skill script case

* fix template
  • Loading branch information
DingmaomaoBJTU authored Aug 30, 2019
1 parent 3a32384 commit e50244d
Show file tree
Hide file tree
Showing 28 changed files with 132 additions and 132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ foreach ($language in $languageArr)
$config.languageModels += @{
id = $lu.BaseName
name = $luisApp.name
appid = $luisApp.id
authoringkey = $luisAuthoringKey
appId = $luisApp.id
authoringKey = $luisAuthoringKey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
version = $luisApp.activeVersion
region = $luisAccountRegion
}
Expand Down Expand Up @@ -283,10 +283,10 @@ foreach ($language in $languageArr)
$config.dispatchModel = @{
type = "dispatch"
name = $dispatchApp.name
appid = $dispatchApp.appId
authoringkey = $luisauthoringkey
appId = $dispatchApp.appId
authoringKey = $luisauthoringkey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
region = $luisAccountRegion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ foreach ($langCode in $languageMap.Keys) {

Write-Host "> Updating local $($luisApp.id).lu file ..."
luis export version `
--appId $luisApp.appid `
--appId $luisApp.appId `
--versionId $luisApp.version `
--region $luisApp.authoringRegion `
--authoringKey $luisApp.authoringKey | ludown refresh `
Expand Down Expand Up @@ -76,7 +76,7 @@ foreach ($langCode in $languageMap.Keys) {
(dispatch add `
--type "luis" `
--name $luisApp.name `
--id $luisApp.appid `
--id $luisApp.appId `
--region $luisApp.authoringRegion `
--intentName "l_$($luisApp.id)" `
--dispatch $(Join-Path $dispatchFolder $langCode "$($dispatch.name).dispatch") `
Expand Down Expand Up @@ -117,7 +117,7 @@ foreach ($langCode in $languageMap.Keys) {
$lu = Get-Item -Path $(Join-Path $luisFolder $langCode "$($luisApp.id).lu")
UpdateLUIS `
-lu_file $lu `
-appId $luisApp.appid `
-appId $luisApp.appId `
-version $luisApp.version `
-region $luisApp.authoringRegion `
-authoringKey $luisApp.authoringKey `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ foreach ($language in $languageArr)
$config.languageModels += @{
id = $lu.BaseName
name = $luisApp.name
appid = $luisApp.id
authoringkey = $luisAuthoringKey
appId = $luisApp.id
authoringKey = $luisAuthoringKey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
version = $luisApp.activeVersion
region = $luisAccountRegion
}
Expand Down Expand Up @@ -283,10 +283,10 @@ foreach ($language in $languageArr)
$config.dispatchModel = @{
type = "dispatch"
name = $dispatchApp.name
appid = $dispatchApp.appId
authoringkey = $luisauthoringkey
appId = $dispatchApp.appId
authoringKey = $luisauthoringkey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
region = $luisAccountRegion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ foreach ($langCode in $languageMap.Keys) {

Write-Host "> Updating local $($luisApp.id).lu file ..."
luis export version `
--appId $luisApp.appid `
--appId $luisApp.appId `
--versionId $luisApp.version `
--region $luisApp.authoringRegion `
--authoringKey $luisApp.authoringKey | ludown refresh `
Expand Down Expand Up @@ -76,7 +76,7 @@ foreach ($langCode in $languageMap.Keys) {
(dispatch add `
--type "luis" `
--name $luisApp.name `
--id $luisApp.appid `
--id $luisApp.appId `
--region $luisApp.authoringRegion `
--intentName "l_$($luisApp.id)" `
--dispatch $(Join-Path $dispatchFolder $langCode "$($dispatch.name).dispatch") `
Expand Down Expand Up @@ -117,7 +117,7 @@ foreach ($langCode in $languageMap.Keys) {
$lu = Get-Item -Path $(Join-Path $luisFolder $langCode "$($luisApp.id).lu")
UpdateLUIS `
-lu_file $lu `
-appId $luisApp.appid `
-appId $luisApp.appId `
-version $luisApp.version `
-region $luisApp.authoringRegion `
-authoringKey $luisApp.authoringKey `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ foreach ($language in $languageArr)
$config.languageModels += @{
id = $lu.BaseName
name = $luisApp.name
appid = $luisApp.id
authoringkey = $luisAuthoringKey
appId = $luisApp.id
authoringKey = $luisAuthoringKey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
version = $luisApp.activeVersion
region = $luisAccountRegion
}
Expand Down Expand Up @@ -283,10 +283,10 @@ foreach ($language in $languageArr)
$config.dispatchModel = @{
type = "dispatch"
name = $dispatchApp.name
appid = $dispatchApp.appId
authoringkey = $luisauthoringkey
appId = $dispatchApp.appId
authoringKey = $luisauthoringkey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
region = $luisAccountRegion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ foreach ($langCode in $languageMap.Keys) {

Write-Host "> Updating local $($luisApp.id).lu file ..."
luis export version `
--appId $luisApp.appid `
--appId $luisApp.appId `
--versionId $luisApp.version `
--region $luisApp.authoringRegion `
--authoringKey $luisApp.authoringKey | ludown refresh `
Expand Down Expand Up @@ -76,7 +76,7 @@ foreach ($langCode in $languageMap.Keys) {
(dispatch add `
--type "luis" `
--name $luisApp.name `
--id $luisApp.appid `
--id $luisApp.appId `
--region $luisApp.authoringRegion `
--intentName "l_$($luisApp.id)" `
--dispatch $(Join-Path $dispatchFolder $langCode "$($dispatch.name).dispatch") `
Expand Down Expand Up @@ -117,7 +117,7 @@ foreach ($langCode in $languageMap.Keys) {
$lu = Get-Item -Path $(Join-Path $luisFolder $langCode "$($luisApp.id).lu")
UpdateLUIS `
-lu_file $lu `
-appId $luisApp.appid `
-appId $luisApp.appId `
-version $luisApp.version `
-region $luisApp.authoringRegion `
-authoringKey $luisApp.authoringKey `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ foreach ($language in $languageArr)
$config.languageModels += @{
id = $lu.BaseName
name = $luisApp.name
appid = $luisApp.id
authoringkey = $luisAuthoringKey
appId = $luisApp.id
authoringKey = $luisAuthoringKey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
version = $luisApp.activeVersion
region = $luisAccountRegion
}
Expand Down Expand Up @@ -283,10 +283,10 @@ foreach ($language in $languageArr)
$config.dispatchModel = @{
type = "dispatch"
name = $dispatchApp.name
appid = $dispatchApp.appId
authoringkey = $luisauthoringkey
appId = $dispatchApp.appId
authoringKey = $luisauthoringkey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
region = $luisAccountRegion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ foreach ($langCode in $languageMap.Keys) {

Write-Host "> Updating local $($luisApp.id).lu file ..."
luis export version `
--appId $luisApp.appid `
--appId $luisApp.appId `
--versionId $luisApp.version `
--region $luisApp.authoringRegion `
--authoringKey $luisApp.authoringKey | ludown refresh `
Expand Down Expand Up @@ -76,7 +76,7 @@ foreach ($langCode in $languageMap.Keys) {
(dispatch add `
--type "luis" `
--name $luisApp.name `
--id $luisApp.appid `
--id $luisApp.appId `
--region $luisApp.authoringRegion `
--intentName "l_$($luisApp.id)" `
--dispatch $(Join-Path $dispatchFolder $langCode "$($dispatch.name).dispatch") `
Expand Down Expand Up @@ -117,7 +117,7 @@ foreach ($langCode in $languageMap.Keys) {
$lu = Get-Item -Path $(Join-Path $luisFolder $langCode "$($luisApp.id).lu")
UpdateLUIS `
-lu_file $lu `
-appId $luisApp.appid `
-appId $luisApp.appId `
-version $luisApp.version `
-region $luisApp.authoringRegion `
-authoringKey $luisApp.authoringKey `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"languageModels": [
{
"id": "BingSearchSkill",
"authoringkey": "",
"authoringKey": "",
"authoringRegion": "",
"subscriptionkey": "",
"subscriptionKey": "",
"region": "",
"name": "",
"appid": "",
"appId": "",
"version": ""
},
{
"id": "General",
"authoringkey": "",
"authoringKey": "",
"authoringRegion": "",
"subscriptionkey": "",
"subscriptionKey": "",
"region": "",
"name": "",
"appid": "",
"appId": "",
"version": ""
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ foreach ($language in $languageArr)
$config.languageModels += @{
id = $lu.BaseName
name = $luisApp.name
appid = $luisApp.id
authoringkey = $luisAuthoringKey
appId = $luisApp.id
authoringKey = $luisAuthoringKey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
version = $luisApp.activeVersion
region = $luisAccountRegion
}
Expand Down Expand Up @@ -283,10 +283,10 @@ foreach ($language in $languageArr)
$config.dispatchModel = @{
type = "dispatch"
name = $dispatchApp.name
appid = $dispatchApp.appId
authoringkey = $luisauthoringkey
appId = $dispatchApp.appId
authoringKey = $luisauthoringkey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
region = $luisAccountRegion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ foreach ($langCode in $languageMap.Keys) {

Write-Host "> Updating local $($luisApp.id).lu file ..."
luis export version `
--appId $luisApp.appid `
--appId $luisApp.appId `
--versionId $luisApp.version `
--region $luisApp.authoringRegion `
--authoringKey $luisApp.authoringKey | ludown refresh `
Expand Down Expand Up @@ -76,7 +76,7 @@ foreach ($langCode in $languageMap.Keys) {
(dispatch add `
--type "luis" `
--name $luisApp.name `
--id $luisApp.appid `
--id $luisApp.appId `
--region $luisApp.authoringRegion `
--intentName "l_$($luisApp.id)" `
--dispatch $(Join-Path $dispatchFolder $langCode "$($dispatch.name).dispatch") `
Expand Down Expand Up @@ -117,7 +117,7 @@ foreach ($langCode in $languageMap.Keys) {
$lu = Get-Item -Path $(Join-Path $luisFolder $langCode "$($luisApp.id).lu")
UpdateLUIS `
-lu_file $lu `
-appId $luisApp.appid `
-appId $luisApp.appId `
-version $luisApp.version `
-region $luisApp.authoringRegion `
-authoringKey $luisApp.authoringKey `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ foreach ($language in $languageArr)
$config.languageModels += @{
id = $lu.BaseName
name = $luisApp.name
appid = $luisApp.id
authoringkey = $luisAuthoringKey
appId = $luisApp.id
authoringKey = $luisAuthoringKey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
version = $luisApp.activeVersion
region = $luisAccountRegion
}
Expand Down Expand Up @@ -283,10 +283,10 @@ foreach ($language in $languageArr)
$config.dispatchModel = @{
type = "dispatch"
name = $dispatchApp.name
appid = $dispatchApp.appId
authoringkey = $luisauthoringkey
appId = $dispatchApp.appId
authoringKey = $luisauthoringkey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
region = $luisAccountRegion
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ foreach ($langCode in $languageMap.Keys) {

Write-Host "> Updating local $($luisApp.id).lu file ..."
luis export version `
--appId $luisApp.appid `
--appId $luisApp.appId `
--versionId $luisApp.version `
--region $luisApp.authoringRegion `
--authoringKey $luisApp.authoringKey | ludown refresh `
Expand Down Expand Up @@ -76,7 +76,7 @@ foreach ($langCode in $languageMap.Keys) {
(dispatch add `
--type "luis" `
--name $luisApp.name `
--id $luisApp.appid `
--id $luisApp.appId `
--region $luisApp.authoringRegion `
--intentName "l_$($luisApp.id)" `
--dispatch $(Join-Path $dispatchFolder $langCode "$($dispatch.name).dispatch") `
Expand Down Expand Up @@ -117,7 +117,7 @@ foreach ($langCode in $languageMap.Keys) {
$lu = Get-Item -Path $(Join-Path $luisFolder $langCode "$($luisApp.id).lu")
UpdateLUIS `
-lu_file $lu `
-appId $luisApp.appid `
-appId $luisApp.appId `
-version $luisApp.version `
-region $luisApp.authoringRegion `
-authoringKey $luisApp.authoringKey `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ foreach ($language in $languageArr)
$config.languageModels += @{
id = $lu.BaseName
name = $luisApp.name
appid = $luisApp.id
authoringkey = $luisAuthoringKey
appId = $luisApp.id
authoringKey = $luisAuthoringKey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
version = $luisApp.activeVersion
region = $luisAccountRegion
}
Expand Down Expand Up @@ -283,10 +283,10 @@ foreach ($language in $languageArr)
$config.dispatchModel = @{
type = "dispatch"
name = $dispatchApp.name
appid = $dispatchApp.appId
authoringkey = $luisauthoringkey
appId = $dispatchApp.appId
authoringKey = $luisauthoringkey
authoringRegion = $luisAuthoringRegion
subscriptionkey = $luisSubscriptionKey
subscriptionKey = $luisSubscriptionKey
region = $luisAccountRegion
}
}
Expand Down
Loading

0 comments on commit e50244d

Please sign in to comment.