Graphical models for heterogeneous transfer learning and co-reference resolution