Freigeben über


PatternMatchingModel Class

public final class PatternMatchingModel
extends LanguageUnderstandingModel

Represents a PatternMatchingModel used for intent recognition.

Constructor Summary

Constructor Description
PatternMatchingModel(String modelId)

Creates a PatternMatchingModel using the specified model ID.

Method Summary

Modifier and Type Method and Description
KeyedItemHashMap<PatternMatchingEntity> getEntities()

This container of PatternMatchingEntity objects is used to define all the PatternMatchingEntity objects this model will look for.

KeyedItemHashMap<PatternMatchingIntent> getIntents()

This container of PatternMatchingIntent objects is used to define all the PatternMatchingIntent objects this model will look for.

Methods inherited from LanguageUnderstandingModel

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

PatternMatchingModel

public PatternMatchingModel(String modelId)

Creates a PatternMatchingModel using the specified model ID.

Parameters:

modelId - A string that represents a unique ID for this model.

Method Details

getEntities

public KeyedItemHashMap getEntities()

This container of PatternMatchingEntity objects is used to define all the PatternMatchingEntity objects this model will look for.

Returns:

A KeyedItemHashMap that contains all the Intents.

getIntents

public KeyedItemHashMap getIntents()

This container of PatternMatchingIntent objects is used to define all the PatternMatchingIntent objects this model will look for.

Returns:

A KeyedItemHashMap that contains all the Intents.

Applies to