summerbell 发表于 2013-1-28 19:27:01

GIZA训练脚本

import os#q2aos.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");#a2qos.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");  
页: [1]
查看完整版本: GIZA训练脚本