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

Unnecessary dependency matplotlib is required to call ContextualWordEmbsAug #132

Closed
shuntaroy opened this issue Jun 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@shuntaroy
Copy link

Textual augmenters do not have to import audio stuff, don't they?
It's not so much bother to import matplotlib even when my project does not require any visualisation, but it sucks.
Though this seems not urgent, hope it's fixed in future.

from nlpaug.augmenter.word import ContextualWordEmbsAug
  File "/path/to/virtualenv/lib/python3.7/site-packages/nlpaug/__init__.py", line 2, in <module>
    from nlpaug.base_augmenter import *
  File "/path/to/virtualenv/lib/python3.7/site-packages/nlpaug/base_augmenter.py", line 5, in <module>
    from nlpaug.util import Action, Method, WarningException, WarningName, WarningCode, WarningMessage
  File "/path/to/virtualenv/lib/python3.7/site-packages/nlpaug/util/__init__.py", line 7, in <module>
    from nlpaug.util.audio import *
  File "/path/to/virtualenv/lib/python3.7/site-packages/nlpaug/util/audio/__init__.py", line 2, in <module>
    from nlpaug.util.audio.visualizer import *
  File "/path/to/virtualenv/lib/python3.7/site-packages/nlpaug/util/audio/visualizer.py", line 7, in <module>
    import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
@makcedward makcedward added the bug Something isn't working label Aug 3, 2020
@makcedward
Copy link
Owner

Will fix it in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants