montreal_forced_aligner/models.py
def validate(self, word_list: Collection[str]) -> bool:
        """
        Validate the G2P model against a word list to ensure that all graphemes are known

        Parameters
        ----------
        word_list: Collection[str]
            Word list to validate against

        Returns
        -------
        bool
            False if missing graphemes were found
        """
        graphemes = set()
        for w in word_list:
            graphemes.update(w)
        missing_graphemes = graphemes - self.meta["graphemes"]
        if missing_graphemes:
            return False
        else:
            return True

        Validate the G2P model against a word list to ensure that all graphemes are known

        Parameters
        ----------
        word_list: Collection[str]
            Word list to validate against

        Returns
        -------
        bool
            False if missing graphemes were found
        
Validate the G2P model against a word list to ensure that all graphemes are known
Parameters

Collection[str]
Word list to validate against

Returns

bool
False if missing graphemes were found
Validate the G2P model against a word list to ensure that all graphemes are known Parameters Collection [ str ] Word list to validate against Returns bool False if missing graphemes were found
def validate(self, word_list: Collection[str]) -> bool:
        graphemes = set()
        for w in word_list:
            graphemes.update(w)
        missing_graphemes = graphemes - self.meta["graphemes"]
        if missing_graphemes:
            return False
        else:
            return True
def validate ( self , word_list : Collection [ str ] ) -> bool : graphemes = set ( ) for w in word_list : graphemes . update ( w ) missing_graphemes = graphemes - self . meta [ "graphemes" ] if missing_graphemes : return False else : return True
Validate the G2P model against a word list to ensure that all graphemes are known
Parameters
Validate the G2P model against a word list to ensure that all graphemes are known Parameters
"""
        Validate the G2P model against a word list to ensure that all graphemes are known

        Parameters
        ----------
        word_list: Collection[str]
            Word list to validate against

        Returns
        -------
        bool
            False if missing graphemes were found
        """
self
word_list
Collection[str]