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.

Mohamed-Amine0/chatbot-tounsi-similarity

Domain:

natural language processing

Record type:

software
Creator:
Moh
Host:
This project is a Tunisian dialect chatbot implemented in Python using the ChatterBot library. # Chatbot Tounsi This project is a Tunisian dialect chatbot implemented in Python using the ChatterBot library. ## Files - chatbot.py: The main chatbot script. - cleaner.py: Contains functions for cleaning the chat corpus. - chatbot-Tounsi.ipynb: A Jupyter notebook version of the chatbot. ## The chatbot in chatbot-Tounsi.ipynb is created through several steps: 1. **Importing necessary modules**: Modules like `chatterbot`, `chatterbot.trainers`, `cleaner`, `weather`, `wikipediaprocess`, and `newsapi` are imported. These modules provide the functionalities for chatbot training, weather information retrieval, Wikipedia search, and news retrieval. 2. **Creating a ChatBot instance**: An instance of `ChatBot` is created with the name "Chatbot tounsi". This instance is configured with logic adapters for mathematical evaluation and best match conversation. 3. **Training the chatbot**: The chatbot is trained using a `ListTrainer` and a cleaned corpus. The corpus is cleaned using the `clean_corpus` function from the `cleaner` module. 4. **Running the chatbot**: The chatbot runs in a loop, waiting for user input. It can handle different types of queries: - If the query is an exit command (":q", "quit", "exit"), the loop breaks and the chatbot stops. - If the query starts with "chnowa ta9s fi ", the chatbot interprets it as a request for weather information. It uses the `get_weather` function from the `weather` module to retrieve the weather for the specified location. - If the query starts with "wiki ", the chatbot interprets it as a request for a Wikipedia search. It uses the `search_wikipedia` function from the `wikipediaprocess` module to search Wikipedia for the specified topic. This approach allows the chatbot to provide interactive responses based on real-time weather updates and Wikipedia information. ## Setup 1. Install the required Python packages: ```sh pip install chatterbot pip install chatterbot_weather pip install newsapi-python

Visit

github.com

Languages

Arabic, Tunisian Spoken

Similar

tounsi-nlp/tounsi-old.github.ioAlexandrLebegue/tounsi-learnerMohamed-cultureM13/Nikofitimohamed-ahmed3/African_Inflation_ForecastingMohamed-gp/algeria_69_wilayasMohamed-bouri/adhan

tounsi-nlp/tounsi-old.github.io

Tunisian Arabic NLP: Datasets, Models and Papers

AlexandrLebegue/tounsi-learner

App to learn Tunisian and play with your friends # 🎈 Blank app template A simple Streamlit app tem

Mohamed-cultureM13/Nikofiti

Nikofiti is a smart and interactive WhatsApp chatbot built with Django and Meta Cloud API, designed

mohamed-ahmed3/African_Inflation_Forecasting

TA time-series forecasting methodology for African inflation. # African_Inflation_Forecasting A tim

Mohamed-gp/algeria_69_wilayas

🇩🇿 All 69 Algerian wilayas + 1,541 communes as free JSON — official numbering, Arabic names, coordin

Mohamed-bouri/adhan

adhan app for Oued ZEM, Morocco devloped for blackberry torch 9800 # BlackBerry OS Adhan Applicati