-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Port tests from Ruby to Python.
d_tests = [{'original' => '# گيله پسمير الجديد 34',
'diacritized' => 'يَلِهُ سُمِيْرٌ الجَدِيدُ',
'reconciled' => '# گيَلِهُ پسُمِيْرٌ الجَدِيدُ 34' },
{'original' => 'abc',
'diacritized' => '',
'reconciled' => 'abc'},
{'original' => '‘Iz. Ibrāhīm as-Sa‘danī',
'diacritized' => '',
'reconciled' => '‘Iz. Ibrāhīm as-Sa‘danī'},
{'original' => '26 سبتمبر العقبة',
'diacritized' => 'سَبْتَمْبَرِ العَقَبَة',
'reconciled' => '26 سَبْتَمْبَرِ العَقَبَة'}]
d_tests.each {|d| \
if not d['reconciled']==reconcile_strings(d['original'], d['diacritized'])
raise Exception.new('reconcile string not matched')
end
}
or:
for s in '# گيله پسمير الجديد 34' 'abc' '‘Iz. Ibrāhīm as-Sa‘danī' '26 سبتمبر العقبة'
do;
ruby rababa.rb -t $s -m '../models-data/diacritization_model.onnx'
done
``
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
High priority