Git Product home page Git Product logo

lfc's Introduction

Learning From Errors

errors made by a speech recognition system

overall idea: by "finetuning" an ngram-based Language Model one should be able to counteract errors that are specific to the acoustic model

"generating" errors

  1. take pretrained NeMo QuartzNet (QuartzNet5x5LS-En)
  2. train KenLM on librispeech-lm-data; I suppose thats how LM models at openslr where created
    -> receive librispeech-KenLM
  3. use QuartzNet + librispeech-KenLM to predict on TEDLIUMv2 trainset
    -> receive ~90k correction tuples (hypothesis,reference)
  4. use smith-waterman-algorithm (stolen from kaldi) to align hypothesis (predicitons) and references
    -> looks like
hyp = "hee cad i blac"
ref = "I think the cat is black"

alignment:
ref: I think th|e cat is black
hyp: |||||||||hee cad i| blac|
  1. analyse errors
  • TED-talks contain missus: 98 times the QuartzNet + librispeech-KenLM understood this instead of missus
["missus", {"this": 98, "is": 98, "this is": 76, "a": 9, "and": 7}]
  • TED-talks preferes two word per cent
["per cent", {"percent": 1083, "percent of": 17, "percent oil": 3, "percent that": 2, "forty percent": 2}]
  • 104 times QuartzNet + librispeech-KenLM inserts an and between hundred and fifty -> not really an error?
["hundred fifty", {"hundred and fifty": 104, "one hundred and": 1, "a hundred and": 1}]

"fine-tune" KenLM

  1. train enhanced KenLM on enhanced train-corpus = librispeech-lm-data + correction ngrams of erroneous phrases from TEDLIUMv2 trainset -> should give hundred fifty slightly higher probability
  2. Got WER of 0.289 vs. 0.284 (see) -> makes not really a difference!

details

  • decoding is done with CTC prefix beam search + ngram LM implemented by NeMo and OpenSeq2Seq
  • correction ngrams:
    • only 3-grams where taken -> ~1mio (800k unique)
    • added 10xtimes to librispeech-lm-data -> see
  • impact on kenlm-arpa-file
hyp: were learning about celoron armchairs and once we figure out
Ref: we're learning about cellular mechanics once we figure out
zcat ngrams.txt.gz | rg --color=always "cellular" | wc -l -> 134
zcat kenlm_cache_vanilla/lower.txt.gz | rg cellular | wc -l -> 324
zcat kenlm_cache_tedlium/lower.txt.gz | rg cellular | wc -l -> 1664
cat kenlm_vanilla/lm_filtered.arpa | rg "\tcellular\t" -> -5.7082434
cat kenlm_tedlium/lm_filtered.arpa | rg "\tcellular\t" -> -5.644795

preparing data

found: /mydrive/data/asr_data/ENGLISH/train-clean-100.tar.gz no need to download
wrote /mydrive/data/asr_data/ENGLISH/train-clean-100_processed_mp3.tar.gz
downloading: http://www.openslr.org/resources/12/train-clean-360.tar.gz
wrote /mydrive/data/asr_data/ENGLISH/train-clean-360_processed_mp3.tar.gz
28539it [33:54, 14.03it/s]
104014it [2:13:54, 12.95it/s]
CPU times: user 5.85 s, sys: 1.07 s, total: 6.92 s
Wall time: 5h 31min 3s

lfc's People

Contributors

dertilo avatar ishine avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.