The main idea of the project is to facilitate the learning of other languages. We created a simple AI that will interact with you. Just ask questions that if she knows, she will answer.
We have some basic phrases from Portuguese and English only.
What things you need to install the software and how to install them.
- Python 3.8 >=
- OS (Linux, Windows or Mac)
A simple step by step that tell you how to execute project.
# Create environment and activate
$ virtualenv -p /usr/bin/python3.x venv && \
source venv/bin/activate
# Install requirements
$ pip install -r requirements.txt
By default, if the language parameters are not informed, the Portuguese language will be added automatically.
# For choose language, add param:
$ python ai.py pt-BR
Only two languages are supported. pt-BR and en-US.
To activate the AI, just call the configured sir command.
{
"sir": "olá" //the "olá" value is my activation command
}
Machine translation mode works according to the presets made in the source language file. can be found here
See example videos here
To translate from Portuguese to English, these are the settings.
{
//...
"translate": ["traduza", "traduzir"], // Actions available to start translation
"translate-nomore": "não",
"translate-dest": { // Output sentences language
"lang": "en",
"region": "en-US"
},
"responses": { // AI responses
//...
"translate": "O que você deseja traduzir",
"translate-more": "Deseja continuar traduzindo? Pode falar",
"translate-end": "Qualquer coisa é só me chamar",
//...
},
//...
}
See portuguese contract pt-BR.json
- Pedro Rodrigues - Idea & Initial work
The project needs a lot of input for us to add more brokers providers, if you feel like helping or have some idea, please open an issue and help us.
- Fork the project.
- Create a branch:
git checkout -b feature/<branch_name>
. - Commit your code changes:
git commit -m '<message>'
- Push to your work branch:
git push origin feature/<branch_name>
- Open a pull request.
Alternatively, see on GitHub docs How to create a pull request.
Distributed under the BSD 3 License. See LICENSE for more information.