pub fn decode_without_inner<'a, S>(
        &self,
        labels: &[S],
    ) -> Result<Vec<Vec<EncodingProb<D::Encoding>>>, Error>
    where
        S: AsRef<[EncodingProb<'a, usize>]>,
    {
        Ok(labels
            .iter()
            .map(|encoding_probs| {
                encoding_probs
                    .as_ref()
                    .iter()
                    .map(|encoding_prob| {
                        EncodingProb::new(
                            self.numberer
                                .value(*encoding_prob.encoding())
                                .expect("Unknown label"),
                            encoding_prob.prob(),
                        )
                    })
                    .collect::<Vec<_>>()
            })
            .collect::<Vec<_>>())
    }
// Decode without applying the inner decoder.
Decode without applying the inner decoder.
Decode without applying the inner decoder .
pub fn decode_without_inner<'a, S>(
        &self,
        labels: &[S],
    ) -> Result<Vec<Vec<EncodingProb<D::Encoding>>>, Error>
    where
        S: AsRef<[EncodingProb<'a, usize>]>,
    {
        Ok(labels
            .iter()
            .map(|encoding_probs| {
                encoding_probs
                    .as_ref()
                    .iter()
                    .map(|encoding_prob| {
                        EncodingProb::new(
                            self.numberer
                                .value(*encoding_prob.encoding())
                                .expect("Unknown label"),
                            encoding_prob.prob(),
                        )
                    })
                    .collect::<Vec<_>>()
            })
            .collect::<Vec<_>>())
    }
pub fn decode_without_inner < ' a , S > ( & self , labels : & [ S ] , ) -> Result < Vec < Vec < EncodingProb < D :: Encoding > > > , Error > where S : AsRef < [ EncodingProb < ' a , usize > ] > , { Ok ( labels . iter ( ) . map ( | encoding_probs | { encoding_probs . as_ref ( ) . iter ( ) . map ( | encoding_prob | { EncodingProb :: new ( self . numberer . value ( * encoding_prob . encoding ( ) ) . expect ( " " ) , encoding_prob . prob ( ) , ) } ) . collect :: < Vec < _ > > ( ) } ) . collect :: < Vec < _ > > ( ) ) }
Decode without applying the inner decoder.
Decode without applying the inner decoder .
&self
labels
&[S]