AI-generated Key Takeaways
-
EntityExtractorOptions.Builder
helps create customizedEntityExtractorOptions
instances for configuring entity extraction in ML Kit. -
It allows you to specify the language model using identifiers like
EntityExtractorOptions.ENGLISH
. -
You can optionally set a custom
Executor
for controlling task execution, although an internal thread pool is used by default. -
The
build()
method creates the finalEntityExtractorOptions
object based on the builder's configuration.
Builder for EntityExtractorOptions
instances.
Public Constructor Summary
Public Method Summary
EntityExtractorOptions |
build()
Builds a
EntityExtractorOptions instance.
|
EntityExtractorOptions.Builder |
Inherited Method Summary
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.