Back to Tensorflow

TfLiteText

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/task/gms/text/TfLiteText.html

2.21.02.3 KB
Original Source

public class TfLiteText

Entry point for the TensorFlow Lite (TFLite) Tasks Text API provided by Google Play services.

Public Methods

| static | initialize(Context context) Initializes the TFLite Tasks Text API.

| | static | initialize(Context context, TfLiteInitializationOptions options) Initializes the TFLite Tasks Text API with the specified options.

| | static boolean | isInitialized() Returns whether the TFLite Tasks Audio API has already been successfully initialized.

|

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 Methods

public static initialize (Context context)

Initializes the TFLite Tasks Text API. TFLite Tasks Text API methods should only be called after the task returned by this method has successfully completed.

This method returns a Task&lt;Void&gt;, so you should wait for the task to be completed, but the return value of the Task is irrelevant.

Parameters

| context | |

public static initialize (Context context, TfLiteInitializationOptions options)

Initializes the TFLite Tasks Text API with the specified options. TFLite Tasks Text API methods should only be called after the task returned by this method has successfully completed.

This method returns a Task&lt;Void&gt;, so you should wait for the task to be completed, but the return value of the Task is irrelevant.

Parameters

| context | | | options | |

public static boolean isInitialized ()

Returns whether the TFLite Tasks Audio API has already been successfully initialized.