Skip to content
Snippets Groups Projects
rewrite.def 1.37 KiB
Newer Older
  • Learn to ignore specific revisions
  • # 
    # Feature(POS) to Internal State mapping
    #
    #   00    01   02    03    04   05     06       07     08        09
    #   01    02   03    04    05   06     07       08     09        10
    # 大品詞,品詞1,品詞2,品詞3,関係,t/i,代表表記,和文表記,よみ,日本語活用種別
    [unigram rewrite]
    # 和文表記,よみ,日本語活用種別をとりのぞいて,
    # 大品詞,品詞1,品詞2,品詞3,関係,t/i,代表表記,よみを使う
    *,*,*,*,*,*,*,*  $1,$2,$3,$4,$5,$6,$7,$9
    # 代表表記がない場合は無視
    *,*,*,*,*,*,*    $1,$2,$3,$4,$5,$6,$7,*
    
    *,*,*,*,*,*    $1,$2,$3,$4,$5,$6,*,*
    *,*,*,*,*    $1,$2,$3,$4,$5,*,*,*
    *,*,*,*    $1,$2,$3,$4,*,*,*,*
    *,*,*    $1,$2,$3,*,*,*,*,*
    *,*    $1,$2,*,*,*,*,*,*
    *    $1,*,*,*,*,*,*,*
    
    [left rewrite]
    *,記号,(句点|括弧閉|括弧開),*,*,*,*   $1,$2,$3,$4,$5,$6,BOS/EOS
    BOS/EOS,*,*,*,*,*,*                   $1,$2,$3,$4,$5,$6,BOS/EOS
    *,*,*,*,*,*,*    $1,$2,$3,$4,$5,$6,*
    
    *,*,*,*,*    $1,$2,$3,$4,$5,*,*,*
    *,*,*,*    $1,$2,$3,$4,*,*,*,*
    *,*,*    $1,$2,$3,*,*,*,*,*
    *,*    $1,$2,*,*,*,*,*,*
    *    $1,*,*,*,*,*,*,*
    
    [right rewrite]
    *,記号,(句点|括弧閉|括弧開),*,*,*,*   $1,$2,$3,$4,$5,$6,BOS/EOS
    BOS/EOS,*,*,*,*,*,*                   $1,$2,$3,$4,$5,$6,BOS/EOS
    *,*,*,*,*,*,*    $1,$2,$3,$4,$5,$6,*
    
    *,*,*,*,*    $1,$2,$3,$4,$5,*,*,*
    *,*,*,*    $1,$2,$3,$4,*,*,*,*
    *,*,*    $1,$2,$3,*,*,*,*,*
    *,*    $1,$2,*,*,*,*,*,*
    *    $1,*,*,*,*,*,*,*