B
dk
= 1 if
k
occurs at least once in
d
and is zero otherwise;
B
cd
= 1 if
d
is classified as an instance of class
c
and is zero otherwise.