added n-gram weight classifier