Back to Tensorflow

BertCluAnnotator.BertCluAnnotatorOptions.Builder

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/task/text/bertclu/BertCluAnnotator.BertCluAnnotatorOptions.Builder.html

2.21.05.5 KB
Original Source

public static abstract class BertCluAnnotator.BertCluAnnotatorOptions.Builder

Builder for BertCluAnnotator.BertCluAnnotatorOptions.

Public Constructors

| | Builder() |

Public Methods

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

| | abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder | setCategoricalSlotThreshold(float categoricalSlotThreshold) | | abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder | setDomainThreshold(float domainThreshold) | | abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder | setIntentThreshold(float intentThreshold) | | abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder | setMaxHistoryTurns(int maxHistoryTurns) | | abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder | setMentionedSlotThreshold(float mentionedSlotThreshold) |

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 BertCluAnnotator.BertCluAnnotatorOptions build ()

public abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder setBaseOptions (BaseOptions baseOptions)

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

Parameters

| baseOptions | |

public abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder setCategoricalSlotThreshold (float categoricalSlotThreshold)

Parameters

| categoricalSlotThreshold | |

public abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder setDomainThreshold (float domainThreshold)

Parameters

| domainThreshold | |

public abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder setIntentThreshold (float intentThreshold)

Parameters

| intentThreshold | |

public abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder setMaxHistoryTurns (int maxHistoryTurns)

Parameters

| maxHistoryTurns | |

public abstract BertCluAnnotator.BertCluAnnotatorOptions.Builder setMentionedSlotThreshold (float mentionedSlotThreshold)

Parameters

| mentionedSlotThreshold | |