Feature Learning and Graphical Models for Protein Sequences