textGAN_public icon indicating copy to clipboard operation
textGAN_public copied to clipboard

ModuleNotFoundError: No module named 'bleu_scorer'

Open yaxirhuxxain opened this issue 6 years ago • 3 comments

I found this error when running your code with tensorflow

from bleu_scorer import BleuScorer ModuleNotFoundError: No module named 'bleu_scorer'

yaxirhuxxain avatar Jul 24 '18 02:07 yaxirhuxxain

I fix the issue by giving absolute import path

from pycocoevalcap.bleu.bleu_scorer import BleuScore

yaxirhuxxain avatar Jul 24 '18 02:07 yaxirhuxxain

please elaborate it how you solve this issue, as i am still unable to solve it...

madnankhalid avatar Oct 14 '18 07:10 madnankhalid

I solved this problem by following way In the file named bleu.py, I replace this from bleu_scorer import BleuScorer with this from pycocoevalcap.bleu.bleu_scorer import BleuScorer

madnankhalid avatar Oct 14 '18 08:10 madnankhalid