Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (5 votes)
43 views

Download full Natural Language Processing Recipes: Unlocking Text Data with Machine Learning and Deep Learning Using Python 2nd Edition Akshay Kulkarni ebook all chapters

Language

Uploaded by

mbetheradsma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (5 votes)
43 views

Download full Natural Language Processing Recipes: Unlocking Text Data with Machine Learning and Deep Learning Using Python 2nd Edition Akshay Kulkarni ebook all chapters

Language

Uploaded by

mbetheradsma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Get ebook downloads in full at ebookmeta.

com

Natural Language Processing Recipes: Unlocking


Text Data with Machine Learning and Deep Learning
Using Python 2nd Edition Akshay Kulkarni

https://ebookmeta.com/product/natural-language-processing-
recipes-unlocking-text-data-with-machine-learning-and-deep-
learning-using-python-2nd-edition-akshay-kulkarni-2/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Natural Language Processing Recipes: Unlocking Text Data


with Machine Learning and Deep Learning Using Python 2nd
Edition Akshay Kulkarni
https://ebookmeta.com/product/natural-language-processing-recipes-
unlocking-text-data-with-machine-learning-and-deep-learning-using-
python-2nd-edition-akshay-kulkarni/
ebookmeta.com

Time Series Algorithms Recipes: Implement Machine Learning


and Deep Learning Techniques with Python 1st Edition
Akshay Kulkarni
https://ebookmeta.com/product/time-series-algorithms-recipes-
implement-machine-learning-and-deep-learning-techniques-with-
python-1st-edition-akshay-kulkarni/
ebookmeta.com

Natural Language Processing Projects: Build Next-


Generation NLP Applications Using AI Techniques Akshay
Kulkarni
https://ebookmeta.com/product/natural-language-processing-projects-
build-next-generation-nlp-applications-using-ai-techniques-akshay-
kulkarni/
ebookmeta.com

Aspects of Value Frederick Charles Gruber (Editor)

https://ebookmeta.com/product/aspects-of-value-frederick-charles-
gruber-editor/

ebookmeta.com
Paul Miriam The Yoder Sisters Mail Order Brides Book 6 1st
Edition M K Moore

https://ebookmeta.com/product/paul-miriam-the-yoder-sisters-mail-
order-brides-book-6-1st-edition-m-k-moore-2/

ebookmeta.com

Computer Vision ECCV 2020 16th European Conference Glasgow


UK August 23 28 2020 Proceedings Part VI Andrea Vedaldi

https://ebookmeta.com/product/computer-vision-eccv-2020-16th-european-
conference-glasgow-uk-august-23-28-2020-proceedings-part-vi-andrea-
vedaldi/
ebookmeta.com

The Terrorism Survival Guide 201 Travel Tips on How Not to


Become a Victim Revised and Updated Andy Lightbody

https://ebookmeta.com/product/the-terrorism-survival-guide-201-travel-
tips-on-how-not-to-become-a-victim-revised-and-updated-andy-lightbody/

ebookmeta.com

Yoga Of Gita Expounded By Saint Dnyaneshwar Inner Secrets


Of Rajayoga Saint Dnyaneshwar On Kundalini Yoga Practice
VOL 2 1st Edition Vibhakar Vitthal Lele
https://ebookmeta.com/product/yoga-of-gita-expounded-by-saint-
dnyaneshwar-inner-secrets-of-rajayoga-saint-dnyaneshwar-on-kundalini-
yoga-practice-vol-2-1st-edition-vibhakar-vitthal-lele/
ebookmeta.com

Dynamics Information and Complexity in Quantum Systems 2nd


Edition Fabio Benatti

https://ebookmeta.com/product/dynamics-information-and-complexity-in-
quantum-systems-2nd-edition-fabio-benatti/

ebookmeta.com
Inside Wikipedia How It Works and How You Can Be an Editor
Paul A Thomas

https://ebookmeta.com/product/inside-wikipedia-how-it-works-and-how-
you-can-be-an-editor-paul-a-thomas/

ebookmeta.com
Natural Language
Processing
Recipes
Unlocking Text Data with Machine Learning
and Deep Learning Using Python

Second Edition

Akshay Kulkarni
Adarsha Shivananda
Natural Language
Processing Recipes
Unlocking Text Data with
Machine Learning and Deep Learning
Using Python
Second Edition

Akshay Kulkarni
Adarsha Shivananda
Natural Language Processing Recipes: Unlocking Text Data with Machine Learning
and Deep Learning Using Python
Akshay Kulkarni Adarsha Shivananda
Bangalore, Karnataka, India Bangalore, Karnataka, India

ISBN-13 (pbk): 978-1-4842-7350-0     ISBN-13 (electronic): 978-1-4842-7351-7


https://doi.org/10.1007/978-1-4842-7351-7

Copyright © 2021 by Akshay Kulkarni and Adarsha Shivananda


This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not
identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Celestin Suresh John
Development Editor: Laura Berendson
Coordinating Editor: Shrikant Vishwakarma
Cover designed by eStudioCalamar
Cover image designed by Pexels
Distributed to the book trade worldwide by Springer Science+Business Media LLC, 1 New York Plaza, Suite
4600, New York, NY 10004. Phone 1-800-SPRINGER, fax (201) 348-4505, email orders-ny@springer-sbm.
com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner)
is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware
corporation.
For information on translations, please e-mail booktranslations@springernature.com; for reprint, paperback,
or audio rights, please e-mail bookpermissions@springernature.com, or visit http://www.apress.com/
rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales
web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub via the book’s product page, located at www.apress.com/978-­1-­4842-­7350-­0. For more
detailed information, please visit http://www.apress.com/source-­code.
Printed on acid-free paper
To our families
Table of Contents
About the Authors����������������������������������������������������������������������������������������������������xv

About the Technical Reviewer�������������������������������������������������������������������������������xvii


Acknowledgments��������������������������������������������������������������������������������������������������xix

Introduction������������������������������������������������������������������������������������������������������������xxi

Chapter 1: Extracting the Data��������������������������������������������������������������������������������� 1


