Book Image

Machine Learning Techniques for Text

By : Nikos Tsourakis
Book Image

Machine Learning Techniques for Text

By: Nikos Tsourakis

Overview of this book

With the ever-increasing demand for machine learning and programming professionals, it's prime time to invest in the field. This book will help you in this endeavor, focusing specifically on text data and human language by steering a middle path among the various textbooks that present complicated theoretical concepts or focus disproportionately on Python code. A good metaphor this work builds upon is the relationship between an experienced craftsperson and their trainee. Based on the current problem, the former picks a tool from the toolbox, explains its utility, and puts it into action. This approach will help you to identify at least one practical use for each method or technique presented. The content unfolds in ten chapters, each discussing one specific case study. For this reason, the book is solution-oriented. It's accompanied by Python code in the form of Jupyter notebooks to help you obtain hands-on experience. A recurring pattern in the chapters of this book is helping you get some intuition on the data and then implement and contrast various solutions. By the end of this book, you'll be able to understand and apply various techniques with Python for text preprocessing, text representation, dimensionality reduction, machine learning, language modeling, visualization, and evaluation.
Table of Contents (13 chapters)

Understanding topic classification

In Chapter 2, Detecting Spam Emails, we learned how to classify incoming emails as either spam or ham. Undoubtedly, quarantining unwanted correspondence in the spam folder is an excellent feature for any email application. But is that enough? Still, ending up with a large number of emails stacked in your inbox can be an equally unpleasant situation. For this reason, creating personalized folders to accommodate each item and facilitate either responding to or archiving email threads is common. This necessity is even more acute for companies or large organizations that offer a generic contact account for external people. Hence, the appropriate personnel or department must process a large volume of incoming questions, announcements, offers, and complaints. This task can be cumbersome for a single person, while an automated system can check every email and decide who its recipient should be.

Besides emails, businesses deal with many other unstructured...