Code Monkey home page Code Monkey logo

language-translation's Introduction

English to French Translator

Neural machine translator for English2French translation.

Overview

This project is about translation from English to French language. That is accomplished by using TensorFlow library, more specifically it utilizes embedding with attention sequence-to-sequence RNN model. The dataset is text files of ~140,000 fairly simple sentences in English and in French.

This is made possible by the simple but powerful idea of the sequence to sequence network, in which two recurrent neural networks work together to transform one sequence to another. An encoder network condenses an input sequence into a vector, and a decoder network unfolds that vector into a new sequence.

Files

Jupyter Notebook

Hyperparameters

Hyperparameter Number
Epochs 5
Batch size 128
RNN size 128
LSTM layers 2
Encoding embedding size 128
Decoding embedding size 128
Learning rate 0.01
Keep probability 0.8

Dataset

WMT10 French-English corpus

language-translation's People

Contributors

hparik11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

language-translation's Issues

regarding translation

Hi,

i have followed your tutorial for language translation , in decoding -training there is an bug, please help what wrong i am doing

Traceback (most recent call last):
File "C:/Users/T Poornima/PycharmProjects/nlp_example/tranlation.py", line 193, in
tests.test_decoding_layer_train(decoding_layer_train)
File "C:\Users\T Poornima\PycharmProjects\nlp_example\problem_unittests.py", line 342, in test_decoding_layer_train
keep_prob)
File "C:/Users/T Poornima/PycharmProjects/nlp_example/tranlation.py", line 185, in decoding_layer_train
maximum_iterations=max_summary_length)
ValueError: too many values to unpack (expected 2)

please help me to solve that

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.