Chapter 8 installation instructions
Snorkel needs to be installed. At the time of writing, the version of Snorkel installed was 0.9.5. Note that this version of Snorkel uses older versions of pandas and TensorBoard. You should be able to safely ignore any warnings about mismatched versions for the purposes of the code in this book. However, if you continue to face conflicts in your environment, then I suggest creating a separate Snorkel-specific conda
environment.
Run the labeling functions in that environment and store the outputs as a separate CSV file. TensorFlow training can be run by switching back to the tf24nlp
environment and loading the labeled data in:
(tf24nlp) $ pip install snorkel==0.9.5
We'll also use BeautifulSoup for parsing HTML tags out of the text:
(tf24nlp) $ conda install beautifulsoup4==4.9
There is an optional section in the chapter that involves plotting word clouds. This requires the following package to be installed:
(tf24nlp...