rxn.chemutils.tokenization.string_is_tokenized
- rxn.chemutils.tokenization.string_is_tokenized(smiles_line)[source]
Whether a string is a tokenized SMILES or not.
- Parameters
smiles_line (
str
) – string to inspect- Raises
ValueError – if not possible to determine whether tokenized or not
TokenizationError – propagated directly from tokenize_smiles()
- Return type
bool