hp.telephony.media
Interface ASRParsedRule


public interface ASRParsedRule

This interface allows retrieving grammar information for grammar based recognizers

Since:
OCMP 2.3

Nested Class Summary
static interface ASRParsedRule.RuleType
          Define constants for rule types (see W3C's SRGS format)
 
Method Summary
 String getGrammarName()
          get the grammar name to which the recognized rule belongs
 ASRParsedRule[] getNonTerminalRule()
          if the rule is non terminal (i.e., SEQUENCE or ALTERNATIVE); access the parsed rules at the level below.
 String getRuleName()
          get the rule name
 ASRParsedRule.RuleType getRuleType()
          get the rule type.
 String getTag()
          if tag or translation information has been computed by the grammar when the rule was resolved, it is accessible with this method
 String getTagName()
          get the tag name
 ResultToken getTerminalRule()
          returns the rule token for a terminal rule
 

Method Detail

getGrammarName

public String getGrammarName()
get the grammar name to which the recognized rule belongs


getRuleName

public String getRuleName()
get the rule name


getRuleType

public ASRParsedRule.RuleType getRuleType()
get the rule type. Can be of 2 non-terminal types: A SEQUENCE or an ALTERNATIVE


getTag

public String getTag()
if tag or translation information has been computed by the grammar when the rule was resolved, it is accessible with this method


getTagName

public String getTagName()
get the tag name


getNonTerminalRule

public ASRParsedRule[] getNonTerminalRule()
if the rule is non terminal (i.e., SEQUENCE or ALTERNATIVE); access the parsed rules at the level below. An ALTERNATIVE rule has only one ASRParsedRule in the A SEQUENCE rule may return one or more.


getTerminalRule

public ResultToken getTerminalRule()
returns the rule token for a terminal rule