reverseidngram

コマンドの解説

順方向のID-ngramから、逆方向のID-ngramを生成する。

呼び出し形式

    reverseidngram [options] infile.idngram[.gz] outfile.idngram[.gz]

オプション

-n 長さ
n-gramの長さを指定する.
-ascii_input
入力にascii形式を使う.
-ascii_output
ascii形式で出力する.

注意事項

reverseidngramの出力は、reversewordによって各行を反転させた テキストから生成したID-ngramと一致しない。 reverseidngramと同じID-ngramを生成するには、元のテキストの 各行の単語の順序を入れ換えるだけでなく、行の順番も反転させ る必要がある。

参照項目

text2idngram, reverseword