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
Public Constructors
public Builder ()
Public Methods
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 |
---|