a847e176cb012c8d0469693961e4e90c8131136d,xh/evaluate_pronunciation_rules.py,,,#,65
Before Change
xltor = GetPronunciationRules(rules, "xh-xh_FONIPA")
mapping = GetSampaToIpaMapping(phonemes)
with open(dictionary, "r") as f:
for orth, sampa, ipa in ReadPronunciationDictionary(f, mapping):
if orth == "apreli": // known issue
continue
expected = xltor.transliterate(orth)
if expected != ipa:
STDOUT.write("%s\t%s\t%s != %s\n" %
(orth, " ".join(sampa), ipa, expected))
sys.exit(1)
After Change
assert 3 <= len(sys.argv) <= 4
xltor = GetPronunciationRules(sys.argv[1], "xh-xh_FONIPA")
mapping = GetSampaToIpaMapping(sys.argv[2])
if len(sys.argv) > 3:
TestPronunciationRules(xltor, mapping, sys.argv[3])
else:
ApplyPronunciationRules(xltor, mapping)

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: google/language-resources
Commit Name: a847e176cb012c8d0469693961e4e90c8131136d
Time: 2016-01-07
Author: mjansche@google.com
File Name: xh/evaluate_pronunciation_rules.py
Class Name:
Method Name:
Project Name: comic/grand-challenge.org
Commit Name: 4d9d2a1fc4e0d9289000a235340235802d51a97a
Time: 2021-02-12
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/dicom.py
Class Name:
Method Name: _create_itk_from_dcm
Project Name: tensorflow/models
Commit Name: fcd690b14b04c11e7f25b9d473db056c4b7947b3
Time: 2020-09-30
Author: tanzheny@google.com
File Name: official/vision/keras_cv/ops/iou_similarity.py
Class Name: IouSimilarity
Method Name: __call__