Skip to content

Conversation

abheesht17
Copy link
Collaborator

Resolves #198

Copy link
Member

@mattdangerw mattdangerw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just one small comment. You could also add a note about about adding the dependency to the setup.py testing dependency list so we can still test things out.

try:
import rouge_score
except ImportError:
pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment in issue, we should just do rouge_score = None to avoid needing to mess with sys.modules.

@mattdangerw
Copy link
Member

lgtm!

@mattdangerw mattdangerw merged commit 1dc32d8 into keras-team:master May 24, 2022
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

Successfully merging this pull request may close these issues.

Fix Loose Dependency Imports
2 participants