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.

How to improve low BLEU score

See original GitHub issue

I was trying to perform a Language Translation task . I was working using the German- English model , however i had replaced the architecture to fconv(pure conv.) I replaced the train.de , test.de , train.de and their corresponding train.en , and … files with my new version of 2 separate languages . For Pre-process: python preprocess.py --source-lang de --target-lang en --trainpref $TEXT/train --validpref $TEXT/valid --testpref $TEXT/test --destdir/home/others/17EC30042/fairseq/examples/translation/iwslt14.tokenized.de-en/tr where ~/tr will store the binarized files. For train: python train.py /home/others/17EC30042/fairseq/examples/translation/iwslt14.tokenized.de-en/tr --lr 0.25 --clip-norm 0.1 --dropout 0.1 --max-tokens 4000 --arch fconv --save-dir checkpoints/fconv For Scoring: python score.py --r /home/others/17EC30042/fairseq/examples/translation/iwslt14.tokenized.de-en/test.de --s /home/others/17EC30042/fairseq/examples/translation/iwslt14.tokenized.de-en/test.en

AND OUTPUT: Namespace(ignore_case=False, order=4, ref=‘/home/others/17EC30042/fairseq/examples/translation/iwslt14.tokenized.de-en/test.de’, sys=‘/home/others/17EC30042/fairseq/examples/translation/iwslt14.tokenized.de-en/test.en’) BLEU4 = 12.80, 59.3/17.6/7.1/3.6 (BP=1.000, ratio=1.017, syslen=82627, reflen=81268)

MAX Sentence Length is also around 15 words

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
huihuifancommented, Jan 17, 2019

Closing this task, I hope the advice above was helpful. Please re-open if you have specific issues with the codebase. Thanks!

1reaction
huihuifancommented, Jan 7, 2019

Hi- it’s a tiny hard to read (you could try --log-output X to print every X updates, or use the json output format, or just turn off the progress bar --no-progress-bar), but it looks like the model is not converging (the PPL at least does not seem to decrease well).

Your model seems to only have 6083 training examples? Is that correct? This is a small number of data points compared to the architecture you are using- you should tune the parameters, for example the learning rate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Optimizing BLEU Scores for Improving Text Generation
First, a BLEU score of 53.63 is already fairly high and al- though 55.45 is a noticable improvement, it is unclear how valuable...
Read more >
How to improve low BLEU score · Issue #430 - GitHub
I was trying to perform a Language Translation task . I was working using the German- English model , however i had replaced...
Read more >
Foundations of NLP Explained — Bleu Score and WER Metrics
A score of 0.6 or 0.7 is considered the best you can achieve. Even two humans would likely come up with different sentence...
Read more >
A Gentle Introduction to Calculating the BLEU Score for Text in ...
In this tutorial, you will discover the BLEU score for evaluating and scoring candidate text using the NLTK library in Python.
Read more >
Understanding MT Quality: BLEU Scores - RWS
Kirti Vashee, SDL, looks at how you can better measure and evaluate MT technology with the BLEU scoring system.
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