Skip to main content

residue_id

Function residue_id 

Source
pub fn residue_id(residue: char) -> u32
Expand description

The token id for one residue character, or UNK_ID if it has none.

Case-sensitive: tokenizer_config.json sets do_lower_case: false, and lowercase input in the reference pipeline would reach <unk> too.