montreal_forced_aligner/corpus/acoustic_corpus.py
def _write_feats(self):
        """Write feats scp file for Kaldi"""
        if any(x.features is not None for x in self.utterances):
            with open(
                os.path.join(self.corpus_output_directory, "feats.scp"), "w", encoding="utf8"
            ) as f:
                for utterance in self.utterances:
                    if not utterance.features:
                        continue
                    f.write(f"{utterance.name} {utterance.features}\n")
Write feats scp file for Kaldi
Write feats scp file for Kaldi
Write feats scp file for Kaldi
def _write_feats(self):
        if any(x.features is not None for x in self.utterances):
            with open(
                os.path.join(self.corpus_output_directory, "feats.scp"), "w", encoding="utf8"
            ) as f:
                for utterance in self.utterances:
                    if not utterance.features:
                        continue
                    f.write(f"{utterance.name} {utterance.features}\n")
def _write_feats ( self ) : if any ( x . features is not None for x in self . utterances ) : with open ( os . path . join ( self . corpus_output_directory , "feats.scp" ) , "w" , encoding = "utf8" ) as f : for utterance in self . utterances : if not utterance . features : continue f . write ( f"{utterance.name} {utterance.features}\n" )
Write feats scp file for Kaldi
Write feats scp file for Kaldi
"""Write feats scp file for Kaldi"""
self