snorkel-team / snorkel

A system for quickly generating training data with weak supervision
https://snorkel.org
Apache License 2.0
5.81k stars 857 forks source link

cannot import name 'load_spam_dataset' #1508

Closed MehrdadFarokhnejad closed 4 years ago

MehrdadFarokhnejad commented 4 years ago

Issue description

I installed Snorkel 0.9.2 ( pip install snorkel).

also, imported snorkel in my code, however, I faced this error when I want to load data. How can I solve it?

import snorkel from snorkel.labeling import labeling_function from utils import load_spam_dataset

ImportError Traceback (most recent call last)

in ----> 1 from utils import load_spam_dataset ImportError: cannot import name 'load_spam_datase Thanks in advance!
vincentschen commented 4 years ago

It looks like you're trying to access one of the utilities in our tutorials: https://github.com/snorkel-team/snorkel-tutorials/blob/master/spam/utils.py#L16

Try cloning this repository for the relevant resource! https://github.com/snorkel-team/snorkel-tutorials