public class TfLiteText extends Object

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

Public Method Summary

static Task<Void>
initialize(Context context)
Initializes the TFLite Tasks Text API.
static Task<Void>
initialize(Context context, TfLiteInitializationOptions options)
Initializes the TFLite Tasks Text API with the specified options.

Inherited Method Summary

Public Methods

public static Task<Void> 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<Void>, so you should wait for the task to be completed, but the return value of the Task is irrelevant.

public static Task<Void> 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<Void>, so you should wait for the task to be completed, but the return value of the Task is irrelevant.