speech_recognition
Variables
grammar Namespace Reference

Variables

 dummy_model_path = os.path.dirname(os.path.realpath(__file__))
 
 grammar_file = sys.argv[1]
 
 k = Grammar(dummy_model_path, grammar_file, target)
 
 s1 = k.parse(test_sentence_1)
 
 s2 = k.parse(test_sentence_2)
 
 subprocess_exit_status
 
 target = sys.argv[2]
 
string test_sentence_1 = "bring me the coke"
 
string test_sentence_2 = "bring the coke to the kitchen"
 

Variable Documentation

◆ dummy_model_path

grammar.dummy_model_path = os.path.dirname(os.path.realpath(__file__))

Definition at line 22 of file grammar.py.

◆ grammar_file

string grammar.grammar_file = sys.argv[1]

Definition at line 16 of file grammar.py.

◆ k

Definition at line 24 of file grammar.py.

◆ s1

grammar.s1 = k.parse(test_sentence_1)

Definition at line 36 of file grammar.py.

◆ s2

grammar.s2 = k.parse(test_sentence_2)

Definition at line 37 of file grammar.py.

◆ subprocess_exit_status

grammar.subprocess_exit_status
Initial value:
1 = subprocess.call(["mkdynamicgrammar.bash",
2  k.model_path, k.model_path_tmp])

Definition at line 27 of file grammar.py.

◆ target

string grammar.target = sys.argv[2]

Definition at line 17 of file grammar.py.

◆ test_sentence_1

string grammar.test_sentence_1 = "bring me the coke"

Definition at line 33 of file grammar.py.

◆ test_sentence_2

string grammar.test_sentence_2 = "bring the coke to the kitchen"

Definition at line 34 of file grammar.py.