Schematic overview of chemical space exploration with chemical language models. Language models are trained on a set of chemical structures represented as strings (for example, in SMILES or SELFIES formats). Sampling new strings from the trained model enables generation of novel molecules from the same chemical space as the training set.