Learning in the rational speech acts model