a847e176cb012c8d0469693961e4e90c8131136d,xh/evaluate_pronunciation_rules.py,,,#,65
Before Change
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))
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: 5
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: jantic/DeOldify
Commit Name: 52b802a1664ee848b70e37ecbf6f119d0e24b733
Time: 2019-01-20
Author: jsa169@gmail.com
File Name: fasterai/tensorboard.py
Class Name: LearnerTensorboardWriter
Method Name: _write_metrics
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: chartbeat-labs/textacy
Commit Name: eaaf2bad32af4bda1a98d434530926bb6a001230
Time: 2019-08-23
Author: burtdewilde@gmail.com
File Name: textacy/augmentation/transformations.py
Class Name:
Method Name: insert_synonyms