A max-margin supervised Sparse Topical Coding Model