dsfsi / masakhane-web Goto Github PK
View Code? Open in Web Editor NEWMasakhane Web is a translation web application for solely African Languages.
Home Page: http://translate.masakhane.io
License: MIT License
Masakhane Web is a translation web application for solely African Languages.
Home Page: http://translate.masakhane.io
License: MIT License
The service starts with no language in memory, and we need to run curl --request GET 'http://127.0.0.1:5000/update
to load the language pairs available in the database python manage.py all_languages
in memory.
Edit the class AddResource to have default mode loaded when the command docker-compose up -d
Investigate, why the production backend service stops from time to time.
Combine the steps of adding and updating loaded language models.
Masakhane Translate has a Manage CLI that let's you add language model info from the database, among other things. Language model info refers to the data stored in the database (Fig 1), the actual language models are downloaded in another step. The database seems to serve as a reference as to which database models are downloaded. The add_lang
command (Fig 2) reads languages.json
- which is just a file storing the language names & shorthands - and gets the name_tag composition to be stored in the database using the user-defined Language
DB model. Take note of the database implementation using FlaskSQLAlchemy.
Once model info has been loaded into the database, the /update
endpoint - which is linked to the AddResource
Class (Fig 3) - must be hit which will go through the name_tags in the database and download the model files from Zenodo if necessary. Once the model has been downloaded it is loaded into memory with self.models
which is a dictonary. It will also remove any models in memory that no longer have a reference in the DB.
translate.py
model_load.py
init.py
manage.py
Figure 1 - Language table contents
Figure 2 - add_language
command
Model info added to the database
Figure 3 - AddResource
Class
Model info used to download models
Secure translate.masakhane.io/
The instructions on running the app through docker are not correct. To run the container we should use docker-compose up-d --build rather than docker-compose -f docker-compose.prod.yml up -d --build which is a command to run on production and it doesn't work on dev.
Create documentation on guidelines to go about when updating dependencies.
It will probably involve going to the branch of the dependency upgrade and figuring if, and why, it might break and updating the code and testing before merging it into master.
There is a dependancy bot in the repo that checks for out of date dependencies, once found it creates a new branch, updates the dependencies and creates a PR. Dependencies have a high chance of causing packages in the project to be invalid with one another and cause errors.
Include specific tasks in the order they need to be done in. Include links to specific lines of code where the task should happen at.
After learning about the backend of Masakhane Translate, I'd like to document explanations on the details of the system so future developers can get started easier.
The issues #57 & #69 have been resolved in the PR #70
We need to merge the changes into production & ensure everything works as expected.
Integrate AfroTranslate package into the code base
It seems like the pre/post processing steps need to be revisited to make sure that the translation is case insensitive.
** Update the Readme - Running the system as a standalone on local machine gives - NO module named polyglot error when Installing required packages -pip install -r requirements.txt
See pull request by Julia
We need to have these configurations added
For the models that are missing in Zenodo but are on Masakhane Web Translate, lets create the zip payloads to be uploaded to Zenodo. Once on Zenodo, the links in available models, should now point to Zenodo
Refactor
A list of relevant files for this issue. This will help people navigate the project and offer some clues of where to start.
If this issue is describing a bug, include some steps to reproduce the behavior.
Include specific tasks in the order they need to be done in. Include links to specific lines of code where the task should happen at.
Afternoon @PeaceAz and @ntsakomtombeni
Be able to run the system on your local machine.
Run through Docker Compose
You will need to install docker on your local machine
Read the instructions in the README to get the system running locally.
I you have problems, please tag @Kabongosalomon
FOR SOMEONE WITH KNOWLEDGE OF REACT
Create Docs explaining the structure of the frontend.
The frontend/client is written in React and uses Webpack.
Include specific tasks in the order they need to be done in. Include links to specific lines of code where the task should happen at.
Split the docker/standalone setup into it's own docs to shorten the README
README - Repo Description & Contributions
start_app.md - Instructions to run the app using docker/stand-alone
debug_errors.md - Doc to test the running app and solutions on potential errors
Display Masakhane favicon on the browsing tab
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.