Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions build/yaml/templates/LUUtils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ function Get-LUModels
foreach($luModel in $crossTrainedLUModels) {
# Load the dialog JSON and find the recognizer kind
$luDialog = $luRecognizerDialogs | Where-Object { $_ -match "$luModel.dialog" }
$dialog = Get-Content -Path "$sourceDirectory/$luDialog" | ConvertFrom-Json
$recognizerKind = ($dialog | Select -ExpandProperty "`$kind")

if(($luDialog -ne "") -and ($null -ne $luDialog)){
$dialog = Get-Content -Path "$sourceDirectory/$luDialog" | ConvertFrom-Json
$recognizerKind = ($dialog | Select -ExpandProperty "`$kind")

# Add it to the list if it is the expected type
if ( $recognizerKind -eq $recognizerType)
{
$luModels += "$luModel"
# Add it to the list if it is the expected type
if ( $recognizerKind -eq $recognizerType)
{
$luModels += "$luModel"
}
}
}

Expand Down