0
1

More than 1 year has passed since last update.

Juliusで自作N-gramを使う方法

Posted at

bingram形式のN-gramを作成

N-gramの作成方法の詳細は前回の記事PythonでN-gramを作る(Julius)に記載しております。

今回は作成したN-gramを C:/Julius/my_julius/ にコピーしておく。

自作N-gramの適用

過去のWindows環境のPythonで大語彙連続音声認識エンジン Julius を使う方法でダウンロードした音声認識パッケージ(dictation-kit-4.5)の /dictation-kit-4.5/am-dnn.jconf を開く。

以下の部分を見つける。

am-dnn.jconf
# The phone set of DNN-HMM is different from GMM-HMM, so requires another dictionary
-v model/lang_m/bccwj.60k.pdp.htkdic

-vは単語辞書です。自作の単語辞書を使いたい場合はここを変更する。
自作N-gramを使う場合は以下のように一行追加する。

am-dnn.jconf
# The phone set of DNN-HMM is different from GMM-HMM, so requires another dictionary
-v model/lang_m/bccwj.60k.pdp.htkdic

-b C:/Julius/my_julius/n-gram.bingram  ### 追加

以上で設定完了。
あとは、過去のWindows環境のPythonで大語彙連続音声認識エンジン Julius を使う方法と同様にJuliusを実行する。

以上、Juliusで自作N-gramを使う方法でした。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1