Преглед изворни кода

Put all number-words on one line in the corpus

This makes pocketsphinx pick up way fewer false-positives of single
number-words as recognised sentences.  It doesn't seem to make any
difference in anything else, but fewer false-positives is always nice.
Clara Hobbs пре 7 година
родитељ
комит
cb4822025f
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      kayleevc/kaylee.py

+ 2
- 1
kayleevc/kaylee.py Прегледај датотеку

@@ -91,7 +91,8 @@ class Kaylee:
91 91
                 strings.write(voice_cmd.strip().replace('%d', '') + "\n")
92 92
             # Add number words to the corpus
93 93
             for word in self.number_parser.number_words:
94
-                strings.write(word + "\n")
94
+                strings.write(word + " ")
95
+            strings.write("\n")
95 96
 
96 97
     def log_history(self, text):
97 98
         if self.options['history']:

Loading…
Откажи
Сачувај