{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Data Analytics for the Corpus\n", "\n", "## Author: Amittai Siavava" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Load the CSV metadata" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from datasets import load_dataset\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "from collections import Counter\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "15d5e7a1a1f44517adab6907cd675b92", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Downloading readme: 0%| | 0.00/1.87k [00:00, ?B/s]" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
\n", " | id | \n", "year | \n", "title | \n", "url | \n", "text | \n", "
---|---|---|---|---|---|
0 | \n", "0 | \n", "2023 | \n", "\"MIT Technology Review\" | \n", "\"https://www.technologyreview.com\" | \n", "\"Featured Topics Newsletters Events Podcasts F... | \n", "
1 | \n", "1 | \n", "2023 | \n", "\"WIRED - The Latest in Technology, Science, Cu... | \n", "\"https://www.wired.com\" | \n", "\"Open Navigation Menu To revisit this article,... | \n", "
2 | \n", "2 | \n", "2019 | \n", "\"The Verge\" | \n", "\"https://www.theverge.com\" | \n", "\"The Verge homepage The Verge The Verge logo.\\... | \n", "
3 | \n", "3 | \n", "2023 | \n", "\"TechCrunch | Startup and Technology News\" | \n", "\"https://www.techcrunch.com\" | \n", "\"WeWork reportedly on the verge of filing for ... | \n", "
4 | \n", "4 | \n", "2022 | \n", "\"A new vision of artificial intelligence for t... | \n", "\"https://www.technologyreview.com/2022/04/22/1... | \n", "\"Featured Topics Newsletters Events Podcasts A... | \n", "