Each data set was pre-processed using the strategy described in Section 2.3, and compounds that contained tokens not present in the vocabulary V (used to train the models) were removed. A final filtering was applied to both data sets in order to remove peptides and other non drug-like small molecules. Only compounds that satisfied all the following criteria were kept: