readme: ---
  tags:
  - espnet
  - audio
  - automatic-speech-recognition
  language: gn
  datasets:
  - americasnlp22
  license: cc-by-4.0
  ---
  
  ## ESPnet2 ASR model 
  
  ### `espnet/americasnlp22-asr-gn`
  
  This model was trained by Pavel Denisov using americasnlp22 recipe in [espnet](https://github.com/espnet/espnet/).
  
  ### Demo: How to use in ESPnet2
  
  Follow the [ESPnet installation instructions](https://espnet.github.io/espnet/installation.html)
  if you haven't done that already.
  
  ```bash
  cd espnet
  git checkout fc62b1ce3e50c5ef8a2ac8cedb0d92ac41df54ca
  pip install -e .
  cd egs2/americasnlp22/asr1
  ./run.sh \
      --skip_data_prep false \
      --skip_train true \
      --download_model espnet/americasnlp22-asr-gn \
      --lang gn \
      --local_data_opts "--lang gn" \
      --train_set train_gn \
      --valid_set dev_gn \
      --test_sets dev_gn \
      --gpu_inference false \
      --inference_nj 8 \
      --lm_train_text data/train_gn/text \
      --bpe_train_text data/train_gn/text
  ```
  
  <!-- Generated by scripts/utils/show_asr_result.sh -->
  # RESULTS
  ## Environments
  - date: `Sun Jun  5 12:17:58 CEST 2022`
  - python version: `3.9.13 (main, May 18 2022, 00:00:00)  [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)]`
  - espnet version: `espnet 202204`
  - pytorch version: `pytorch 1.11.0+cu115`
  - Git hash: `d55704daa36d3dd2ca24ae3162ac40d81957208c`
    - Commit date: `Wed Jun 1 02:33:09 2022 +0200`
  
  ## asr_train_asr_transformer_raw_gn_bpe100_sp
  ### WER
  
  |dataset|Snt|Wrd|Corr|Sub|Del|Ins|Err|S.Err|
  |---|---|---|---|---|---|---|---|---|
  |decode_asr_asr_model_valid.cer_ctc.best/dev_gn|93|391|11.5|73.7|14.8|12.5|101.0|100.0|
  
  ### CER
  
  |dataset|Snt|Wrd|Corr|Sub|Del|Ins|Err|S.Err|
  |---|---|---|---|---|---|---|---|---|
  |decode_asr_asr_model_valid.cer_ctc.best/dev_gn|93|2946|83.4|7.9|8.7|8.7|25.3|100.0|
  
  ### TER
  
  |dataset|Snt|Wrd|Corr|Sub|Del|Ins|Err|S.Err|
  |---|---|---|---|---|---|---|---|---|
  |decode_asr_asr_model_valid.cer_ctc.best/dev_gn|93|2439|76.6|13.5|9.9|8.7|32.1|100.0|
  
  ## ASR config
  
  <details><summary>expand</summary>
  
  ```
  config: conf/train_asr_transformer.yaml
  print_config: false
  log_level: INFO
  dry_run: false
  iterator_type: sequence
  output_dir: exp/asr_train_asr_transformer_raw_gn_bpe100_sp
  ngpu: 1
  seed: 0
  num_workers: 1
  num_att_plot: 3
  dist_backend: nccl
  dist_init_method: env://
  dist_world_size: null
  dist_rank: null
  local_rank: 0
  dist_master_addr: null
  dist_master_port: null
  dist_launcher: null
  multiprocessing_distributed: false
  unused_parameters: false
  sharded_ddp: false
  cudnn_enabled: true
  cudnn_benchmark: false
  cudnn_deterministic: true
  collect_stats: false
  write_collected_feats: false
  max_epoch: 15
  patience: null
  val_scheduler_criterion:
  - valid
  - loss
  early_stopping_criterion:
  - valid
  - loss
  - min
  best_model_criterion:
  -   - valid
      - cer_ctc
      - min
  keep_nbest_models: 1
  nbest_averaging_interval: 0
  grad_clip: 5.0
  grad_clip_type: 2.0
  grad_noise: false
  accum_grad: 1
  no_forward_run: false
  resume: true
  train_dtype: float32
  use_amp: false
  log_interval: null
  use_matplotlib: true
  use_tensorboard: true
  use_wandb: false
  wandb_project: null
  wandb_id: null
  wandb_entity: null
  wandb_name: null
  wandb_model_log_interval: -1
  detect_anomaly: false
  pretrain_path: null
  init_param: []
  ignore_init_mismatch: false
  freeze_param:
  - frontend.upstream.model.feature_extractor
  - frontend.upstream.model.encoder.layers.0
  - frontend.upstream.model.encoder.layers.1
  - frontend.upstream.model.encoder.layers.2
  - frontend.upstream.model.encoder.layers.3
  - frontend.upstream.model.encoder.layers.4
  - frontend.upstream.model.encoder.layers.5
  - frontend.upstream.model.encoder.layers.6
  - frontend.upstream.model.encoder.layers.7
  - frontend.upstream.model.encoder.layers.8
  - frontend.upstream.model.encoder.layers.9
  - frontend.upstream.model.encoder.layers.10
  - frontend.upstream.model.encoder.layers.11
  - frontend.upstream.model.encoder.layers.12
  - frontend.upstream.model.encoder.layers.13
  - frontend.upstream.model.encoder.layers.14
  - frontend.upstream.model.encoder.layers.15
  - frontend.upstream.model.encoder.layers.16
  - frontend.upstream.model.encoder.layers.17
  - frontend.upstream.model.encoder.layers.18
  - frontend.upstream.model.encoder.layers.19
  - frontend.upstream.model.encoder.layers.20
  - frontend.upstream.model.encoder.layers.21
  num_iters_per_epoch: null
  batch_size: 20
  valid_batch_size: null
  batch_bins: 200000
  valid_batch_bins: null
  train_shape_file:
  - exp/asr_stats_raw_gn_bpe100_sp/train/speech_shape
  - exp/asr_stats_raw_gn_bpe100_sp/train/text_shape.bpe
  valid_shape_file:
  - exp/asr_stats_raw_gn_bpe100_sp/valid/speech_shape
  - exp/asr_stats_raw_gn_bpe100_sp/valid/text_shape.bpe
  batch_type: numel
  valid_batch_type: null
  fold_length:
  - 80000
  - 150
  sort_in_batch: descending
  sort_batch: descending
  multiple_iterator: false
  chunk_length: 500
  chunk_shift_ratio: 0.5
  num_cache_chunks: 1024
  train_data_path_and_name_and_type:
  -   - dump/raw/train_gn_sp/wav.scp
      - speech
      - sound
  -   - dump/raw/train_gn_sp/text
      - text
      - text
  valid_data_path_and_name_and_type:
  -   - dump/raw/dev_gn/wav.scp
      - s