Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Network Science with Python
Network Science with Python

Network Science with Python: Explore the networks around us using network science, social network analysis, and machine learning

Arrow left icon
Profile Icon David Knickerbocker
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (15 Ratings)
Paperback Feb 2023 414 pages 1st Edition
eBook
€26.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon David Knickerbocker
Arrow right icon
€18.99 per month
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (15 Ratings)
Paperback Feb 2023 414 pages 1st Edition
eBook
€26.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€26.98 €29.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Network Science with Python

Introducing Natural Language Processing

Why in the world would a network analysis book start with Natural Language Processing (NLP)?! I expect you to be asking yourself that question, and it’s a very good question. Here is why: we humans use language and text to describe the world around us. We write about the people we know, the things we do, the places we visit, and so on. Text can be used to reveal relationships that exist. The relationship between things can be shown via network visualization. It can be studied with network analysis.

In short, text can be used to extract interesting relationships, and networks can be used to study those relationships much further. We will use text and NLP to identify relationships and network analysis and visualization to learn more.

NLP is very useful for creating network data, and we can use that network data to learn network analysis. This book is an opportunity to learn a bit about NLP and network analysis, and how they can be used together.

In explaining NLP at a very high level, we will be discussing the following topics:

  • What is NLP?
  • Why NLP in a network analysis book?
  • A very brief history of NLP
  • How has NLP helped me?
  • Common uses for NLP
  • Advanced uses of NLP
  • How can a beginner get started with NLP?

Technical requirements

Although there are a few places in this chapter where I show some code, I do not expect you to write the code yet. These examples are only for a demonstration to give a preview of what can be done. The rest of this book will be very hands-on, so take a look and read to understand what I am doing. Don’t worry about writing code yet. First, learn the concepts.

What is NLP?

NLP is a set of techniques that helps computers work with human language. However, it can be used for more than dealing with words and sentences. It can also work with application log files, source code, or anything else where human text is used, and on imaginary languages as well, so long as the text is consistent in following a language’s rules. Natural language is a language that humans speak or write. Processing is the act of a computer using data. So, NLP is the act of a computer using spoken or written human language. It’s that simple.

Many of us software developers have been doing NLP for years, maybe even without realizing it. I will give my own example. I started my career as a web developer. I was entirely self-educated in web development. Early in my career, I built a website that became very popular and had a nice community, so I took inspiration from Yahoo Chats (popular at the time), reverse-engineered it, and built my own internet message board. It grew rapidly, providing years of entertainment and making me some close friends. However, with any good social application, trolls, bots, and generally nasty people eventually became a problem, so I needed a way to flag and quarantine abusive content automatically.

Back then, I created lists of examples of abusive words and strings that could help catch abuse. I was not interested in stopping all obscenities, as I do not believe in completely controlling how people post text online; however, I was looking to identify toxic behavior, violence, and other nasty things. Anyone with a comment section on their website is very likely doing something similar in order to moderate their website, or they should be. The point is that I have been doing NLP since the beginning of my career without even noticing, but it was rule-based.

These days, machine learning dominates the NLP landscape, as we are able to train models to detect abuse, violence, or pretty much anything we can imagine, which is one thing that I love the most about NLP. I feel that I am limited only by the extent of my own creativity. As such, I have created classifiers to detect discussions that contained or were about extreme political sentiment, violence, music, art, data science, natural sciences, and disinformation, and at any given moment, I typically have several NLP models in mind that I want to build but haven’t found time. I have even used NLP to detect malware. But, again, NLP doesn’t have to be against written or spoken words, as my malware classifier has shown. If you keep that in mind, then your potential uses for NLP massively expand. My rule of thumb is that if there are sequences in data that can be extracted as words – even if they are not words – they can potentially be used with NLP techniques.

In the past, and probably still now, analysts would drop columns containing text or do very basic transformations or computations, such as one-hot encoding, counts, or determining the presence/absence (true/false). However, there is so much more that you can do, and I hope this chapter and book will ignite some inspiration and curiosity in you from reading this.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Create networks using data points and information
  • Learn to visualize and analyze networks to better understand communities
  • Explore the use of network data in both - supervised and unsupervised machine learning projects
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Network analysis is often taught with tiny or toy data sets, leaving you with a limited scope of learning and practical usage. Network Science with Python helps you extract relevant data, draw conclusions and build networks using industry-standard – practical data sets. You’ll begin by learning the basics of natural language processing, network science, and social network analysis, then move on to programmatically building and analyzing networks. You’ll get a hands-on understanding of the data source, data extraction, interaction with it, and drawing insights from it. This is a hands-on book with theory grounding, specific technical, and mathematical details for future reference. As you progress, you’ll learn to construct and clean networks, conduct network analysis, egocentric network analysis, community detection, and use network data with machine learning. You’ll also explore network analysis concepts, from basics to an advanced level. By the end of the book, you’ll be able to identify network data and use it to extract unconventional insights to comprehend the complex world around you.

Who is this book for?

Network Science with Python demonstrates how programming and social science can be combined to find new insights. Data scientists, NLP engineers, software engineers, social scientists, and data science students will find this book useful. An intermediate level of Python programming is a prerequisite. Readers from both – social science and programming backgrounds will find a new perspective and add a feather to their hat.

