Here are the BPE models that you can use for your project.
- Download the BPE model file from the provided source.
- Install the necessary dependencies for using BPE models in your project.
- Tokenize your text using the BPE model to obtain subword units.
- Use the subword units for further processing or analysis in your project.
You can install subword-nmt
using pip. Open your terminal and run the following command:
pip install subword-nmt
echo "your text here" | subword-nmt apply-bpe -c path_to_your_model.model
The ctranslate2 model is available in HuggingFace
Here are the models for different language pairs:
- English to Galician (en-gl)
- Spanish to Galician (es-gl)
- Basque to Galician (eu-gl)
- Catalan to Galician (ca-gl)
To download and use these models, follow these steps:
- Open the respective link for the desired language pair.
- Download or clone the repository.
- Install the necessary dependencies for using the models in your project.
- Load the downloaded model using the ctranslate2 API as explained in the HuggingFace repository.
- Use the loaded model for translation or other language-related tasks in your project (see documentation in HuggingFace).