Introduction����������������������������������������������������������������������������������������������������������������������������������� 1
Client Data������������������������������������������������������������������������������������������������������������������������������������ 1
Free Sources��������������������������������������������������������������������������������������������������������������������������������� 2
Web Scraping�������������������������������������������������������������������������������������������������������������������������������� 2
Recipe 1-1. Collecting Data���������������������������������������������������������������������������������������������������������� 2
Problem����������������������������������������������������������������������������������������������������������������������������������� 3
Solution����������������������������������������������������������������������������������������������������������������������������������� 3
How It Works��������������������������������������������������������������������������������������������������������������������������� 3
Recipe 1-2. Collecting Data from PDFs����������������������������������������������������������������������������������������� 4
Problem����������������������������������������������������������������������������������������������������������������������������������� 4
Solution����������������������������������������������������������������������������������������������������������������������������������� 5
How It Works��������������������������������������������������������������������������������������������������������������������������� 5
Recipe 1-3. Collecting Data from Word Files�������������������������������������������������������������������������������� 6
Problem����������������������������������������������������������������������������������������������������������������������������������� 6
Solution����������������������������������������������������������������������������������������������������������������������������������� 6
How It Works��������������������������������������������������������������������������������������������������������������������������� 6
Recipe 1-4. Collecting Data from JSON���������������������������������������������������������������������������������������� 7
Problem����������������������������������������������������������������������������������������������������������������������������������� 7
Solution����������������������������������������������������������������������������������������������������������������������������������� 7
How It Works��������������������������������������������������������������������������������������������������������������������������� 8

v
Table of Contents

Recipe 1-5. Collecting Data from HTML�������������������������������������������������������������������������������������� 10


Problem��������������������������������������������������������������������������������������������������������������������������������� 10
Solution��������������������������������������������������������������������������������������������������������������������������������� 10
How It Works������������������������������������������������������������������������������������������������������������������������� 10
Recipe 1-6. Parsing Text Using Regular Expressions������������������������������������������������������������������ 13
Problem��������������������������������������������������������������������������������������������������������������������������������� 13
Solution��������������������������������������������������������������������������������������������������������������������������������� 13
How It Works������������������������������������������������������������������������������������������������������������������������� 14
Recipe 1-7. Handling Strings������������������������������������������������������������������������������������������������������ 21
Problem��������������������������������������������������������������������������������������������������������������������������������� 21
Solution��������������������������������������������������������������������������������������������������������������������������������� 21
How It Works������������������������������������������������������������������������������������������������������������������������� 22
Recipe 1-8. Scraping Text from the Web������������������������������������������������������������������������������������� 23
Problem��������������������������������������������������������������������������������������������������������������������������������� 24
Solution��������������������������������������������������������������������������������������������������������������������������������� 24
How It Works������������������������������������������������������������������������������������������������������������������������� 24

Chapter 2: Exploring and Processing Text Data������������������������������������������������������ 31


Recipe 2-1. Converting Text Data to Lowercase������������������������������������������������������������������������� 32
Problem��������������������������������������������������������������������������������������������������������������������������������� 32
Solution��������������������������������������������������������������������������������������������������������������������������������� 32
How It Works������������������������������������������������������������������������������������������������������������������������� 32
Recipe 2-2. Removing Punctuation��������������������������������������������������������������������������������������������� 34
Problem��������������������������������������������������������������������������������������������������������������������������������� 34
Solution��������������������������������������������������������������������������������������������������������������������������������� 34
How It Works������������������������������������������������������������������������������������������������������������������������� 34
Recipe 2-3. Removing Stop Words���������������������������������������������������������������������������������������������� 36
Problem��������������������������������������������������������������������������������������������������������������������������������� 36
Solution��������������������������������������������������������������������������������������������������������������������������������� 36
How It Works������������������������������������������������������������������������������������������������������������������������� 37

vi
Table of Contents

Recipe 2-4. Standardizing Text��������������������������������������������������������������������������������������������������� 38


Problem��������������������������������������������������������������������������������������������������������������������������������� 38
Solution��������������������������������������������������������������������������������������������������������������������������������� 38
How It Works������������������������������������������������������������������������������������������������������������������������� 39
Recipe 2-5. Correcting Spelling�������������������������������������������������������������������������������������������������� 40
Problem��������������������������������������������������������������������������������������������������������������������������������� 40
Solution��������������������������������������������������������������������������������������������������������������������������������� 40
How It Works������������������������������������������������������������������������������������������������������������������������� 40
Recipe 2-6. Tokenizing Text�������������������������������������������������������������������������������������������������������� 42
Problem��������������������������������������������������������������������������������������������������������������������������������� 42
Solution��������������������������������������������������������������������������������������������������������������������������������� 42
How It Works������������������������������������������������������������������������������������������������������������������������� 42
Recipe 2-7. Stemming���������������������������������������������������������������������������������������������������������������� 44
Problem��������������������������������������������������������������������������������������������������������������������������������� 44
Solution��������������������������������������������������������������������������������������������������������������������������������� 44
How It Works������������������������������������������������������������������������������������������������������������������������� 44
Recipe 2-8. Lemmatizing������������������������������������������������������������������������������������������������������������ 45
Problem��������������������������������������������������������������������������������������������������������������������������������� 46
Solution��������������������������������������������������������������������������������������������������������������������������������� 46
How It Works������������������������������������������������������������������������������������������������������������������������� 46
Recipe 2-9. Exploring Text Data�������������������������������������������������������������������������������������������������� 47
Problem��������������������������������������������������������������������������������������������������������������������������������� 47
Solution��������������������������������������������������������������������������������������������������������������������������������� 47
How It Works������������������������������������������������������������������������������������������������������������������������� 48
Recipe 2-10. Dealing with Emojis and Emoticons���������������������������������������������������������������������� 52
Problem��������������������������������������������������������������������������������������������������������������������������������� 53
Solution��������������������������������������������������������������������������������������������������������������������������������� 53
How It Works������������������������������������������������������������������������������������������������������������������������� 53
Problem��������������������������������������������������������������������������������������������������������������������������������� 54
Solution��������������������������������������������������������������������������������������������������������������������������������� 54
How It Works������������������������������������������������������������������������������������������������������������������������� 54

vii
Table of Contents

Problem��������������������������������������������������������������������������������������������������������������������������������� 55
Solution��������������������������������������������������������������������������������������������������������������������������������� 55
How It Works������������������������������������������������������������������������������������������������������������������������� 55
Problem��������������������������������������������������������������������������������������������������������������������������������� 56
Solution��������������������������������������������������������������������������������������������������������������������������������� 56
How It Works������������������������������������������������������������������������������������������������������������������������� 57
Problem��������������������������������������������������������������������������������������������������������������������������������� 58
Solution��������������������������������������������������������������������������������������������������������������������������������� 58
How It Works������������������������������������������������������������������������������������������������������������������������� 58
Recipe 2-11. Building a Text Preprocessing Pipeline������������������������������������������������������������������ 59
Problem��������������������������������������������������������������������������������������������������������������������������������� 59
Solution��������������������������������������������������������������������������������������������������������������������������������� 59
How It Works������������������������������������������������������������������������������������������������������������������������� 60