What you will learn

  • Explore NLP, network science, and social network analysis
  • Apply the tech stack used for NLP, network science, and analysis
  • Extract insights from NLP and network data
  • Generate personalized NLP and network projects
  • Authenticate and scrape tweets, connections, the web, and data streams
  • Discover the use of network data in machine learning projects

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 28, 2023
Length: 414 pages
Edition : 1st
Language : English
ISBN-13 : 9781801073691
Vendor :
Apache
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Feb 28, 2023
Length: 414 pages
Edition : 1st
Language : English
ISBN-13 : 9781801073691
Vendor :
Apache
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 105.97
Causal Inference and Discovery in Python
€29.99
Interpretable Machine Learning with Python
€37.99
Network Science with Python
€37.99
Total 105.97 Stars icon

Table of Contents

16 Chapters
Part 1: Getting Started with Natural Language Processing and Networks Chevron down icon Chevron up icon
Chapter 1: Introducing Natural Language Processing Chevron down icon Chevron up icon
Chapter 2: Network Analysis Chevron down icon Chevron up icon
Chapter 3: Useful Python Libraries Chevron down icon Chevron up icon
Part 2: Graph Construction and Cleanup Chevron down icon Chevron up icon
Chapter 4: NLP and Network Synergy Chevron down icon Chevron up icon
Chapter 5: Even Easier Scraping! Chevron down icon Chevron up icon
Chapter 6: Graph Construction and Cleaning Chevron down icon Chevron up icon
Part 3: Network Science and Social Network Analysis Chevron down icon Chevron up icon
Chapter 7: Whole Network Analysis Chevron down icon Chevron up icon
Chapter 8: Egocentric Network Analysis Chevron down icon Chevron up icon
Chapter 9: Community Detection Chevron down icon Chevron up icon
Chapter 10: Supervised Machine Learning on Network Data Chevron down icon Chevron up icon
Chapter 11: Unsupervised Machine Learning on Network Data Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(15 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Kindle Customer Dec 04, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I learned all about graphs and networks in College a few decades ago. It has proven fairly useless knowledge to me.This book, on the other hand, is incredible. I can now see how these tools and approaches are relevant to my work in data. It's really reshaped how I think of data problems through brilliant examples and with appropriate context.David has taken the Academic and made it Useful. And it's wicked cool!
Amazon Verified review Amazon
Om S Mar 12, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book "Network Science with Python" is an excellent resource for anyone looking to learn how to create networks using data points and information. The author provides a hands-on approach to learning about network science, natural language processing, and social network analysis.The book is well-organized, with a clear and concise table of contents that makes it easy to navigate. The first few chapters introduce the basics of natural language processing and network science, followed by useful Python libraries for these topics. The author then demonstrates how to extract insights from NLP and network data, and generate personalized NLP and network projects.One of the standout features of this book is its emphasis on practical applications of network analysis. The author includes detailed instructions on how to authenticate and scrape tweets, connections, the web, and data streams. Readers will learn how to construct and clean networks, conduct egocentric network analysis, and detect communities within networks.The final chapters of the book explore the use of network data in both supervised and unsupervised machine learning projects. The author provides detailed explanations of these concepts, making them accessible to readers from both social science and programming backgrounds.Overall, "Network Science with Python" is a valuable resource for anyone interested in learning about network analysis and its practical applications. The inclusion of specific technical and mathematical details ensures that readers will have a solid foundation for future reference. The purchase of the print or Kindle book also includes a free PDF eBook, making it a great value for anyone looking to expand their knowledge of network science.
Amazon Verified review Amazon
zuluwhiskey May 17, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a data scientist, NLP is an area I've had limited experience in. It was never as striking to me as other areas of data science. But I've followed David Knickerbocker for a while now and was happy to purchase this the moment I saw his announcement on LinkedIn. It is hard for me to imagine a better introduction to this topic and it was, I think, precisely what I needed. The linear progression and friendly tone makes it highly bingeable. It is written with contagious enthusiasm and seasoned wisdom. It quite plainly communicates the profundity and power of a good network analysis - and this is what I never understood, why I should ever care, what all can really be done with a graph? David answers by providing quickly digestible examples and inspires a curiosity to explore. This is a hit-the-ground-running book, a why-should-I-care-answer book, and a I-didn't-know-I'd-find-this-so-interesting book. Needless to say, I look forward to exploring these concepts with my own projects. David's enthusiasm is indeed contagious.
Amazon Verified review Amazon
Ben Bearden Mar 21, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I've had an awesome time reading and applying the concepts of David Knickerbocker's book "Network Science with Python" to my own research.Above is a social network of Russian propaganda channels on Telegram that I've made using the techniques he laid out in his book.It is still a work in progress, but I am baffled by the applicability of network science to OSINT and research in general.Still reading but am thoroughly enjoying it thus far!
Amazon Verified review Amazon
Gerald H. SHUDY Jr. May 10, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Having followed David on LinkedIn for some time and getting advice from him occasionally, I was very excited to get the “collected wisdom” of his journey in an easy-to follow and FUN book!It’s everything I hoped for and even though I’m not finished yet, I had to come here to say this. :-)
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.