소스 검색

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…
취소
저장