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
Add Stanford Sentiment Treebank (SST) dataset #1189
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1189 +/- ##
==========================================
+ Coverage 77.93% 78.06% +0.13%
==========================================
Files 65 66 +1
Lines 3585 3616 +31
==========================================
+ Hits 2794 2823 +29
- Misses 791 793 +2
Continue to review full report at Codecov.
|
torchtext/datasets/sst.py
Outdated
try: | ||
from nltk.tree import Tree | ||
except ImportError: | ||
print("Please install NLTK. See the docs at https://nltk.org for more information.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd raise this as an error, so that processing doesn't continue. And further I'd make explicit that this is due to this dataset specifically.
The legacy SST was retired in
torchtext.legacy
folder. This one yields the raw text strings.