CountWordContextK(k,j,i)=(∑_(a∈TrainSet))(∑_(p∈position   in   a))δ((Subscript[w, j])∈(Subscript[e, i])(a,p)   and   e(a,p)=(Subscript[w, k]))                CountK(k)=(∑_(a∈TrainSet))(∑_(p∈psoition   in   a))δ(e(a,p)=(Subscript[w, k]))                SumPosition=(∑_(a∈TrainSet))(∑_(p∈position   in   a))δ(true)