Text this: Learning in graphical models