ModelResult<T> 類別

  • java.lang.Object
    • com.microsoft.bot.dialogs.choices.ModelResult<T>

類型參數

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

建構函式詳細資料

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)

啟動已辨識子字串的結束字元位置。

參數:

withEnd - 已辨識子字串的結束字元位置。

setResolution

public void setResolution(T withResolution)

設定辨識的物件。

參數:

withResolution - 辨識的物件。

setStart

public void setStart(int withStart)

設定已辨識子字串的起始字元位置。

參數:

withStart - 已辨識子字串的起始字元位置。

setText

public void setText(String withText)

設定已辨識之輸入的子字串。

參數:

withText - 已辨識之輸入的子字串。

setTypeName

public void setTypeName(String withTypeName)

設定已辨識的實體類型。

參數:

withTypeName - 已辨識的實體類型。

適用於