Chapter 3: Converting Text to Features������������������������������������������������������������������ 63


Recipe 3-1. Converting Text to Features Using One-­Hot Encoding��������������������������������������������� 64
Problem��������������������������������������������������������������������������������������������������������������������������������� 64
Solution��������������������������������������������������������������������������������������������������������������������������������� 64
How It Works������������������������������������������������������������������������������������������������������������������������� 64
Recipe 3-2. Converting Text to Features Using a Count Vectorizer��������������������������������������������� 65
Problem��������������������������������������������������������������������������������������������������������������������������������� 65
Solution��������������������������������������������������������������������������������������������������������������������������������� 66
How It Works������������������������������������������������������������������������������������������������������������������������� 66
Recipe 3-3. Generating n-grams������������������������������������������������������������������������������������������������� 67
Problem��������������������������������������������������������������������������������������������������������������������������������� 67
Solution��������������������������������������������������������������������������������������������������������������������������������� 67
How It Works������������������������������������������������������������������������������������������������������������������������� 68
Recipe 3-4. Generating a Co-occurrence Matrix������������������������������������������������������������������������� 69
Problem��������������������������������������������������������������������������������������������������������������������������������� 69
Solution��������������������������������������������������������������������������������������������������������������������������������� 70
How It Works������������������������������������������������������������������������������������������������������������������������� 70

viii
Table of Contents

Recipe 3-5. Hash Vectorizing������������������������������������������������������������������������������������������������������ 72


Problem��������������������������������������������������������������������������������������������������������������������������������� 72
Solution��������������������������������������������������������������������������������������������������������������������������������� 72
How It Works������������������������������������������������������������������������������������������������������������������������� 72
Recipe 3-6. Converting Text to Features Using TF-­IDF���������������������������������������������������������������� 73
Problem��������������������������������������������������������������������������������������������������������������������������������� 73
Solution��������������������������������������������������������������������������������������������������������������������������������� 73
How It Works������������������������������������������������������������������������������������������������������������������������� 74
Recipe 3-7. Implementing Word Embeddings����������������������������������������������������������������������������� 75
Problem��������������������������������������������������������������������������������������������������������������������������������� 76
Solution��������������������������������������������������������������������������������������������������������������������������������� 77
How It Works������������������������������������������������������������������������������������������������������������������������� 77
Recipe 3-8. Implementing fastText��������������������������������������������������������������������������������������������� 84
Problem��������������������������������������������������������������������������������������������������������������������������������� 84
Solution��������������������������������������������������������������������������������������������������������������������������������� 84
How It Works������������������������������������������������������������������������������������������������������������������������� 84
Recipe 3-9. Converting Text to Features Using State-­of-­the-Art Embeddings���������������������������� 87
Problem��������������������������������������������������������������������������������������������������������������������������������� 87
Solution��������������������������������������������������������������������������������������������������������������������������������� 87
ELMo�������������������������������������������������������������������������������������������������������������������������������������� 88
Sentence Encoders���������������������������������������������������������������������������������������������������������������� 89
Open-AI GPT�������������������������������������������������������������������������������������������������������������������������� 91
How It Works������������������������������������������������������������������������������������������������������������������������� 91

Chapter 4: Advanced Natural Language Processing��������������������������������������������� 107


Recipe 4-1. Extracting Noun Phrases��������������������������������������������������������������������������������������� 109
Problem������������������������������������������������������������������������������������������������������������������������������� 109
Solution������������������������������������������������������������������������������������������������������������������������������� 109
How It Works����������������������������������������������������������������������������������������������������������������������� 109
Recipe 4-2. Finding Similarity Between Texts��������������������������������������������������������������������������� 110
Solution������������������������������������������������������������������������������������������������������������������������������� 110
How It Works����������������������������������������������������������������������������������������������������������������������� 110

ix
Table of Contents

Recipe 4-3. Tagging Part of Speech������������������������������������������������������������������������������������������ 113


Problem������������������������������������������������������������������������������������������������������������������������������� 113
Solution������������������������������������������������������������������������������������������������������������������������������� 113
How It Works����������������������������������������������������������������������������������������������������������������������� 113
Recipe 4-4. Extracting Entities from Text���������������������������������������������������������������������������������� 116
Problem������������������������������������������������������������������������������������������������������������������������������� 116
Solution������������������������������������������������������������������������������������������������������������������������������� 116
How It Works����������������������������������������������������������������������������������������������������������������������� 116
Recipe 4-5. Extracting Topics from Text������������������������������������������������������������������������������������ 118
Problem������������������������������������������������������������������������������������������������������������������������������� 118
Solution������������������������������������������������������������������������������������������������������������������������������� 118
How It Works����������������������������������������������������������������������������������������������������������������������� 118
Recipe 4-6. Classifying Text������������������������������������������������������������������������������������������������������ 121
Problem������������������������������������������������������������������������������������������������������������������������������� 121
Solution������������������������������������������������������������������������������������������������������������������������������� 121
How It Works����������������������������������������������������������������������������������������������������������������������� 122
Recipe 4-7. Carrying Out Sentiment Analysis��������������������������������������������������������������������������� 125
Problem������������������������������������������������������������������������������������������������������������������������������� 125
Solution������������������������������������������������������������������������������������������������������������������������������� 125
How It Works����������������������������������������������������������������������������������������������������������������������� 125
Recipe 4-8. Disambiguating Text���������������������������������������������������������������������������������������������� 127
Problem������������������������������������������������������������������������������������������������������������������������������� 127
Solution������������������������������������������������������������������������������������������������������������������������������� 127
How It Works����������������������������������������������������������������������������������������������������������������������� 127
Recipe 4-9. Converting Speech to Text������������������������������������������������������������������������������������� 128
Problem������������������������������������������������������������������������������������������������������������������������������� 129
Solution������������������������������������������������������������������������������������������������������������������������������� 129
How It Works����������������������������������������������������������������������������������������������������������������������� 129
Recipe 4-10. Converting Text to Speech����������������������������������������������������������������������������������� 131
Problem������������������������������������������������������������������������������������������������������������������������������� 131

x
Table of Contents

