montreal_forced_aligner/models.py
def parse_old_features(self) -> None:
        """
        Parse MFA model's features and ensure that they are up-to-date with current functionality
        """
        if "features" not in self._meta:
            return
        feature_key_remapping = {
            "type": "feature_type",
            "deltas": "uses_deltas",
            "fmllr": "uses_speaker_adaptation",
        }

        for key, new_key in feature_key_remapping.items():
            if key in self._meta["features"]:
                self._meta["features"][new_key] = self._meta["features"][key]
                del self._meta["features"][key]
        if "uses_splices" not in self._meta["features"]:  # Backwards compatibility
            self._meta["features"]["uses_splices"] = os.path.exists(
                os.path.join(self.dirname, "lda.mat")
            )
        if "uses_speaker_adaptation" not in self._meta["features"]:
            self._meta["features"]["uses_speaker_adaptation"] = os.path.exists(
                os.path.join(self.dirname, "final.alimdl")
            )

        Parse MFA model's features and ensure that they are up-to-date with current functionality
        
Parse MFA model's features and ensure that they are up-to-date with current functionality
Parse MFA model ' s features and ensure that they are up - to - date with current functionality
def parse_old_features(self) -> None:
        if "features" not in self._meta:
            return
        feature_key_remapping = {
            "type": "feature_type",
            "deltas": "uses_deltas",
            "fmllr": "uses_speaker_adaptation",
        }
        for key, new_key in feature_key_remapping.items():
            if key in self._meta["features"]:
                self._meta["features"][new_key] = self._meta["features"][key]
                del self._meta["features"][key]
        if "uses_splices" not in self._meta["features"]:  
            self._meta["features"]["uses_splices"] = os.path.exists(
                os.path.join(self.dirname, "lda.mat")
            )
        if "uses_speaker_adaptation" not in self._meta["features"]:
            self._meta["features"]["uses_speaker_adaptation"] = os.path.exists(
                os.path.join(self.dirname, "final.alimdl")
            )
def parse_old_features ( self ) -> None : if "features" not in self . _meta : return feature_key_remapping = { "type" : "feature_type" , "deltas" : "uses_deltas" , "fmllr" : "uses_speaker_adaptation" , } for key , new_key in feature_key_remapping . items ( ) : if key in self . _meta [ "features" ] : self . _meta [ "features" ] [ new_key ] = self . _meta [ "features" ] [ key ] del self . _meta [ "features" ] [ key ] if "uses_splices" not in self . _meta [ "features" ] : self . _meta [ "features" ] [ "uses_splices" ] = os . path . exists ( os . path . join ( self . dirname , "lda.mat" ) ) if "uses_speaker_adaptation" not in self . _meta [ "features" ] : self . _meta [ "features" ] [ "uses_speaker_adaptation" ] = os . path . exists ( os . path . join ( self . dirname , "final.alimdl" ) )
Parse MFA model's features and ensure that they are up-to-date with current functionality
Parse MFA model ' s features and ensure that they are up - to - date with current functionality
"""
        Parse MFA model's features and ensure that they are up-to-date with current functionality
        """ # Backwards compatibility
self