{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Detecting Issues in a Text Dataset with Datalab\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this 5-minute quickstart tutorial, we use Datalab to detect various issues in an intent classification dataset composed of (text) customer service requests at an online bank. We consider a subset of the [Banking77-OOS Dataset](https://arxiv.org/abs/2106.04564) containing 1,000 customer service requests which are classified into 10 categories based on their intent (you can run this same code on any text classification dataset). Cleanlab automatically identifies bad examples in our dataset, including mislabeled data, out-of-scope examples (outliers), or otherwise ambiguous examples. Consider filtering or correcting such bad examples\u00a0before you dive deep into modeling your data!\n", "\n", "**Overview of what we'll do in this tutorial:**\n", "\n", "- Use a pretrained transformer model to extract the text embeddings from the customer service requests\n", "\n", "- Train a simple Logistic Regression model on the text embeddings to compute out-of-sample predicted probabilities\n", "\n", "- Run cleanlab's `Datalab` audit with these predictions and embeddings in order to identify problems like: label issues, outliers, and near duplicates in the dataset." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "