Code Monkey home page Code Monkey logo

language_app_nlp's Introduction

Translation App

This is a simple translation app that uses a neural machine translation model to translate text or speech from English to Spanish and vice versa. The app is designed to run locally on your computer after you clone the repository and install the necessary dependencies.

Model Architecture

The model used in this app is a neural machine translation model that consists of an encoder and a decoder. The encoder is a Long Short-Term Memory (LSTM) network that processes the input sequence and produces a fixed-length representation of it. The decoder is another LSTM network that takes the encoder's output as input and generates the output sequence. The model architecture is shown below:

Model Image

The data used in this application is from the Tatoeba Project, which can be downloaded from datasets

Installation

To install the app, you should first clone the repository to your local machine. Then, navigate to the app directory and create a conda environment using the provided environment.yml file:

conda env create -f environment.yml

This will create a new environment called machine_translation. To activate the environment, run:

conda activate machine_translation

Running the App

To run the app, you need to activate the translator environment and navigate to the app directory. Then, run the translator.py script:

cd app && python translator.py

This will start a web server on your local machine that you can access using your web browser at http://localhost:5000. The web page looks like this:

App running

To translate a text, simply type the text in the input box and click on the Translate button. To translate a speech, click on the Record button and speak your sentence. The app will automatically recognize your speech and translate it.

Please note that the translation quality of the model is not perfect and there might be some errors in the translations. The model currently only supports English and Spanish languages.

Acknowledgments

This app was developed as an assignment for the NLP course of the MSc AI program at Vrije Universiteit Amsterdam, edition 2023. The neural machine translation model used in the app follows the tutorial found at: Tutorial website

language_app_nlp's People

Contributors

sergi095 avatar

Watchers

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