e1cb7c150166e2d911c65f1210a5023089f696c1,utils/text/__init__.py,,text2phone,#Any#,22

Before Change


    """
    Convert graphemes to phonemes.
    """
    try:
        ph = epi.trans_list(text, normpunc=True)
    except:
        ph = None
    return ph

   
def phoneme_to_sequence(text, cleaner_names):

After Change


    """
    Convert graphemes to phonemes.
    """
    seperator = phonemizer.separator.Separator(" ", "", "|")
    //try:
    punctuations = re.findall(pat, text)
    ph = phonemizer.phonemize(text, separator=seperator, strip=False, njobs=1, backend="espeak", language="en-us")
    // Replace \n with matching punctuations.
    for punct in punctuations[:-1]:
        ph = ph.replace(" \n", punct+"| ", 1)
    ph = ph[:-1] + punctuations[-1]
    //except:
    //    ph = None
    return ph
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: mozilla/TTS
Commit Name: e1cb7c150166e2d911c65f1210a5023089f696c1
Time: 2019-01-16
Author: egolge@mozilla.com
File Name: utils/text/__init__.py
Class Name:
Method Name: text2phone


Project Name: aleju/imgaug
Commit Name: 2a1bd4c93a998d16516d82893401b346d66a95e9
Time: 2019-07-19
Author: kontakt@ajung.name
File Name: imgaug/dtypes.py
Class Name:
Method Name: get_minimal_dtype


Project Name: mozilla/TTS
Commit Name: e1cb7c150166e2d911c65f1210a5023089f696c1
Time: 2019-01-16
Author: egolge@mozilla.com
File Name: utils/text/__init__.py
Class Name:
Method Name: text2phone


Project Name: mozilla/TTS
Commit Name: b9629135db173344eef4316136542b49b00b9808
Time: 2019-01-16
Author: egolge@mozilla.com
File Name: utils/text/__init__.py
Class Name:
Method Name: text2phone