GIZA训练脚本

import os



#q2a

os.system("./plain2snt.out question answer");

os.system("./mkcls -pquestion -Vquestion.vcb.classes opt");

os.system("./GIZA++ -S question.vcb -T answer.vcb -C question_answer.snt -O q2a");



#a2q

os.system("./plain2snt.out answer question");

os.system("./mkcls -panswer -Vanswer.vcb.classes opt");

os.system("./GIZA++ -S answer.vcb -T question.vcb -C answer_question.snt -O a2q");



 

 

你可能感兴趣的:(C++,c,C#,脚本,OS)