ModelResult<T> 类
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. ModelResult<T>
- com.
类型参数
- T
识别的对象的类型。
public class ModelResult
包含识别结果信息。
构造函数摘要
| 构造函数 | 说明 | |
|---|---|---|
| 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)
设置已识别的实体的类型。
参数: