public final class SelsetParser extends Object implements SlotParser
Constructor and Description |
---|
SelsetParser()
Create a new selset 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)
SlotParser
Implementers should throw an exception if the parsed value is invalid according to the supplied metadata.
parse
in interface SlotParser
metadata
- A map representing metadata for the particular slot being
parsed.rawValue
- The string from a user utterance that represents a slot
value.value
.Copyright © 2020. All rights reserved.