Solution������������������������������������������������������������������������������������������������������������������������������� 131
How It Works����������������������������������������������������������������������������������������������������������������������� 131
Recipe 4-11. Translating Speech���������������������������������������������������������������������������������������������� 132
Problem������������������������������������������������������������������������������������������������������������������������������� 132
Solution������������������������������������������������������������������������������������������������������������������������������� 132
How It Works����������������������������������������������������������������������������������������������������������������������� 132

Chapter 5: Implementing Industry Applications��������������������������������������������������� 135


Recipe 5-1. Implementing Multiclass Classification����������������������������������������������������������������� 135
Problem������������������������������������������������������������������������������������������������������������������������������� 136
Solution������������������������������������������������������������������������������������������������������������������������������� 136
How It Works����������������������������������������������������������������������������������������������������������������������� 136
Recipe 5-2. Implementing Sentiment Analysis������������������������������������������������������������������������� 143
Problem������������������������������������������������������������������������������������������������������������������������������� 143
Solution������������������������������������������������������������������������������������������������������������������������������� 143
How It Works����������������������������������������������������������������������������������������������������������������������� 143
Recipe 5-3. Applying Text Similarity Functions������������������������������������������������������������������������� 154
Problem������������������������������������������������������������������������������������������������������������������������������� 154
Solution������������������������������������������������������������������������������������������������������������������������������� 155
How It Works����������������������������������������������������������������������������������������������������������������������� 155
Recipe 5-4. Summarizing Text Data������������������������������������������������������������������������������������������ 165
Problem������������������������������������������������������������������������������������������������������������������������������� 166
Solution������������������������������������������������������������������������������������������������������������������������������� 166
How It Works����������������������������������������������������������������������������������������������������������������������� 166
Recipe 5-5. Clustering Documents������������������������������������������������������������������������������������������� 172
Problem������������������������������������������������������������������������������������������������������������������������������� 172
Solution������������������������������������������������������������������������������������������������������������������������������� 172
How It Works����������������������������������������������������������������������������������������������������������������������� 172
Recipe 5-6. NLP in a Search Engine����������������������������������������������������������������������������������������� 178
Problem������������������������������������������������������������������������������������������������������������������������������� 178
Solution������������������������������������������������������������������������������������������������������������������������������� 178
How It Works����������������������������������������������������������������������������������������������������������������������� 179

xi
Table of Contents

Recipe 5-7. Detecting Fake News��������������������������������������������������������������������������������������������� 181


Problem������������������������������������������������������������������������������������������������������������������������������� 181
Solution������������������������������������������������������������������������������������������������������������������������������� 182
How It Works����������������������������������������������������������������������������������������������������������������������� 182
Recipe 5-8. Movie Genre Tagging��������������������������������������������������������������������������������������������� 195
Problem������������������������������������������������������������������������������������������������������������������������������� 195
Solution������������������������������������������������������������������������������������������������������������������������������� 196
How It Works����������������������������������������������������������������������������������������������������������������������� 197

Chapter 6: Deep Learning for NLP������������������������������������������������������������������������ 213


Introduction to Deep Learning�������������������������������������������������������������������������������������������������� 213
Convolutional Neural Networks������������������������������������������������������������������������������������������������� 215
Data������������������������������������������������������������������������������������������������������������������������������������������� 215
Architecture������������������������������������������������������������������������������������������������������������������������������ 216
Convolution������������������������������������������������������������������������������������������������������������������������������� 216
Nonlinearity (ReLU)������������������������������������������������������������������������������������������������������������������� 216
Pooling�������������������������������������������������������������������������������������������������������������������������������������� 217
Flatten, Fully Connected, and Softmax Layers�������������������������������������������������������������������������� 217
Backpropagation: Training the Neural Network������������������������������������������������������������������������ 218
Recurrent Neural Networks������������������������������������������������������������������������������������������������������ 218
Training RNN: Backpropagation Through Time (BPTT)�������������������������������������������������������������� 219
Long Short-Term Memory (LSTM)��������������������������������������������������������������������������������������������� 219
Recipe 6-1. Retrieving Information������������������������������������������������������������������������������������������� 220
Problem������������������������������������������������������������������������������������������������������������������������������� 221
Solution������������������������������������������������������������������������������������������������������������������������������� 221
How It Works����������������������������������������������������������������������������������������������������������������������� 222
Recipe 6-2. Classifying Text with Deep Learning���������������������������������������������������������������������� 227
Problem������������������������������������������������������������������������������������������������������������������������������� 227
Solution������������������������������������������������������������������������������������������������������������������������������� 227
How It Works����������������������������������������������������������������������������������������������������������������������� 228

xii
Table of Contents

Recipe 6-3. Next Word Prediction��������������������������������������������������������������������������������������������� 240


Problem������������������������������������������������������������������������������������������������������������������������������� 241
Solution������������������������������������������������������������������������������������������������������������������������������� 241
How It Works����������������������������������������������������������������������������������������������������������������������� 241
Recipe 6-4. Stack Overflow question recommendation������������������������������������������������������������ 248
Problem������������������������������������������������������������������������������������������������������������������������������� 249
Solution������������������������������������������������������������������������������������������������������������������������������� 249
How It Works����������������������������������������������������������������������������������������������������������������������� 249

Chapter 7: Conclusion and Next-Gen NLP������������������������������������������������������������� 263


Recipe 7-1. Recent advancements in text to features or distributed representations������������� 265
Problem������������������������������������������������������������������������������������������������������������������������������� 265
Solution������������������������������������������������������������������������������������������������������������������������������� 265
Recipe 7-2. Advanced deep learning for NLP��������������������������������������������������������������������������� 265
Problem������������������������������������������������������������������������������������������������������������������������������� 265
Solution������������������������������������������������������������������������������������������������������������������������������� 265
Recipe 7-3. Reinforcement learning applications in NLP��������������������������������������������������������� 266
Problem������������������������������������������������������������������������������������������������������������������������������� 266
Solution������������������������������������������������������������������������������������������������������������������������������� 266
Recipe 7-4. Transfer learning and pre-trained models������������������������������������������������������������� 267
Problem������������������������������������������������������������������������������������������������������������������������������� 267
Solution������������������������������������������������������������������������������������������������������������������������������� 268
Recipe 7-5. Meta-learning in NLP��������������������������������������������������������������������������������������������� 273
Problem������������������������������������������������������������������������������������������������������������������������������� 273
Solution������������������������������������������������������������������������������������������������������������������������������� 273
Recipe 7-6. Capsule networks for NLP������������������������������������������������������������������������������������� 274
Problem������������������������������������������������������������������������������������������������������������������������������� 274
Solution������������������������������������������������������������������������������������������������������������������������������� 274

