def extract(self, text):
        """
        Convert string to a list of integers
        Args:
            text: string (sequence of characters)

        Returns:
            sequence of ints
        """
        text=self.normlizer(text).normalize()
        pinyins=ppy.pinyin(text,8,neutral_tone_with_five=True)
        pinyins=[i[0] for i in pinyins]

        tokens = []
        for py in pinyins:
            if py[-1]=="5":
                py=py[:-1]+'1'
            if py in self.map_dict:
                tokens += self.map_dict[py]
            else:
                if len(py) > 1 and py !='sil':
                    py = list(py)
                    tokens+=py
                else:
                    tokens += [py]

        feats=[self.token_to_index[token] for token in tokens]
        return feats

        Convert string to a list of integers
        Args:
            text: string (sequence of characters)

        Returns:
            sequence of ints
        
augmentations/tts_for_asr/utils/text_featurizers.py