Instructions to use tarsssss/portuguese-english-translator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use tarsssss/portuguese-english-translator with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://tarsssss/portuguese-english-translator") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Portuguese-English Translation Model
This model translates text from Portuguese to English using a transformer-based architecture.
Model Information
- Language Pair: Portuguese -> English
- Model Type: Transformer
- Model Dimensions: 512
- Attention Heads: 8
- Encoder/Decoder Layers: 2
- Framework: TensorFlow
Usage Example
# Example code for loading and using the model
from tensorflow import keras
import tensorflow as tf
# Load the model
model = keras.models.load_model("model.keras")
# Prepare tokenizers (you'll need the tokenizer files as well)
# ... tokenization code here ...
# Translate
# ... translation code here ...
Training
The model was trained on parallel Portuguese-English corpora.
- Downloads last month
- 4
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support