|
|
@ -171,7 +171,7 @@
|
|
|
|
" discard_categories: Set[str] = discard_categories,\n",
|
|
|
|
" discard_categories: Set[str] = discard_categories,\n",
|
|
|
|
") -> str:\n",
|
|
|
|
") -> str:\n",
|
|
|
|
" \"\"\"\n",
|
|
|
|
" \"\"\"\n",
|
|
|
|
" Extract the sections of a Wikipedia page, discarding the the references and other low information sections\n",
|
|
|
|
" Extract the sections of a Wikipedia page, discarding the references and other low information sections\n",
|
|
|
|
" \"\"\"\n",
|
|
|
|
" \"\"\"\n",
|
|
|
|
" if len(wiki_text) == 0:\n",
|
|
|
|
" if len(wiki_text) == 0:\n",
|
|
|
|
" return []\n",
|
|
|
|
" return []\n",
|
|
|
|