Skip to content

(LM studio Edition) A language learning tool to help users learn spanish with AI. Use your own custom translation model, and tweak settings locally with LM studio.

License

Notifications You must be signed in to change notification settings

Sknow1112/LanguageLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language Learning (LM Studio Edition)

This project is a language learning tool designed to help users learn Spanish. It uses a local text generation model to assess the user's current knowledge and then provides a learning path based on the assessment. You can use this project with any gguf AI model for Translation on Hugging Face. This version gives you more power to choose whatever model you would like, at the cost of having to install the model yourself with LM Studio. The project is only as effective as the model you use.

IMPORTANT: This project uses a local model to translate sentences to Spanish with LM Studio. You need to have the local model loaded on your machine to run this project!!

Features

  • Assessment: The program assesses the user's current Spanish knowledge by asking them to translate a set of sentences.
  • Learning Path: Based on the assessment, the program provides a learning path that is suitable for the user's current knowledge level.
  • Sentence Storage: The program stores sentences that the user has learned and those that the user has translated incorrectly for future reference.
  • Difficulty Levels: The program offers three difficulty levels to cater to beginners, intermediate learners, and advanced learners.
  • Interactive Learning: The program provides an interactive learning experience with immediate feedback on translations.

How to Run

Imports:

pip install openai

Unicode data and Random are also used, install if you don't have them already.

To run this project, you need to have Python (3.7) installed on your machine. And, of course, you can then run the main.py file using the following command:

python3 main.py

You also need to have a local model loaded on your machine with a local server. The default port is 1770. You can learn more here:

Local server set up on LM Studio

Files

The project consists of two main Python files:

  • main.py: Contains the main logic for assessing the user's knowledge and providing the learning path.
  • ai_utils.py: This file contains utility functions for generating sentences, translating them to Spanish, and checking the user's translations.
  • sentence_storage.py: This file manages the storage of sentences. It keeps track of sentences that the user has learned and those that the user has translated incorrectly.

Contributing

Contributions are welcome! Please feel free to submit a pull request. There are some issues with prompting that could be rewritten to streamline to make the project more user-friendly.

License

This project is licensed under the MIT License.


About

(LM studio Edition) A language learning tool to help users learn spanish with AI. Use your own custom translation model, and tweak settings locally with LM studio.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages