GithubHelp home page GithubHelp logo

kolloldas / tf-transliteration Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 6.0 11 KB

TensorFlow implementation of Google i18n Transliteration Model

License: Apache License 2.0

Python 100.00%
tensorflow transliteration ctc-loss

tf-transliteration's Introduction

tf-transliteration

TensorFlow implementation of the Google Transliteration model in the paper Sequence-to-sequence neural network models for transliteration. Specifically it implements the BiLSTM-CTC model using Epsilon Insertion.

Usage

For the code to run you need Python 3.5+ and Tensorflow 1.5+

Training: The dataset must be provided as tab separated files. You can get an English-to-Hindi transliteration dataset here Train the model for 10,000 steps, evaluating every 1000 steps:

python transliterate.py --data_file=<filename> --train_steps=10000 --eval_steps=100 --min_eval_frequency=1000

During evaluation the CER will be displayed.

Predicting: For predictions the inputs should be provided as a text file with one example per line.

python transliterate.py --decode_input_file=<filename>

The predictions will be written into a corresponding filename.out.ext

tf-transliteration's People

Contributors

kolloldas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tf-transliteration's Issues

Predicting over a single word

Hi,
I'd like to use your code for predicting over a single word as an input (instead of a txt file) and without converting it to a tfrecord file. Is there a way of doing so?

Thank you in advance

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.