kmeranda / translator Goto Github PK
View Code? Open in Web Editor NEWThis program takes in a synchronous grammar file and a file of lines to be translated using the grammar. It generates a probabilistic context-free grammar using the rules file. Then it uses viterbi and cky parsing algorithms on the input file to generate the translations of each line and outputs it to an output file.