Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

GossaLo/afr-neural-folktales

Domain:

natural language processing

Record type:

project
Creator:
Gos
Host:
This repository contains the code, data and models for the "Exploring West African Folk Narrative Texts using Machine Learning" master thesis. # afr-neural-folktales This repository contains the code, data and models for the "Exploring West African Folk Narrative Texts using Machine Learning" master thesis. The "data" folder stores the Western European corpora of folk tales needed to run the code. The "code" folder contains five Python files and three Jupyter Notebook files, each belonging to one of the three experiments described in the thesis: Experiment 1 - Text Generation: - word_level_rnn.py: Trains a word-level RNN model for text generation. - word_level_predictions.py: Generates text based on a model file ("weights.hdf5"), a file with sequences ("afr_sequences.txt") and a tokenizer ("tokenizer.pkl"). - char_level_rnn.py: Trains a character-level RNN model for text generation. - char_level_predictions.py: Generates text based on a model file ("model.hdf5"). Experiment 2 - Text Classification: - lstm_classifier.py: Trains and evaluates a deep learning LSTM classification model. - bow_classifier.py: Trains and evaluates a Bag-of-Words classificaiton. - tsne.py: Generates a T-SNE interactive visualization in HTML. The interactive T-SNE can be found here: gossalo.github.io Experiment 3 - Narrative Structure Analysis: - structure_classifier.ipynb: Trains multiple machine learning algorithms for narrative structure classification. Some of the code was derived from the following online machine/deep learning tutorials: - machinelearningmastery.com - kdnuggets.com

Visit

github.com

Tasks

natural language generationtext classification

Similar

unimorph/afrapertium/apertium-afrivanliu1989/Afr-Soil-Predictionreaganmogire/lft-gwas-afrapertium/apertium-afr-deuBabyLM-community/babylm-afr

unimorph/afr

Afrikaans # Afrikaans (afr) Contains Afrikaans paradigms for all of parts of speech, including: no

apertium/apertium-afr

Apertium linguistic data for Afrikaans Afrikaans apertium-afr ====================================

ivanliu1989/Afr-Soil-Prediction

Advances in rapid, low cost analysis of soil samples using infrared spectroscopy, georeferencing of

reaganmogire/lft-gwas-afr

Template scripts for multi-cohort GWAS of liver enzyme traits in African populations # Multi-cohort

apertium/apertium-afr-deu

Apertium Afrikaans-German Language Pair Afrikaans and German: `apertium-afr-deu` ==================

BabyLM-community/babylm-afr

This dataset is part of the BabyLM multilingual collection. Language: afr Script: Latin Number of D