Update code for new liblinear weight format