public static abstract class BertNLClassifier.BertNLClassifierOptions.Builder extends Object

Builder for BertNLClassifier.BertNLClassifierOptions.

Public Constructor Summary

Public Method Summary

abstract BertNLClassifier.BertNLClassifierOptions
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 Method Summary

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.

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.