Index��������������������������������������������������������������������������������������������������������������������� 277

xiii
About the Authors
Akshay Kulkarni is a renowned AI and machine learning
evangelist and thought leader. He has consulted several
Fortune 500 and global enterprises on driving AI and
data science–led strategic transformation. Akshay has
rich experience in building and scaling AI and machine
learning businesses and creating significant impact. He
is currently a data science and AI manager at Publicis
Sapient, where he is part of strategy and transformation
interventions through AI. He manages high-priority
growth initiatives around data science and works on
various artificial intelligence engagements by applying
state-of-the-art techniques to this space.
Akshay is also a Google Developers Expert in machine learning, a published author
of books on NLP and deep learning, and a regular speaker at major AI and data science
conferences.
In 2019, Akshay was named one of the top “40 under 40 data scientists” in India.
In his spare time, he enjoys reading, writing, coding, and mentoring aspiring data
scientists. He lives in Bangalore, India, with his family.

Adarsha Shivananda is a lead data scientist at Indegene


Inc.’s product and technology team, where he leads a
group of analysts who enable predictive analytics and AI
features to healthcare software products. These are mainly
multichannel activities for pharma products and solving
the real-time problems encountered by pharma sales reps.
Adarsha aims to build a pool of exceptional data scientists
within the organization to solve greater health care problems
through brilliant training programs. He always wants to stay
ahead of the curve.

xv
About the Authors

His core expertise involves machine learning, deep learning, recommendation


systems, and statistics. Adarsha has worked on various data science projects across
multiple domains using different technologies and methodologies. Previously, he
worked for Tredence Analytics and IQVIA.
He lives in Bangalore, India, and loves to read, ride, and teach data science.

xvi
Other documents randomly have
different content
CHAPTER I.
MODERN PACKING HOUSES.
Introduction and Growth — Concentration — Early Methods — Yankee
Ingenuity — Chicago Yards — Movement Westward — Economic
Factors — Saving By-Products — Pioneer’s Troubles — Using Box Cars
— Using Refrigerator Cars — Chilling Rooms — Mechanical
Refrigeration — Freezing Meats — Overseas Shipments.

Introduction and Growth.—Few industries in the United States


have shown such rapid growth as has the packing house business.
The modern packing house, as it exists today, may be said to be less
than forty years old since its inception. One naturally inquires the
causes which led to the growth of this industry to its present
proportions in so short a time, ranking practically fifth in importance
among the industries of the United States. The main factor which
has been instrumental in the consummation of this immense growth
is concentration—coupled with—conservation.
Concentration.—Concentration permits the manipulation of by-
products, creating useful and valuable materials saleable in
themselves and tending to reduce the commercial cost of the edible
portion of the animal. Conservation in the saving of all parts of the
animal to their best uses.
Early Methods.—Before the modern packing house was
established the method in vogue was to either ship by car or drive
live stock to the point of consumption, where it was slaughtered and
put on the market in a crude and expensive way compared with the
methods of to-day. In the evolution of the business the first step
toward making the modern packing house was the concentration of
live stock at a few markets where it was offered for sale. Prior to that
time it would have been impossible for any one point to obtain
sufficient stock to much more than supply its local demands, and
surely not enough to supply a modern establishment.
Yankee Ingenuity.—In the United States during the early days of
the live stock market, buyers purchased their supplies where they
best could, and shipped them alive to the places where the animals
were to be consumed. At this point “Yankee” ingenuity interceded
and devised the opposite plan, viz: that of shipping the live stock to a
few central points and there changing it to dressed meats, which
were shipped to the consuming markets. The development of this
plan inaugurated a new line of business now recognized as one of
the most important of modern industries—central stock yards and
packing house centers.

FIG. 1.—LIVE STOCK GOING TO SCALE, UNION STOCK YARDS, CHICAGO.


Chicago Yards.—One of the first and largest of these central live
stock depots to be established was the Union Stock Yards, Chicago,
Ill., U. S. A., where are located the largest slaughter houses. Views
of these great yards are shown. Fig. 1 shows one of the places
where live stock is passed to the scales and weighed prior to
delivery to the purchaser; Fig. 2, a view of the live stock pens and an
alleyway on a busy day; Fig. 3, a view of a pen containing choice
yearling cattle, and Fig. 4, one containing a bunch of choice Polled-
Angus cattle. These views are typical of many markets now
established throughout the United States and where the business is
conducted upon a parallel basis.

FIG. 2.—A BUSY ALLEY, UNION STOCK YARDS, CHICAGO.


Movement Westward.—Many factors and conditions contributed
to the possibility of the modern packing plant. The feature of
slaughtering the cattle near to the point of growth lessened the
shrinkage and abuse of the animal and its resulting food product.
There are many of the conditions that might be gone into in detail but
which are now of no consequence. However, among the conditions
that made the business possible was the fact that on the vast plains
of the west, innumerable cattle were being raised at a minimum cost,
with but little local sale, whereas in the thickly settled east, in the
manufacturing districts, a ready market was found for the beef.

FIG. 3.—PEN CONTAINING CHOICE YEARLING CATTLE.

Economic Factors.—Economic conditions make the raising of


live stock, in juxtaposition to the production of grain, a fixed fact. And
apparently the nearer to the source of supply the animal is
slaughtered the less deterioration in the product, animal and meat
considered together. The packing business of this country would
practically be impossible in older countries that are thickly settled, as
the cost of raising live stock would be actually about the same in all
parts, and the cost of shipping from one point to another would only
add to the original cost. With the lower cost of raising the animal on
low value land, the eastern farmer with his high priced land was
unable to compete, hence the practice of raising live stock in the
west and consuming it in the east; and the concentration of live stock
at the large markets, with the improved devices, has made the
business a possibility, and the money and energy expended in
adopting the best methods has caused its growth to its present
magnitude.

FIG. 4.—PEN CONTAINING CHOICE POLLED-ANGUS CATTLE.


