question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Language model to predict.py

See original GitHub issue

I am very new in this field, I ran train.py on librispeech dataset after complete training I ran test.py as following -

python test.py --model_path models/deepspeech_final.pth.tar --val_manifest data/libri_test_manifest.csv --cuda

I got following output: Validation Summary Average WER 3.972 Average CER 0.747

One more thing I noticed in test.py argument is --val_manifest, that is validation manifest file, But I think it should be --test_manifest?

Now I wanted to test the same model on unseen data using predict.py, but how do I include language model?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:27 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
ryanlearycommented, Jun 15, 2017

The comment he posted with the training command before the edit showed python train.py --train_manifest data/libri_test_manifest.csv ....

0reactions
SeanNarencommented, Jun 15, 2017

Hehe don’t feel bad, made the same mistake a while ago as well 😃 glad to have found the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language Model In NLP | Build Language Model in Python
Learn to build a language model in Python in this article. ... A language model learns to predict the probability of a sequence...
Read more >
How to Develop Word-Based Neural Language Models in ...
Language modeling involves predicting the next word in a sequence given the sequence of words already present. A language model is a key ......
Read more >
A Comprehensive Guide to Build your own Language Model ...
An N-gram language model predicts the probability of a given N-gram within any sequence of words in the language. If we have a...
Read more >
From raw text to model prediction in under 30 lines of Python
We have shown how to use the ATOM package to quickly explore natural language datasets. First, we have transformed documents of raw text...
Read more >
Language Model — Python Notes for Linguistics
The prediction is based on the predicted probability distribution of the next words: words above a predefined cut-off are randomly selected. The text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found