public final class IdentityParser extends Object implements SlotParser
| Constructor and Description |
|---|
IdentityParser()
Create a new identity parser.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
parse(Map<String,Object> metadata,
String rawValue)
Parse a raw string value from an utterance into a typed value for a
concrete slot.
|
public Object parse(Map<String,Object> metadata, String rawValue)
SlotParserImplementers should throw an exception if the parsed value is invalid according to the supplied metadata.
parse in interface SlotParsermetadata - A map representing metadata for the particular slot being
parsed.rawValue - The string from a user utterance that represents a slot
value.value.Copyright © 2021. All rights reserved.