a847e176cb012c8d0469693961e4e90c8131136d,xh/evaluate_pronunciation_rules.py,,,#,65

Before Change


      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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: ilastik/ilastik
Commit Name: 8861dfa21d1cfd487b7a6eb7508885f084f58e6c
Time: 2019-07-10
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: __init__


Project Name: gyoisamurai/GyoiThon
Commit Name: cb54672c91f92d68179b2bdcfeb617f6bef9f390
Time: 2018-08-20
Author: gyoiler3@gmail.com
File Name: gyoithon.py
Class Name:
Method Name: classifier_signature


Project Name: ina-foss/inaSpeechSegmenter
Commit Name: 4396573e860d553825702006aa335989356b45c8
Time: 2020-05-10
Author: ddoukhan@ina.fr
File Name: inaSpeechSegmenter/segmenter.py
Class Name:
Method Name: featGenerator