montreal_forced_aligner/models.py
def empty(
        cls, head: str, root_directory: Optional[str] = None
    ) -> Union[Archive, IvectorExtractorModel, AcousticModel, G2PModel, LanguageModel]:
        """
        Initialize an archive using an empty directory

        Parameters
        ----------
        head: str
            Directory name to create
        root_directory: str, optional
            Root directory to create temporary data, defaults to the MFA temporary directory

        Returns
        -------
        :class:`~montreal_forced_aligner.models.Archive`, :class:`~montreal_forced_aligner.models.AcousticModel`, :class:`~montreal_forced_aligner.models.G2PModel`, :class:`~montreal_forced_aligner.models.LanguageModel`, or :class:`~montreal_forced_aligner.models.IvectorExtractorModel`
            Model constructed from the empty directory
        """
        from .config import get_temporary_directory

        if root_directory is None:
            root_directory = get_temporary_directory()

        os.makedirs(root_directory, exist_ok=True)
        source = os.path.join(root_directory, head)
        os.makedirs(source, exist_ok=True)
        return cls(source)

        Initialize an archive using an empty directory

        Parameters
        ----------
        head: str
            Directory name to create
        root_directory: str, optional
            Root directory to create temporary data, defaults to the MFA temporary directory

        Returns
        -------
        :class:`~montreal_forced_aligner.models.Archive`, :class:`~montreal_forced_aligner.models.AcousticModel`, :class:`~montreal_forced_aligner.models.G2PModel`, :class:`~montreal_forced_aligner.models.LanguageModel`, or :class:`~montreal_forced_aligner.models.IvectorExtractorModel`
            Model constructed from the empty directory
        
Initialize an archive using an empty directory
Parameters

str
Directory name to create
root_directory: str, optional
Root directory to create temporary data, defaults to the MFA temporary directory

Returns
Initialize an archive using an empty directory Parameters str Directory name to create root_directory : str optional Root directory to create temporary data defaults to the MFA temporary directory Returns
def empty(
        cls, head: str, root_directory: Optional[str] = None
    ) -> Union[Archive, IvectorExtractorModel, AcousticModel, G2PModel, LanguageModel]:
        from .config import get_temporary_directory
        if root_directory is None:
            root_directory = get_temporary_directory()
        os.makedirs(root_directory, exist_ok=True)
        source = os.path.join(root_directory, head)
        os.makedirs(source, exist_ok=True)
        return cls(source)
def empty ( cls , head : str , root_directory : Optional [ str ] = None ) -> Union [ Archive , IvectorExtractorModel , AcousticModel , G2PModel , LanguageModel ] : from . config import get_temporary_directory if root_directory is None : root_directory = get_temporary_directory ( ) os . makedirs ( root_directory , exist_ok = True ) source = os . path . join ( root_directory , head ) os . makedirs ( source , exist_ok = True ) return cls ( source )
Initialize an archive using an empty directory
Parameters
Initialize an archive using an empty directory Parameters
"""
        Initialize an archive using an empty directory

        Parameters
        ----------
        head: str
            Directory name to create
        root_directory: str, optional
            Root directory to create temporary data, defaults to the MFA temporary directory

        Returns
        -------
        :class:`~montreal_forced_aligner.models.Archive`, :class:`~montreal_forced_aligner.models.AcousticModel`, :class:`~montreal_forced_aligner.models.G2PModel`, :class:`~montreal_forced_aligner.models.LanguageModel`, or :class:`~montreal_forced_aligner.models.IvectorExtractorModel`
            Model constructed from the empty directory
        """
cls
head
str
root_directory
Optional[str]
class
`~montreal_forced_aligner.models.Archive`, :class:`~montreal_forced_aligner.models.AcousticModel`, :class:`~montreal_forced_aligner.models.G2PModel`, :class:`~montreal_forced_aligner.models.LanguageModel`, or :class:`~montreal_forced_aligner.models.IvectorExtractorModel`
Model constructed from the empty directory
` ~montreal_forced_aligner . models . Archive ` : class : ` ~montreal_forced_aligner . models . AcousticModel ` : class : ` ~montreal_forced_aligner . models . G2PModel ` : class : ` ~montreal_forced_aligner . models . LanguageModel ` or : class : ` ~montreal_forced_aligner . models . IvectorExtractorModel ` Model constructed from the empty directory