ModelResult<T> 類別
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. ModelResult<T>
- com.
類型參數
- T
辨識的物件類型。
public class ModelResult
包含辨識結果資訊。
建構函式摘要
| 建構函式 | Description | |
|---|---|---|
| ModelResult() | ||
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
| int |
getEnd()
取得已辨識子字串的結束字元位置。 |
| T |
getResolution()
取得可辨識的物件。 |
| int |
getStart()
取得已辨識子字串的起始字元位置。 |
| java.lang.String |
getText()
取得已辨識之輸入的子字串。 |
| java.lang.String |
getTypeName()
取得已辨識的實體類型。 |
| void |
setEnd(int withEnd)
啟動已辨識子字串的結束字元位置。 |
| void |
setResolution(T withResolution)
設定辨識的物件。 |
| void |
setStart(int withStart)
設定已辨識子字串的起始字元位置。 |
| void |
setText(String withText)
設定已辨識之輸入的子字串。 |
| void |
setTypeName(String withTypeName)
設定已辨識的實體類型。 |
方法繼承來源 java.lang.Object
建構函式詳細資料
ModelResult
public ModelResult()
方法詳細資料
getEnd
public int getEnd()
取得已辨識子字串的結束字元位置。
傳回:
getResolution
public T getResolution()
取得可辨識的物件。
傳回:
getStart
public int getStart()
取得已辨識子字串的起始字元位置。
傳回:
getText
public String getText()
取得已辨識之輸入的子字串。
傳回:
getTypeName
public String getTypeName()
取得已辨識的實體類型。
傳回:
setEnd
public void setEnd(int withEnd)
啟動已辨識子字串的結束字元位置。
參數:
setResolution
public void setResolution(T withResolution)
設定辨識的物件。
參數:
setStart
public void setStart(int withStart)
設定已辨識子字串的起始字元位置。
參數:
setText
public void setText(String withText)
設定已辨識之輸入的子字串。
參數:
setTypeName
public void setTypeName(String withTypeName)
設定已辨識的實體類型。
參數: