EntityExtractorOptions.Builder

  • EntityExtractorOptions.Builder is a class used to build EntityExtractorOptions instances.

  • You can create a new builder using the constructor Builder(String modelIdentifier).

  • The build() method creates an EntityExtractorOptions instance from the builder.

  • You can optionally set a custom Executor for the builder using setExecutor(Executor executor).

public static class EntityExtractorOptions.Builder extends Object

Builder for EntityExtractorOptions instances.

Public Constructor Summary

Builder (String modelIdentifier)
Creates a new builder to build EntityExtractorOptions .

Public Method Summary

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
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 (String modelIdentifier)

Creates a new builder to build EntityExtractorOptions .

Parameters
modelIdentifier identifier for model, uses identifier listed in EntityExtractorOptions . e.g. EntityExtractorOptions.ENGLISH .

Public Methods

public EntityExtractorOptions build ()

Builds a EntityExtractorOptions instance.

public EntityExtractorOptions.Builder setExecutor (Executor executor)

Sets the custom Executor to use. If no Executor is set, an internal background thread pool will be used.

Most clients should not need to call this method.

Parameters
executor the Executor to use
Returns
  • this object, for chaining method calls

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年10月31日 UTC.