Class PatternMatchingParser
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.slug.parsing.patternMatching.PatternMatchingParser
- All Implemented Interfaces:
NLUInterface
-
Field Summary
FieldsFields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, shouldRunExecutionLoop
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
activatePattern
(String patternName) boolean
deactivatePattern
(String patternName) int
Used for testing not sure if we want/need to keep in the long runedu.tufts.hrilab.slug.parsing.patternMatching.PatternMatchingParser.OrderComponents
parseOrder
(String order) Accumulates text, sentence-at-a-time and attempts to parse the incoming Utterance.void
void
processOrder
(String order) Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
additionalUsageInfo, createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, init, main, parseArgs, shutdown, shutdownComponent
-
Field Details
-
log
protected final org.slf4j.Logger log
-
-
Constructor Details
-
PatternMatchingParser
public PatternMatchingParser()
-
-
Method Details
-
activatePattern
- Parameters:
patternName
-- Returns:
-
deactivatePattern
- Parameters:
patternName
-- Returns:
-
parseUtterance
Description copied from interface:NLUInterface
Accumulates text, sentence-at-a-time and attempts to parse the incoming Utterance.- Specified by:
parseUtterance
in interfaceNLUInterface
- Parameters:
u
-- Returns:
-
getNumberOfActivePatterns
public int getNumberOfActivePatterns()Used for testing not sure if we want/need to keep in the long run- Returns:
-
processOrder
-
parseOrder
public edu.tufts.hrilab.slug.parsing.patternMatching.PatternMatchingParser.OrderComponents parseOrder(String order) -
printOrderTable
public void printOrderTable()
-