9 "import os,sys,inspect\n",
10 "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n",
11 "parentdir = os.path.dirname(currentdir)\n",
12 "sys.path.insert(0,parentdir) \n",
14 "from support.utilities import *"
30 "output_type": "execute_result"
34 "many_words = set()\n",
36 "for file in os.listdir():\n",
37 " if file.endswith(\".txt\") or file.endswith('list'):\n",
38 " these_words = set(sanitise(w) for w in open(file))\n",
39 " many_words.update(these_words)\n",
50 "with open('combined.txt', 'w') as f:\n",
51 " for w in many_words:\n",
57 "execution_count": null,
65 "display_name": "Python 3",
74 "file_extension": ".py",
75 "mimetype": "text/x-python",
77 "nbconvert_exporter": "python",
78 "pygments_lexer": "ipython3",