adding relative distributions to document terms