6. • 訓練データから分類する各カテゴリの特徴をN-gramとして得る。
N-gramの重要度をNaive Bayes(NB) weightingでスコア付けする。
N-gram Selection
positive
negative
1 amazing
2 good
3 interesting
4 nice
positive category
1 bad
2 boring
3 uninteresting
4 tedious
negative category
r : NBweight
c :
w :
pc
w
:c w
pc 1
:c
p!c
w
:c w
p!c 1
:c
α :