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

Add Stanford Sentiment Treebank (SST) dataset #1189

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

zhangguanheng66
Copy link
Contributor

The legacy SST was retired in torchtext.legacy folder. This one yields the raw text strings.

@codecov
Copy link

codecov bot commented Feb 19, 2021

Codecov Report

Merging #1189 (fee59b3) into master (ebb7c3a) will increase coverage by 0.13%.
The diff coverage is 93.54%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
torchtext/datasets/sst.py 93.33% <93.33%> (ø)
torchtext/datasets/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebb7c3a...178b618. Read the comment docs.

try:
from nltk.tree import Tree
except ImportError:
print("Please install NLTK. See the docs at https://nltk.org for more information.")
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

None yet

3 participants