Learning functional properties of proteins with language models