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

Q/A- Using snorkel in my python script #892

Closed zkawan closed 6 years ago

zkawan commented 6 years ago

Hi there,

Is it possible to use snorkel to label some data within my python script outside jupyter notebook? I have tried doing that even the import statement throws error.

ModuleNotFoundError: No module named 'snorkel'

stephenbach commented 6 years ago

Hi,

Definitely! This is often how we use Snorkel in our lab. The issue is likely just putting Snorkel on your Python path so that import statements know where to look. Here's a tutorial I found on doing so:

http://www.bdnyc.org/2012/09/editing-pythonpath-to-import-modules/

zkawan commented 6 years ago

Thanks a lot!