Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

JABU-2022/English_to_Kinyarwanda_Translation_with_RNNs

Domaine:

natural language processing

Type de record:

model
Créateur:
JAB
Hôte:
# English to Kinyarwanda Translation using RNNs This project aims to build a model that translates text from English to Kinyarwanda using Recurrent Neural Networks (RNNs). ## Dataset The dataset used for this project was sourced from publicly available resources: - Dataset 1 - Dataset 2 - Dataset 3 ## Preprocessing - Lowercasing - Removing Non-Alphanumeric Characters - Adding Special Tokens ( , ) - Tokenization - Padding ## Model Architecture The model uses a Bidirectional GRU for the encoder and a GRU for the decoder, with embedding layers for converting integer sequences to dense vectors. ### Encoder from tensorflow.keras.layers import Embedding, GRU, Bidirectional from tensorflow.keras.models import Model import tensorflow as tf class Encoder(Model): def __init__(self, vocab_size, embedding_dim, enc_units, batch_sz): super(Encoder, self).__init__() self.batch_sz = batch_sz self.enc_units = enc_units self.embedding = Embedding(vocab_size, embedding_dim) self.gru = Bidirectional(GRU(self.enc_units, return_sequences=True, return_state=True, recurrent_initializer='glorot_uniform')) def call(self, x, hidden): x = self.embedding(x) output, forward_h, backward_h = self.gru(x, initial_state=hidden) state = tf.concat([forward_h, backward_h], axis=-1) return output, state def initialize_hidden_state(self): return [tf.zeros((self.batch_sz, self.enc_units)) for _ in range(2)] ### Decoder class Decoder(Model): def __init__(self, vocab_size, embedding_dim, dec_units, batch_sz): super(Decoder, self).__init__() self.batch_sz = batch_sz self.dec_units = dec_units self.embedding = Embedding(vocab_size, embedding_dim) self.gru = GRU(self.dec_units, return_sequences=True, return_state=True, recurrent_initializer='glorot_uniform') self.fc = Dense(vocab_size) def call(self, x, hidden, enc_output): x = self.embedding(x) output, state = self.gru(x, initial_state=hidden) output = self.fc(output) return output, state ## Training Process and Hyperparameters ### Training Step …

Visit

github.com

Tasks

machine translation

Languages

Kinyarwanda

Similaires

Gin shi shang hte jabu yang (Ginshin Shang and Jabu Yang) with English translationJabu Ajasco singing traditional songs KWB086 A documentation project of Baa, a language of Nigeriaogbeiedward/South-African-Language-Identification-EDSA-2022-Classification-2022SummerHealthGH/2022-gdhs-analysis-summerhealth: 2022 gdhs analysis - Initial Release

Gin shi shang hte jabu yang (Ginshin Shang and Jabu Yang) with English translation

Translation (Htoi San) Now I am going to tell a story about 'Ginshin Shang' and 'Jabu Yang.' A long

Jabu Ajasco singing traditional songs KWB086 A documentation project of Baa, a language of Nigeria

Jabu Ajasco sings traditional songs. The songs are normally sung by Nyaso women, a group of initiate

ogbeiedward/South-African-Language-Identification-EDSA-2022-Classification-2022

Overview South Africa is a multicultural society that is characterised by its rich linguistic divers

SummerHealthGH/2022-gdhs-analysis-summerhealth: 2022 gdhs analysis - Initial Release

v1.0.0 — Initial Release First public release of the analysis pipeline for Digital access, media ex