{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## sklearn and TextAttack\n", "\n", "This following code trains two different text classification models using sklearn. Both use logistic regression models: the difference is in the features. \n", "\n", "We will load data using `nlp`, train the models, and attack them using TextAttack." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
\n",
" Run in Google Colab\n",
" | \n",
" \n",
" View source on GitHub\n",
" | \n",
"