Learning Large-Scale Conditional Random Fields