Skip to content

Commit

Permalink
fix: name split explicitly to avoid code execution
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFehse committed Jun 14, 2024
1 parent c93eada commit c1723eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/documentation/evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,8 @@
"metadata": {},
"outputs": [],
"source": [
"dataset = load_dataset(\"cardiffnlp/tweet_topic_multi\")\n",
"test_set_name = \"validation_random\"\n",
"all_data = list(dataset[test_set_name])\n",
"dataset = load_dataset(\"cardiffnlp/tweet_topic_multi\", split=\"validation_random\")\n",
"all_data = list(dataset)\n",
"data = all_data[:25] # this has 573 datapoints, let's take a look at 25 for now"
]
},
Expand Down

0 comments on commit c1723eb

Please sign in to comment.