montreal_forced_aligner/models.py
def pretty_print(self) -> None:
        """
        Prints the metadata information to the terminal
        """
        from .utils import get_mfa_version

        printer = TerminalPrinter()
        configuration_data = {"Acoustic model": {"name": (self.name, "green"), "data": {}}}
        version_color = "green"
        if self.meta["version"] != get_mfa_version():
            version_color = "red"
        configuration_data["Acoustic model"]["data"]["Version"] = (
            self.meta["version"],
            version_color,
        )

        if "citation" in self.meta:
            configuration_data["Acoustic model"]["data"]["Citation"] = self.meta["citation"]
        if "train_date" in self.meta:
            configuration_data["Acoustic model"]["data"]["Train date"] = self.meta["train_date"]
        configuration_data["Acoustic model"]["data"]["Architecture"] = self.meta["architecture"]
        configuration_data["Acoustic model"]["data"]["Phone type"] = self.meta["phone_type"]
        configuration_data["Acoustic model"]["data"]["Features"] = {
            "Feature type": self.meta["features"]["feature_type"],
            "Frame shift": self.meta["features"]["frame_shift"],
            "Performs speaker adaptation": self.meta["features"]["uses_speaker_adaptation"],
            "Performs LDA on features": self.meta["features"]["uses_splices"],
        }
        if self.meta["phones"]:
            configuration_data["Acoustic model"]["data"]["Phones"] = self.meta["phones"]
        else:
            configuration_data["Acoustic model"]["data"]["Phones"] = ("None found!", "red")

        printer.print_config(configuration_data)

        Prints the metadata information to the terminal
        
Prints the metadata information to the terminal
Prints the metadata information to the terminal
def pretty_print(self) -> None:
        from .utils import get_mfa_version
        printer = TerminalPrinter()
        configuration_data = {"Acoustic model": {"name": (self.name, "green"), "data": {}}}
        version_color = "green"
        if self.meta["version"] != get_mfa_version():
            version_color = "red"
        configuration_data["Acoustic model"]["data"]["Version"] = (
            self.meta["version"],
            version_color,
        )
        if "citation" in self.meta:
            configuration_data["Acoustic model"]["data"]["Citation"] = self.meta["citation"]
        if "train_date" in self.meta:
            configuration_data["Acoustic model"]["data"]["Train date"] = self.meta["train_date"]
        configuration_data["Acoustic model"]["data"]["Architecture"] = self.meta["architecture"]
        configuration_data["Acoustic model"]["data"]["Phone type"] = self.meta["phone_type"]
        configuration_data["Acoustic model"]["data"]["Features"] = {
            "Feature type": self.meta["features"]["feature_type"],
            "Frame shift": self.meta["features"]["frame_shift"],
            "Performs speaker adaptation": self.meta["features"]["uses_speaker_adaptation"],
            "Performs LDA on features": self.meta["features"]["uses_splices"],
        }
        if self.meta["phones"]:
            configuration_data["Acoustic model"]["data"]["Phones"] = self.meta["phones"]
        else:
            configuration_data["Acoustic model"]["data"]["Phones"] = ("None found!", "red")
        printer.print_config(configuration_data)
def pretty_print ( self ) -> None : from . utils import get_mfa_version printer = TerminalPrinter ( ) configuration_data = { "Acoustic model" : { "name" : ( self . name , "green" ) , "data" : { } } } version_color = "green" if self . meta [ "version" ] != get_mfa_version ( ) : version_color = "red" configuration_data [ "Acoustic model" ] [ "data" ] [ "Version" ] = ( self . meta [ "version" ] , version_color , ) if "citation" in self . meta : configuration_data [ "Acoustic model" ] [ "data" ] [ "Citation" ] = self . meta [ "citation" ] if "train_date" in self . meta : configuration_data [ "Acoustic model" ] [ "data" ] [ "Train date" ] = self . meta [ "train_date" ] configuration_data [ "Acoustic model" ] [ "data" ] [ "Architecture" ] = self . meta [ "architecture" ] configuration_data [ "Acoustic model" ] [ "data" ] [ "Phone type" ] = self . meta [ "phone_type" ] configuration_data [ "Acoustic model" ] [ "data" ] [ "Features" ] = { "Feature type" : self . meta [ "features" ] [ "feature_type" ] , "Frame shift" : self . meta [ "features" ] [ "frame_shift" ] , "Performs speaker adaptation" : self . meta [ "features" ] [ "uses_speaker_adaptation" ] , "Performs LDA on features" : self . meta [ "features" ] [ "uses_splices" ] , } if self . meta [ "phones" ] : configuration_data [ "Acoustic model" ] [ "data" ] [ "Phones" ] = self . meta [ "phones" ] else : configuration_data [ "Acoustic model" ] [ "data" ] [ "Phones" ] = ( "None found!" , "red" ) printer . print_config ( configuration_data )
Prints the metadata information to the terminal
Prints the metadata information to the terminal
"""
        Prints the metadata information to the terminal
        """
self