{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "#!pip install pandas\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# Load the CSV file into a pandas DataFrame\n", "df = pd.read_csv(filepath_or_buffer=r'C:\\Users\\serban.tica\\Documents\\tobi_llm_intent_recognition\\data\\Pager_Intents.csv', \n", " usecols=[0, 1], names=['utterance', 'intent'])\n", "\n", "# Remove the special character \" from the 'utterance' column\n", "df['utterance'] = df['utterance'].str.replace('\"', '')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | utterance | \n", "intent | \n", "
---|---|---|
0 | \n", "utterance | \n", "intent | \n", "
1 | \n", "Pot sa i scriu specialistului de cont | \n", "account.Specialist | \n", "
2 | \n", "Contact specialist de cont | \n", "account.Specialist | \n", "
3 | \n", "Ce numar de telefon are specialistul de cont | \n", "account.Specialist | \n", "
4 | \n", "Ce numar de telefon are specialistul de cont | \n", "account.Specialist | \n", "