53a48113a223514f8e151f5076a63431545eaee8,utils/evaluate_pronunciation_rules.py,,GetPronunciationRules,#Any#Any#,30
Before Change
def GetPronunciationRules(path, name):
with utf8.open(path) as reader:
rules = reader.read()
return icu.Transliterator.createFromRules(
name, rules, icu.UTransDirection.FORWARD)
After Change
def GetPronunciationRules(path, name):
rules = utf8.GetContents(path)
transliterator = icu.Transliterator.createFromRules(
name, rules, icu.UTransDirection.FORWARD)
return transliterator
def GetSampaToIpaMapping(path):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: google/language-resources
Commit Name: 53a48113a223514f8e151f5076a63431545eaee8
Time: 2017-11-14
Author: mjansche@google.com
File Name: utils/evaluate_pronunciation_rules.py
Class Name:
Method Name: GetPronunciationRules
Project Name: google/language-resources
Commit Name: 53a48113a223514f8e151f5076a63431545eaee8
Time: 2017-11-14
Author: mjansche@google.com
File Name: utils/icu_util.py
Class Name:
Method Name: LoadTransliterationRules
Project Name: google/language-resources
Commit Name: 53a48113a223514f8e151f5076a63431545eaee8
Time: 2017-11-14
Author: mjansche@google.com
File Name: utils/test_icu_transform.py
Class Name:
Method Name: main
Project Name: google/language-resources
Commit Name: 53a48113a223514f8e151f5076a63431545eaee8
Time: 2017-11-14
Author: mjansche@google.com
File Name: utils/apply_phonology.py
Class Name:
Method Name: ReadPhonology