将LUIS实体映射到表单流中的问题

时间:2017-06-14 11:54:34

标签: botframework

我尝试从LUIS映射实体时遇到问题。首先,通过一种方法,我从LUIS完成实体,但是,机器人再次询问我已经塞满的实体。

Sub dateCompare()
    zLastRow = Range("D" & Rows.Count).End(xlUp).Row   'last data row

    '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    For r = 2 To zLastRow
        zWeeks = (Cells(r, "E") - Cells(r, "D")) / 7   'date difference in weeks

        Select Case zWeeks
            Case Is > 4                                'later than 4 weeks
                zColour = vbRed
                zText = "Project delayed " & Int(zWeeks) & " weeks"

            Case 2 To 4                                'between 2 and 4 weeks
                zColour = vbYellow
                zText = "Project ongoing"

            Case Is < 2                                'less than 2 weeks
                zColour = vbGreen
                zText = "Project On-Time"

            Case Else                                  'in case of duff data..
                zColour = xlNone
                zText = " check dates"
        End Select

        Cells(r, "D").Interior.Color = zColour         'set cell background colour
        Cells(r, "F") = zText                          'set project status
    Next
    '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
End Sub

直接映射实体时,它也不适用于我,错误发生在:

  

Newtonsoft.Json.Linq.JArray&#39;在Assembly&#39; Newtonsoft.Json中,   Version = 10.0.0.0,Culture = neutral,PublicKeyToken = 30ad4fe6b2a6aeed&#39;是   没有标记为可序列化。

该类标记为[serializable]

有没有人遇到过你?

https://github.com/jesusom/Developments

提前感谢:

0 个答案:

没有答案