ModelResult<T> Class

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

Type Parameters

T

The type of object recognized.

public class ModelResult<T>

Contains recognition result information.

Constructor Summary

Constructor Description
ModelResult()

Method Summary

Modifier and Type Method and Description
int getEnd()

Gets the end character position of the recognized substring.

T getResolution()

Gets the recognized object.

int getStart()

Gets the start character position of the recognized substring.

java.lang.String getText()

Gets the substring of the input that was recognized.

java.lang.String getTypeName()

Gets the type of entity that was recognized.

void setEnd(int withEnd)

Starts the end character position of the recognized substring.

void setResolution(T withResolution)

Sets the recognized object.

void setStart(int withStart)

Sets the start character position of the recognized substring.

void setText(String withText)

Sets the substring of the input that was recognized.

void setTypeName(String withTypeName)

Sets the type of entity that was recognized.

Methods inherited from 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

Constructor Details

ModelResult

public ModelResult()

Method Details

getEnd

public int getEnd()

Gets the end character position of the recognized substring.

Returns:

The end character position of the recognized substring.

getResolution

public T getResolution()

Gets the recognized object.

Returns:

The recognized object.

getStart

public int getStart()

Gets the start character position of the recognized substring.

Returns:

The start character position of the recognized substring.

getText

public String getText()

Gets the substring of the input that was recognized.

Returns:

The substring of the input that was recognized.

getTypeName

public String getTypeName()

Gets the type of entity that was recognized.

Returns:

The type of entity that was recognized.

setEnd

public void setEnd(int withEnd)

Starts the end character position of the recognized substring.

Parameters:

withEnd - The end character position of the recognized substring.

setResolution

public void setResolution(T withResolution)

Sets the recognized object.

Parameters:

withResolution - The recognized object.

setStart

public void setStart(int withStart)

Sets the start character position of the recognized substring.

Parameters:

withStart - The start character position of the recognized substring.

setText

public void setText(String withText)

Sets the substring of the input that was recognized.

Parameters:

withText - The substring of the input that was recognized.

setTypeName

public void setTypeName(String withTypeName)

Sets the type of entity that was recognized.

Parameters:

withTypeName - The type of entity that was recognized.

Applies to