montreal_forced_aligner/models.py
def add_meta_file(self, g2p_trainer: G2PTrainer) -> None:
        """
        Construct metadata information for the G2P model from the dictionary it was trained from

        Parameters
        ----------
        g2p_trainer: :class:`~montreal_forced_aligner.g2p.trainer.G2PTrainer`
            Trainer for the G2P model
        """

        with open(os.path.join(self.dirname, "meta.json"), "w", encoding="utf8") as f:
            json.dump(g2p_trainer.meta, f, default=set_default)

        Construct metadata information for the G2P model from the dictionary it was trained from

        Parameters
        ----------
        g2p_trainer: :class:`~montreal_forced_aligner.g2p.trainer.G2PTrainer`
            Trainer for the G2P model
        
Construct metadata information for the G2P model from the dictionary it was trained from
Parameters


Construct metadata information for the G2P model from the dictionary it was trained from Parameters
def add_meta_file(self, g2p_trainer: G2PTrainer) -> None:
        with open(os.path.join(self.dirname, "meta.json"), "w", encoding="utf8") as f:
            json.dump(g2p_trainer.meta, f, default=set_default)
def add_meta_file ( self , g2p_trainer : G2PTrainer ) -> None : with open ( os . path . join ( self . dirname , "meta.json" ) , "w" , encoding = "utf8" ) as f : json . dump ( g2p_trainer . meta , f , default = set_default )
Construct metadata information for the G2P model from the dictionary it was trained from
Parameters
Construct metadata information for the G2P model from the dictionary it was trained from Parameters
"""
        Construct metadata information for the G2P model from the dictionary it was trained from

        Parameters
        ----------
        g2p_trainer: :class:`~montreal_forced_aligner.g2p.trainer.G2PTrainer`
            Trainer for the G2P model
        """
self
g2p_trainer
G2PTrainer