Back to Tensorflow

QaAnswer.Pos

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

2.21.02.0 KB
Original Source

public static class QaAnswer.Pos

Position information of the answer relative to context. It is sortable in descending order based on logit.

Fields

| public int | end | | | public float | logit | | | public int | start | |

Public Constructors

| | Pos(int start, int end, float logit) |

Public Methods

| int | compareTo(QaAnswer.Pos other) |

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() |

From interface java.lang.Comparable

| abstract int | compareTo(QaAnswer.Pos arg0) |

Fields

public int end

public float logit

public int start

Public Constructors

public Pos (int start, int end, float logit)

Parameters

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

Public Methods

public int compareTo (QaAnswer.Pos other)

Parameters

| other | |