Chemical representation learning for toxicity prediction