EntityExtractorOptions.Builder

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

EntityExtractorOptions
build()
Builds a EntityExtractorOptions instance.
EntityExtractorOptions.Builder
setExecutor(Executor executor)
Sets the custom Executor to use.

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.

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