rxn.metrics.tokenize_file.detokenize_class
- rxn.metrics.tokenize_file.detokenize_class(tokenized_class)[source]
Function performing a detokenization of the reaction class used in the Transformer classification model. E.g. ‘1 1.2 1.2.3’ -> 1.2.3
- Parameters
tokenized_class (
str
) – str to detokenize- Raises
ValueError – if the input string format is not correct
- Return type
str