Saving By-Products.—Another important feature adding to the
growth of this industry, is the saving effected
by utilizing the by-products. When animals were killed promiscuously
throughout the country this was impossible, for a man killing a few at
some local point could not save the by-products, consequently they
were lost. Neither could the small killer afford the necessary
appliances with which to turn the material out economically and
compete with business on a large scale, any more than the ancient
cobbler sitting at his bench, could afford the labor-saving machines
and devices which are seen in modern shoe factories. The general
health of the public has been served by having their meats properly
inspected and delivered in a much better condition than they could
be at the time when the animal was killed and the meat consumed
without it being properly chilled. That the meat is delivered to the
consumer in a more palatable condition than it was formerly is
generally conceded by all. Foreigners who visit this country are
invariably impressed with the superior meats with which they are
served, due to the process in chilling, and the age at the time of
consumption.
The by-products which are saved in modern plants, which, under
the older methods were almost entirely lost, have a good value.
Heads and feet, for example, which were ordinarily thrown away, are
to-day made up into various products, all of which have a value. The
blood, fats and refuse, are turned into commercial commodities, and
the saving of these different parts creates a profit in the business, a
profit heretofore lost. Further details on this subject will be given in
the chapters treating on by-products.
Pioneer’s Troubles.—When the pioneers of the business first
broached the idea of killing cattle in Chicago and selling the dressed
beef in the east it was considered wholly impracticable, and the
people who started the business were looked upon as a “little queer.”
There were many bitter experiences, in the way of financial losses
before it was accomplished. Shipping perishable products long
distances caused the loss of many thousands of dollars before the
proper methods were discovered, but the beginners felt they were
working along the right lines. Obstacles were overcome and to-day
meats are delivered in eastern markets in a far better and a more
healthful condition than they were ever offered to the public under
the old methods from local abattoirs.
Using Box Cars.—In the early days of the concentrated cattle
markets, fresh meat products were only shipped during the winter
months and in a common or what is now known as a “box” car, as
differentiated from a “refrigerator” car.
Using Refrigerator Cars.—The next step was the use of ice in
the car and from this to the “refrigerator” car. This type of car with the
improved dispatch service offered by the railways, made the
business of shipping freshly dressed beef to any part of the country
feasible.
The Chilling Room.—Notably and most essential was the
development of a chilling department in which the slaughtered
animal could be properly chilled. This is now a matter of such
common occurrence that but little consideration is given the subject.
However, in the days when ice was used, and before the introduction
of mechanical refrigeration it was a matter of large consequence.
Mechanical Refrigeration.—Mechanical refrigeration, and this
alone, has made it possible to properly cool meats for shipment to
remote points as fresh meats, or to properly prepare them for curing,
and to preserve them after curing beyond a comparatively limited
time. Mechanical refrigeration made possible the equipping of ships
for the transportation of meats under refrigeration from any point to
any market on the globe.
Freezing Meats.—The freezing of meats such as beef and
poultry, and holding them to a desirable season has rapidly become
an important factor in packing house work. Not only beef, poultry,
butter and other food products are accumulated, but pork cuts, such
as hams, shoulders, bellies, etc., are frozen and carried indefinitely
or until it appears desirable to thaw and cure them.
Overseas Shipments.—A contributing feature to the development
of the packing house business, was the overseas shipment of meats.
In the early part of the decade 1900-1910 a very large business in
fresh beef was conducted between the United States and England.
At the outset it was considered an impossibility, but by the most
careful and detailed attention and the utilization of modern methods,
it was found possible to kill cattle or sheep in the hottest months of
the year at interior points in the United States, ship the meats in
refrigerator cars to the seaboard, transfer into refrigerated rooms on
the steamers and thence to England, the meat being sometimes four
or five weeks en route from the abattoir where the animal was killed,
to the place where the meat finally reached the consumer. Even
though the English authorities gave it the most critical examination, it
was found in proper state for consumption. In the same manner vast
quantities of meat is finding its way from South America to the
European markets, most of it shipped “chilled,” not frozen. For a time
the United States furnished the largest part of the fresh meat
consumed in England. It is true that for many years we have
supplied foreign markets with cured and canned meats, but the fresh
meat trade in England is a business developed within a
comparatively few years and it grew to magnitude. However, owing
to our growth, increasing home demands, and the changed
economic conditions, this business dwindled in the last decade so
that on beef it was practically gone, except that during the European
war owing to prevailing conditions, it was revived for a time at least.
The pre-eminence of the United States pork products, however, is
everywhere recognized and until new corn producing lands are
developed and utilized, the corn and the pig supply for the world will
be that part of the United States west of the Alleghany mountains
and east of the Rocky mountains.
CHAPTER II.
LOCATION AND CONSTRUCTION.
Location — Water Supply — Sewage — Odors and Prevailing Winds —
Cleanliness — Designs and Errors — Character of Business —
Requirements — Principles of Design.

Location.—Location is a moderate sized word with a vast


