Giter Site home page Giter Site logo

kmeranda / translator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25.08 MB

This 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.

Python 100.00%

translator's Introduction

Kelsey Meranda

To run: Use the command "python translator.py" to use the default files for the grammar, input and output files. use the "-h" or the "--help" flag to get more information about the customizable functionalities of the program.

To test accuracy: use the bleu.py file with the output file of the translator and the desired translations to get the bleu score of the translation. That is, use the command "python bleu.py <desired_output>"

translator's People

Contributors

kmeranda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.