dreasysnail / textGAN_public

70 stars 20 forks source link

ModuleNotFoundError: No module named 'bleu_scorer' #3

Open yaxirhuxxain opened 6 years ago

yaxirhuxxain commented 6 years ago

I found this error when running your code with tensorflow

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

yaxirhuxxain commented 6 years ago

I fix the issue by giving absolute import path

from pycocoevalcap.bleu.bleu_scorer import BleuScore

madnankhalid commented 6 years ago

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

madnankhalid commented 6 years ago

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