Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'bleu_scorer' #3

Open
yaxirhuxxain opened this issue Jul 24, 2018 · 3 comments
Open

ModuleNotFoundError: No module named 'bleu_scorer' #3

yaxirhuxxain opened this issue Jul 24, 2018 · 3 comments

Comments

@yaxirhuxxain
Copy link

I found this error when running your code with tensorflow

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

@yaxirhuxxain
Copy link
Author

I fix the issue by giving absolute import path

from pycocoevalcap.bleu.bleu_scorer import BleuScore

@madnankhalid
Copy link

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

@madnankhalid
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants