pub fn tokens_sorted(&self) -> Vec<K> {
        let mut keys = Vec::with_capacity(self.0.len());
        for k in self.0.keys() {
            keys.push((*k).clone());
        }
        keys.sort_unstable_by(|x, y| self.frequency(y).cmp(&self.frequency(x)));
        keys
    }
/// Return the [`ModelKey`] set in the model sorted by relative frequencies,
/// highest first.
Return the [`ModelKey`] set in the model sorted by relative frequencies,
highest first.
Return the [ ` ModelKey ` ] set in the model sorted by relative frequencies highest first .
pub fn tokens_sorted(&self) -> Vec<K> {
        let mut keys = Vec::with_capacity(self.0.len());
        for k in self.0.keys() {
            keys.push((*k).clone());
        }
        keys.sort_unstable_by(|x, y| self.frequency(y).cmp(&self.frequency(x)));
        keys
    }
pub fn tokens_sorted ( & self ) -> Vec < K > { let mut keys = Vec :: with_capacity ( self . 0 . len ( ) ) ; for k in self . 0 . keys ( ) { keys . push ( ( * k ) . clone ( ) ) ; } keys . sort_unstable_by ( | x , y | self . frequency ( y ) . cmp ( & self . frequency ( x ) ) ) ; keys }
Return the [`ModelKey`] set in the model sorted by relative frequencies,
highest first.
Return the [ ` ModelKey ` ] set in the model sorted by relative frequencies highest first .
&self
&self