meaning. It has two definitions as applied to meat packing houses.
First.—Location as to a live stock supply. Pioneers in foreign lands
looking for a cheap supply must take into consideration the quantity
immediately available, the probabilities based upon feeding, climate,
natural enemies—beast and bug—and the ambition of the people to
produce as well as their ability to produce.
Sometimes an apparent supply is at hand but a searching
investigation will show that it is an accumulated surplus, soon
exhausted, with a resultant dearth. In the case of cattle, a supply
cannot be created in a day but by persistent effort and in several
generations of human life.
Transportation by trooping and by train, or the ability of the cattle
to withstand the first or the ability of the railways to handle for want
of facilities, are at times matters of much consequence.
Second.—Location as applied to a position for operating,
applicable to domestic or foreign works. There are several items of
prime importance to be considered in selecting a location from this
standpoint. In many instances a plant is established near a locality
producing a sufficient quality of live stock suitable for a certain
purpose, for example pigs suitable for export trade. In some
instances the selection of a location is made for trade reasons, or to
be adjacent to a stock yards; and in instances because property is
owned in a certain locality. Where situation can be of choice, the
matters for most serious consideration are sewage disposal, water
supply, prevailing winds and transportation facilities.
Water Supply.—This is of great consequence. The quantity to be
used for condensing purposes, refrigerating machinery operation, for
cleansing, and in the regular course of business, is a very large
amount, and if purchased from water supply corporations or
municipalities, at prevailing rates, become a burdensome item of
expense. The principal use for water can be classified under three
headings:
Boiler Purposes—This naturally will be selected from available
sources based upon fitness, irrespective of cost.
Condensing—First, for refrigerating machinery ammonia
condensing and for steam engine condensing, in conjunction with
the production of power and operating steam engines on
refrigerating equipment. For this purpose cold water is desirable. If it
can be obtained from wells it is the best practice, owing to such
water usually being of low temperature. However, the cost of
production must be considered, and that calls for engineering
knowledge as to relative conditions. Usually, unless the surface
water be in large quantity and available from a stream, the wells
prove economical unless the water must be raised from great depths
involving air lift pumping. There are instances, however, where
turbidity makes water from streams undesirable and where well
water is unobtainable, and in instances of this kind use of settling
basins, reservoirs and cooling towers is resorted to.
For Cleaning and Other Purposes—The water for cleansing
purposes, for food products, fats and premises, should be clean and
free from contamination that render it unfit for potable uses.
Sewage.—The question of sewage disposal from a packing house
is of more consequence than the water supply, which is usually
determined by the relative cost. The former is a matter of disposition.
No matter how carefully the refuse from the slaughtered animal is
collected for passing through the rendering department, or how
carefully the waters from cooking are collected for evaporation, quite
large quantities of nitrogenous particles and many substances which
are more cheaply disposed of by the way of the sewers, ultimately
reach them. If the refuse finds its way to a rapidly flowing stream, it is
taken care of by bacterial action, but if discharged into a dry stream
or pool, or to a sewage disposal plant, it becomes a serious burden
that sooner or later reverts to the packer.
Odors and Prevailing Winds.—Naturally to minimize the
distance of transport to stations for shipping or delivery to the
consumer, or to be near to a supply of labor, every manufacturer is
desirous of locating his works near to a city or on its outskirts, if not
at a commercial stock yards. Where the latter are of comparatively
large consequence to a community, the odors arising are usually
considered a “necessary evil” and the packing plant as a part of that.
No matter how carefully the plant may be operated, if the full
commercial value is taken out of all products there are some
departments in which it is difficult to abate the smells, and if the
prevailing winds are towards a residence district, it is likely to cause
disturbance. This statement can be qualified, however, because it is
a fact that plants can be designed and can be operated so as to be
kept within proper bounds and be of no more nuisance than the
handling of the live animals, but it will always be well for the
prospective packer to recognize that he would not care to live on the
premises, nor will his neighbor appreciate his works any more than
he. A packing house properly belongs to a district at a reasonable
distance from residence property, and where the prevailing winds are
not toward the residence district.
Cleanliness.—The features contributing most to the operation of a
plant so as to avoid it becoming noisome is that of cleanliness, first,
last and always; ample equipment to promptly dispose of all by-
products, and to do it promptly.
Design and Errors.—The location disposed of, the design and
construction is a problem that cannot have too careful consideration.
There are two grievous errors that may creep in; overbuilding and
under building. Overbuilding recognizes the construction of a plant
too large for present needs, thereby making the capital investment
too large for the business to be done, and sometimes resulting in the
handicap of insufficient monies for plant operation with all the
difficulties entailed. Under building, failing to recognize the growth
that might occur and failing to so arrange that the growth can be
made in a way that keeps the plant in balance and makes for
economical operation. Either condition may lead to regrets.
Character of Business.—At this point comes the consideration of
the character of the business to be conducted and the proportioning
of departments one to another suitably. For instance, in a beef
shipping plant for fresh beef the coolers may have a hanging
capacity equal to at least three times the daily slaughtering capacity,
while at some market points the ratio may be ten times. Whereas, at
a freezing plant it becomes a question of room to accumulate a
cargo dependent upon transport facilities.
Requirements.—The requirements in the various localities, as to
arrangement of departments; to comply with sanitary necessities as
to light and ventilation, and the classes of materials required in
construction, are changing from time to time and no set rule can be
made, but these are axiomatic:
(1) Products prepared for food purposes must be quickly and
thoroughly isolated from non-edible products.
(2) All departments should, so far as possible, be maintained in
separate buildings.
(3) Building materials should, so far as possible, be non-
absorbent.
(4) Light and air should be arranged for in plenty.
(5) The question of movement of product to minimize labor should
be given proper attention. In the building of a packing house it is only
within the last few years that this matter has been studied from the
standpoint of obtaining the best results at the least expenditure for
operating.
(6) Formerly it was considered proper to build the killing house and
coolers on the ground level, excavating a cellar for the storage of
some of the products; the power house, tank rooms and other
buildings for the disposition of by-products were placed without
reference to economy in operation. Experience has proven that it is
economical to slaughter animals on the upper floor of a building, and
instead of spreading out on the ground and covering a large area as
formerly, to build higher over a smaller area. With a proper incline
the animals will walk to an elevation of 50 or 60 feet without
detriment to their condition, and it is much cheaper to do this than to
kill them on the ground level and elevate the products, or to convey
or transport them to distant buildings on the same level.
(7) The use of gravity is recognized as a proper procedure in all
departments from a low labor cost standpoint. The locating of the
buildings, one to another; to minimize the transferring of products;
and the grouping of products as to convenience in shipping by
wagon, by car or by boat, as the case may require, are also
important.
(8) Very important is the question of grouping cold storage
departments so as to minimize the wall space and exposure from
radiation; likewise the concentration of buildings requiring heat to
avoid the loss of fuel by reason of long steam lines, and radiation
which can not be prevented.
Principles of Design.—The crux of the plant appears to be the
slaughtering department for it is here the work begins and from this
source radiates the various parts for disposal. One well-known and
successful designer works with the idea of beginning at the
rendering department, and establishing the tops of the rendering
tanks, or digestors, on a level with the viscera separating floor, from
which the refuse is readily transported without the use of elevator or
lift service.
The slaughtering floor is naturally above this level, and all other
departments disposed to meet the various needs. Obviously there
being so many controlling factors, no examples can be set out to
meet all conditions. There follows however, a ground plan and
sectional view of several plants of varying sizes with descriptive
data.
CHAPTER III.
PLANT DESIGN.
Description of Plants — Plant No. 1 — Plant No. 2 — Plant No. 3 —
Plant No. 4 — Type of Plant — Loading Facilities — Producing
Department — Abbatoir Building — Rendering Building — Live Stock —
Icing Department — Cooler Building — Pork House — Manufacturing
Building — Salt Spaces — Power Department — Gravity System — How
to Build — Fireproof Design — Advantages — Slow Burning
Construction — Approval of Plans.

Description of Plants.—This chapter is devoted to a description


