Back to Tensorflow

BertNLClassifier.BertNLClassifierOptions.Builder

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/task/text/nlclassifier/BertNLClassifier.BertNLClassifierOptions.Builder.html

2.21.03.2 KB
Original Source

public static abstract class BertNLClassifier.BertNLClassifierOptions.Builder

Builder for BertNLClassifier.BertNLClassifierOptions.

Public Constructors

| | Builder() |

Public Methods

| abstract BertNLClassifier.BertNLClassifierOptions | build() | | abstract BertNLClassifier.BertNLClassifierOptions.Builder | setBaseOptions(BaseOptions baseOptions) Sets the general options to configure Task APIs, such as accelerators.

| | abstract BertNLClassifier.BertNLClassifierOptions.Builder | setMaxSeqLen(int value) This method is deprecated. maximum sequence length is now read from the model (i.e. input tensor size) automatically

|

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

Public Constructors

public Builder ()

Public Methods

public abstract BertNLClassifier.BertNLClassifierOptions build ()

public abstract BertNLClassifier.BertNLClassifierOptions.Builder setBaseOptions (BaseOptions baseOptions)

Sets the general options to configure Task APIs, such as accelerators.

Parameters

| baseOptions | |

public abstract BertNLClassifier.BertNLClassifierOptions.Builder setMaxSeqLen (int value)

This method is deprecated.
maximum sequence length is now read from the model (i.e. input tensor size) automatically

Set the maximum sequence length.

Parameters

| value | |