Back to Tensorflow

QaAnswer

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/task/text/qa/QaAnswer.html

2.21.02.5 KB
Original Source

public class QaAnswer

Answers to QuestionAnswerer. Contains information about the answer and its relative position information to the context.

Nested Classes

| class | QaAnswer.Pos | Position information of the answer relative to context. |

Fields

| public QaAnswer.Pos | pos | | | public String | text | |

Public Constructors

| | QaAnswer(String text, QaAnswer.Pos pos) | | | QaAnswer(String text, int start, int end, float logit) |

Inherited Methods

From class java.lang.Object

| boolean | equals(Object arg0) | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

Fields

public QaAnswer.Pos pos

public String text

Public Constructors

public QaAnswer (String text, QaAnswer.Pos pos)

Parameters

| text | | | pos | |

public QaAnswer (String text, int start, int end, float logit)

Parameters

| text | | | start | | | end | | | logit | |