of several types of plants.
Plant No. 1.—A moderate sized beef, mutton, and pork producing
plant capable of slaughtering six hundred cattle, fifteen hundred
sheep and fifteen hundred hogs daily, and taking care of the
products of manufacture resulting therefrom. This design was
developed upon the principle of gravity for movement of products
with as little use of elevators as possible; the avoidance of excessive
use of mechanical conveyors and contrivances; the grouping of
buildings intended for hot or cold temperatures; economy of
operation, and for minimum car movement.
Loading Facilities.—The general arrangement provides for wagon
and dray loading facilities fronting the main thoroughfare. The
garage and office are at the left and right sides of the court. Three
tracks are situated between the two groups of buildings to take care
of the car loading. Usually the refrigerated products are loaded upon
the east track, and non-refrigerated products, such as hides and
bones, and the oleo department products, upon the west track. The
intermediate track is used for the storing of cars. By use of the
connecting platform at the south end either kind of cars can be
loaded on either track. A separate non-interfering railroad spur is
provided for unloading coal, and cotton seed oil, and for loading
tallow, while a distinct track is provided for loading cars of dry salt
meats from the pork warehouse.

FIG. 5.—PLANT NO. 1, MODERATE SIZE PACKING HOUSE.

Producing Department—The abattoir is made the center of


distribution, with the refrigerated buildings and departments directly
communicative, situated nearby. The rendering and manufacturing
departments—users of steam and power—are grouped near to the
abattoir and to the power plant, while the buildings requiring
refrigeration are grouped together and isolated from the
manufacturing buildings. The stock pens connected with the plant
are to the left of the manufacturing groups, but are not shown on the
plan.
Abattoir Building—This building, six stories high, is given over to
the following uses: Fourth floor, slaughtering; third floor, treatment,
separation and cooking of by-products and manufacture of casings;
second floor, oleo oil manufacturing; first floor, oleo oil storage, and
shipping purposes; basement and sub-basement, storage of tallow
and curing of hides.

FIG. 6.—EXTERIOR VIEW BEEF, SHEEP AND PORK PLANT.

Rendering Building—Divided into two sections and separated by


partitions, one side is used for the refining of cotton seed oil and the
manufacture of edible tallows; the other side for cooking blood and
rendering inedible tallows. The floors are used as follows: Second
floor, level with viscera separating floor in abattoir, from whence raw
stock is trucked to the filling floor without requiring use of elevators
for filling of tanks; first floor, tank bodies and receptacles for
collection of tallow. The skimming vats to which the tank residue,
after drawing off the tallows, is passed, are level with this floor,
enabling the separation and floating of the tallow and its collection;
basement for press room, and sub-basement for drying tankage. The
tank water to be evaporated is collected and passed to a separate
building for treatment and evaporation.
Live Stock—The live stock pens are situated to the left of the
rendering department extending north of the oil storage
tanks from which position leads an incline, delivering the live stock
into an elevated storage pen covering the area between the
rendering house and the abattoir, and over the dressing room.
Icing Department—Facilities for manufacturing ice for cooling cars
are provided in the space directly north of the abattoir building. The
three railroad tracks between the two groups of buildings are
covered with a protecting shed, and from the bottom member of the
trusses are suspended trolley rails for handling buckets of ice to be
dumped into the tanks of the refrigerator cars.
Cooler Building—The dressed beef, mutton and pork is transferred
via bridge with chain conveyors, carrying the carcasses from the
slaughtering house floor to the cooling rooms situated upon the third
floor of the cooler building. From this floor the carcasses are
conveyed for storage purposes to the second and first floor, and from
there they are passed to the cutting room, city sales department, or
cars. The basement and sub-basement are used for curing beef and
pork joints. The fourth floor of this building is set aside for freezing
products which, after being frozen, are shipped for storage to other
premises owned by the same company.
FIG. 7.—SECTIONAL VIEW INDICATING LEVELS AND COMPARATIVE LEVELS
OF DEPARTMENT FLOORS.

Pork House—The fourth floor of the pork house is utilized for


chilling hogs; the third for cutting them, and all floors below for curing
purposes. Note, the arrangement whereby the pork house and the
cooler building are each connected with the team-loading platform
and also closely arranged for car loading.
Manufacturing Building—A manufacturing building given over to
the production of sausage, smoked meats, lard and the packing and
shipping of same is immediately north of the cooler and pork
buildings, and connected thereto at all floors where necessary. The
city shipping department has its allotted space on the ground floor of
the cooler building and the products finished in the manufacturing
building move south toward the team loading platforms.
Salt Spaces, etc.—In this instance, but which rarely occurs, the
city’s main sewer system is located at a deep level, which affords
proper drainage and permitted the construction of two cellars. There
are, therefore, two stories practically under ground. This is a decided
advantage from the standpoint of radiation exposure, and it also
affords an opportunity to provide salt storage and cooperage stowing
spaces on two levels adjacent to the railroad tracks. It further
provides a means for securing a connecting tunnel below the track
level, thus providing facilities for a perfect interchange from all cellar
departments. Of equal consequence is the opportunity to pass all
pipes for water, steam and refrigeration, power and lighting wires, as
well as products, from one department to another. This makes for a
low upkeep cost, little exposure, less radiation and greatly reduces
the annual upkeep.
Power Department—The boilers were placed on a floor level with
the basement. The coal pocket into which coal is dropped extends to
the sub-basement level, providing a comparatively large coal
storage. At the sub-basement level are the ash collecting bins. From
this level are provided elevators of the continuous bucket type for
raising the coal and ashes to tanks provided for storage, from which
the coal and ashes gravitate to the furnaces and disposal cars
respectively.
The engine foundations extend to the sub-basement level, with the
main engine situated upon the basement level. The pumps are
located in part on the lower level. All pipes and wires leading to the
operating department are carried through the sub-basement,
permitting the arrangement of all exhaust and steam piping beneath
the engine room floor.
Gravity System—Attention is called to the fact that in the rendering
department, for example, the products in their steps of manufacture
are handled by gravity entirely until the finished dried fertilizer is
produced, which has to be elevated to the ground level for car
shipment, or for wagon delivery. The same features are true of the
abattoir, hides and tallow in casks only, requiring the use of elevators
for shipment.
FIG. 8.—PLANT NO. 2, GROUND PLAN FOR COUNTRY PACKING HOUSE.

Plant No. 2.—This plant was designed for a country point where
the shipping by local freight cars or the city delivery was quite
limited; where the major part of the product would be shipped by car,
and where provision was made for quite an extensive growth. The
capacity as designed being four hundred hogs and fifty cattle daily,
with a complementary quantity of calves and sheep.
Loading Facilities—Again the three railways are provided for
convenience in loading and for facilitating switching and icing.

You might also like