Free Machine Learning for Text study guide

This free Machine Learning for Text study guide has 16 topics, 136 flashcards and 10 practice questions, starting with 1 Language and modeling, 2 Tokenization and 3 Stop words. It suits college students at the intermediate level and is built from the open textbook “Supervised Machine Learning for Text Analysis in R” by Emil Hvitfeldt and Julia Silge (CC BY-NC-SA 4.0). It is free to use, and the study aids are generated automatically, so check important facts against your own textbook.

Study this course free

What you will study

16 topics, in the order of the textbook. Your own course may order them differently, so follow your syllabus.

Chapter 1: 1 Language and modeling

Machine learning and deep learning models for text are executed by computers, but they are designed and created by human beings using language generated by human beings.

Chapter 2: 2 Tokenization

To build features for supervised machine learning from natural language, we need some way of representing raw text as numbers so we can perform computation on them.

Chapter 3: 3 Stop words

Once we have split text into tokens, it often becomes clear that not all words carry the same amount of information, if any information at all, for a predictive modeling task.

Chapter 4: 4 Stemming

When we deal with text, often documents contain different versions of one base word, often called a stem. “The Fir-Tree,” for example, contains more than one version (i.e., inflected form) of the word "tree".

Chapter 5: 5 Word Embeddings

You shall know a word by the company it keeps. — John Rupert Firth So far in our discussion of natural language features, we have discussed preprocessing steps such as tokenization, removing stop words, and stemming in detail.

Chapter 6: Overview

Chapter 7: 6 Regression

Chapter 8: 7 Classification

In Chapter 6, we focused on modeling to predict continuous values for documents, such as what year a Supreme Court opinion was published. A regression model predicts a numeric or continuous value.

Chapter 9: Overview

The layers in a deep learning model are connected in a network, and these models are called neural networks, although they do not work much like a human brain.

Chapter 10: 8 Dense neural networks

Like we discussed in the previous overview, these three chapters on deep learning for text are organized by network architecture, rather than by outcome type as we did in Chapters 6 and 7.

Chapter 11: 9 Long short-term memory (LSTM) networks

In Chapter 8, we trained our first deep learning models with straightforward dense network architectures that provide a bridge for our understanding as we move from shallow learning algorithms to more complex network...

Chapter 12: 10 Convolutional neural networks

The first neural networks we built in Chapter 8 did not have the capacity to learn much about structure, sequences, or long-range dependencies in our text data.

Chapter 13: Text models in the real world

As the school year of 2020 began with many schools in the United States operating online only because of the novel coronavirus pandemic, a parent of a junior high student reported that her son was deeply upset and filled with...

Chapter 14: A Regular expressions

Some people, when confronted with a problem, think: “I know, I’ll use regular expressions.” Now they have two problems.

Chapter 15: B Data

Chapter 16: C Baseline linear classifier

In Chapters 8, 9, and 10 we demonstrate in detail how to train and evaluate different kinds of deep learning classifiers for the Kickstarter data set of campaign blurbs and whether each campaign was successful or not.

Try some

Real flashcards and practice questions from this study guide, with their answers.

Flashcard 1

In your own words: what does “tidyverse” mean?

Answer: The tidyverse is a collection of packages for data manipulation, exploration, and visualization.

Flashcard 2

In your own words: what does “hardhat” mean?

Answer: The hardhat package is used by other tidymodels packages like recipes and parsnip under the hood.

Flashcard 3

In your own words: what does “Character classes” mean?

Answer: Spaces inside character classes are meaningful as they are interpreted as literal characters.

Practice question 1

Fill in the blank: The _____ is a collection of packages for data manipulation, exploration, and visualization.

  • A. Tokenizers
  • B. Trigram
  • C. Tidyverse
  • D. Stringi

Answer: C. Tidyverse

The tidyverse is a collection of packages for data manipulation, exploration, and visualization.

Practice question 2

Fill in the blank: The _____ algorithm and lime R package are not limited to explaining CNNs.

  • A. LIME
  • B. Parsnip
  • C. Kernel size
  • D. Convolutional neural network

Answer: A. LIME

The LIME algorithm and lime R package are not limited to explaining CNNs.

Study this course free

Prerequisites and next steps

Helpful to know first

More in AI and data science

About this study pack

Attribution: Adapted from “Supervised Machine Learning for Text Analysis in R” by Emil Hvitfeldt and Julia Silge (https://smltar.com/), CC BY-NC-SA 4.0. Study aids (flashcards, quiz questions, summaries) were generated automatically from the text; they may contain errors.

Frequently asked questions

Is the Machine Learning for Text study guide free?

Yes. StudyGrasp is always free: no paywall and no credit card. Students create a free account so that their progress is saved.

What textbook is the Machine Learning for Text study guide based on?

It is built from “Supervised Machine Learning for Text Analysis in R” by Emil Hvitfeldt and Julia Silge, an open textbook licensed under CC BY-NC-SA 4.0. StudyGrasp adapted it and is not affiliated with its authors or publisher.

How many practice questions does it have?

It has 10 practice questions and 136 flashcards across 16 topics. They are generated automatically from the textbook and marked Draft, so they can contain mistakes.

Can I use it offline or install it?

You can add StudyGrasp to your phone or computer. The app opens offline, and flashcards you have opened keep working without a connection. Offline copies are cleared when you sign out.

Study Machine Learning for Text free

Ask questions that cite the textbook, practise with flashcards and quizzes, and keep your own notes private. Study this course free

StudyGrasp is not affiliated with the textbook publishers named here. Browse all courses · FAQ