Translation
Keras
Khmer
bigru-additive-attention-seq2seq
transliteration
khmer
romanization
seq2seq
gru
attention
Eval Results (legacy)
Instructions to use Netra-Lab/AkaraAlpha with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Netra-Lab/AkaraAlpha with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://Netra-Lab/AkaraAlpha") - Notebooks
- Google Colab
- Kaggle
File size: 676 Bytes
d728d26 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | {
"model_type": "bigru-additive-attention-seq2seq",
"framework": "keras",
"keras_file": "bi_gru_attention_khmer_transliterator.keras",
"embedding_dim": 32,
"encoder": {
"type": "bidirectional_gru",
"units_per_direction": 64
},
"encoder_projection": 64,
"decoder": {
"type": "gru",
"units": 64,
"initial_state": "zeros"
},
"attention": {
"type": "additive",
"use_scale": true
},
"latin_vocab_size": 28,
"khmer_vocab_size": 81,
"max_latin_len": 25,
"max_khmer_len": 24,
"parameters": 78705,
"dictionary_file": "khmer_dictionary.txt",
"dictionary_words": 38743,
"recommended_beam_width": 5,
"max_edit_distance": 2
}
|