Learning Contexts