--- license: mit language: - pt - en library_name: keras pipeline_tag: translation --- # AIron-Trans-PT2EN ## License - MIT ## Overview AIron-Trans-PT2EN is a Portuguese to English translation model developed using the Keras library. ## Description AIron-Trans-PT2EN is a translation model that allows you to translate phrases and texts from Portuguese to English. It has been trained using the Long Short-Term Memory (LSTM) neural network architecture and implemented using the Keras library. ## Features - Translation from Portuguese to English - Model trained using the Keras library - LSTM architecture for better contextual understanding - Text preprocessing for improved translation quality ## Usage You can use this translation model in your own projects by following the instructions below: 1. Install the necessary dependencies (Keras, TensorFlow, etc.). 2. Load the trained model using the `load_model()` function from Keras. 3. Preprocess input sentences using the same preprocessing steps used during training. 4. Call the `translate_sentence()` function to get the translation of the input sentence. Code example: ```python from tensorflow import keras # Load the model model = keras.models.load_model('path/to/model.h5') # Preprocess the input sentence preprocessed_sentence = preprocess_sentence('Olá, como vai?') # Translate the sentence translated_sentence = translate_sentence(preprocessed_sentence, model) print(translated_sentence) ``` ## Contribution If you encounter any issues, have ideas for improvements, or would like to contribute to this project, feel free to open an issue or submit a pull request. We welcome contributions! ## Acknowledgments We would like to thank all contributors who helped develop and improve this translation model.