When I run my program, which is using:
nltk.download('wordnet')
from nltk.corpus import wordnet
I get the following output to my terminal:
[nltk_data] Downloading package wordnet to
[nltk_data] /Users/.../nltk_data...
[nltk_data] Package wordnet is already up-to-date!
My program relies on not having this information saved to the terminal and a resulting output file, so how can I prevent the above lines from occurring, or write it to sys.stderr
so it doesn't get included instead of it being through print
?