TextClassifier.EntityConfig.Builder

class TextClassifier.EntityConfig.Builder


Builder class to construct the EntityConfig object.

Summary

Public constructors

Public functions

TextClassifier.EntityConfig

Combines all of the options that have been set and returns a new EntityConfig object.

TextClassifier.EntityConfig.Builder!
includeTypesFromTextClassifier(includeTypesFromTextClassifier: Boolean)

Specifies to include the default entity types suggested by the text classifier.

TextClassifier.EntityConfig.Builder!

Sets a collection of entity types that are explicitly excluded.

TextClassifier.EntityConfig.Builder!

Sets a collection of hints for the text classifier to determine what types of entities to find.

TextClassifier.EntityConfig.Builder!

Sets a collection of entity types that are explicitly included.

Public constructors

Builder

Builder()

Public functions

build

fun build(): TextClassifier.EntityConfig

Combines all of the options that have been set and returns a new EntityConfig object.

includeTypesFromTextClassifier

fun includeTypesFromTextClassifier(includeTypesFromTextClassifier: Boolean): TextClassifier.EntityConfig.Builder!

Specifies to include the default entity types suggested by the text classifier. By default, it is included.

setExcludedTypes

fun setExcludedTypes(excludedTypes: (Mutable)Collection<String!>?): TextClassifier.EntityConfig.Builder!

Sets a collection of entity types that are explicitly excluded.

setHints

fun setHints(hints: (Mutable)Collection<String!>?): TextClassifier.EntityConfig.Builder!

Sets a collection of hints for the text classifier to determine what types of entities to find.

setIncludedTypes

fun setIncludedTypes(includedTypes: (Mutable)Collection<String!>?): TextClassifier.EntityConfig.Builder!

Sets a collection of entity types that are explicitly included.