Modified version of LASVM by Bordes, Ertekin, Weston, and Bottou.