{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "954e9fd9",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "import nltk\n",
    "from nltk.corpus import stopwords\n",
    "stopwords= stopwords.words('english')\n",
    "stopwords.extend([',','`','?',\"'s\", \"''\", '``',\"n't\",\"(\", \")\", ';',\"'\",'re','!','--','-','*',\"'re\",':'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "5c9f32c2",
   "metadata": {},
   "outputs": [],
   "source": [
    "stopwords.extend([i.capitalize() for i in stopwords])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "18a56afa",
   "metadata": {},
   "outputs": [],
   "source": [
    "s1= pd.read_csv('data/unique synopsis.tsv', sep='\\t')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "f07f0c11",
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>In 1947, Andy Dufresne (Tim Robbins), a banker...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>The movie begins with a gang of men with clown...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>A young man, exhausted and delirious, washes u...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>We back out of the webbing of neurons and brai...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Late one morning in the Hawthorne Grill, a res...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                   0\n",
       "0  In 1947, Andy Dufresne (Tim Robbins), a banker...\n",
       "1  The movie begins with a gang of men with clown...\n",
       "2  A young man, exhausted and delirious, washes u...\n",
       "3  We back out of the webbing of neurons and brai...\n",
       "4  Late one morning in the Hawthorne Grill, a res..."
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "s1.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "a52e3b31",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "9643"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(s1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "74d6ffd7",
   "metadata": {},
   "outputs": [],
   "source": [
    "from nltk.tokenize import word_tokenize"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "50095664",
   "metadata": {},
   "outputs": [],
   "source": [
    "texts= s1.dropna(axis=0).values.reshape(-1,).astype('object')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "d1ea9fdd",
   "metadata": {},
   "outputs": [],
   "source": [
    "texts=' '.join(texts)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "10634606",
   "metadata": {},
   "outputs": [],
   "source": [
    "texts=' '.join(texts.split('.')).lower()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3c3adcaf",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "cd909ad7",
   "metadata": {},
   "outputs": [],
   "source": [
    "words= np.array(word_tokenize(texts))  ### chewck"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "661ed7bd",
   "metadata": {},
   "outputs": [],
   "source": [
    "words=np.array([w for w in words if not w in stopwords])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "2fe22ff2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "5641411"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(words)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "62986f26",
   "metadata": {},
   "outputs": [],
   "source": [
    "features=np.array(list(set(words)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "0373e926",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "128962"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(features)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c0f901b4",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "ddc5ac8d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([], dtype=int64)"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "np.where(words== 'in')[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "35406a83",
   "metadata": {},
   "outputs": [],
   "source": [
    "def count_f(array):\n",
    "    unique, counts = np.unique(array, return_counts=True)\n",
    "    if len(counts)>1:\n",
    "        counts= counts/len(counts)\n",
    "    else:\n",
    "        counts= counts/counts\n",
    "    array=dict(zip(unique, counts))\n",
    "    array={k: v for k, v in sorted(array.items(), key=lambda item: item[1], reverse=True)} #set to true\n",
    "    #print(array)\n",
    "    return array"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "d7a75ae7",
   "metadata": {},
   "outputs": [],
   "source": [
    "def next_previous(feature):\n",
    "    indexs= np.where(words== feature)[0]\n",
    "    \n",
    "    next_word= count_f(words[indexs+1])\n",
    "    previous_word= count_f(words[indexs-1])\n",
    "\n",
    "    return np.vstack((previous_word, next_word)).astype('object').T"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "38253854",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "977a0bc0",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3acfa8e6",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "7bdf69e7",
   "metadata": {},
   "outputs": [],
   "source": [
    "def word_cha(features):\n",
    "    final={}\n",
    "    for feature in features:\n",
    "        final[feature]= next_previous(feature)\n",
    "    return final"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "db74d8c2",
   "metadata": {},
   "outputs": [],
   "source": [
    "def find_most_probable(word,num=10):\n",
    "    try:\n",
    "        words=next_previous(word)\n",
    "        previous_words= np.array(list(words[0][0].keys())).astype('object')[:num]\n",
    "        next_words= np.array(list(words[0][1].keys())).astype('object')[:num]\n",
    "        previous_words_prob= np.array(list(words[0][0].values()))\n",
    "        prob_words=np.array([])\n",
    "        for i,previous_word in enumerate(previous_words):\n",
    "            #print(i, 'p',previous_word)\n",
    "            #c=previous_words_prob[i]\n",
    "            #print(f'c= {c}')\n",
    "            n=next_previous(previous_word)\n",
    "            #print(n)\n",
    "\n",
    "            next_words_child= np.array(list(n[0][1].keys())).astype('object')\n",
    "            prob_words= np.append(prob_words, next_words_child)\n",
    "\n",
    "            if i<len(next_words):\n",
    "                n=next_previous(next_words[i])\n",
    "                previous_words_child= np.array(list(n[0][0].keys())).astype('object')\n",
    "                prob_words= np.append(prob_words, previous_words_child)\n",
    "                #print(next_words_child)\n",
    "                #next_words_child_prob= np.array(list(next_previous(word)[0][1].values()))\n",
    "\n",
    "     \n",
    "        #del prob_words[word]\n",
    "        #a=count_f(words)\n",
    "        #for key, value in prob_words.items():\n",
    "        #    prob_words[key]= value/a[key]\n",
    "       # prob_words={k: v for k, v in sorted(prob_words.items(), key=lambda item: item[1], reverse=True)}\n",
    "    except:\n",
    "        pass\n",
    "    prob_words=count_f(prob_words)\n",
    "    #del prob_words[word]\n",
    "    return prob_words"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "735f09df",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "0253d5f9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'leaves': 0.000765579543714592,\n",
       " 'make': 0.000765579543714592,\n",
       " 'men': 0.000765579543714592,\n",
       " 'money': 0.000765579543714592,\n",
       " 'one': 0.000765579543714592,\n",
       " 'people': 0.000765579543714592,\n",
       " 'time': 0.000765579543714592,\n",
       " 'another': 0.0007273005665288624,\n",
       " 'asks': 0.0007273005665288624,\n",
       " 'back': 0.0007273005665288624,\n",
       " 'car': 0.0007273005665288624,\n",
       " 'cash': 0.0007273005665288624,\n",
       " 'day': 0.0007273005665288624,\n",
       " 'drugs': 0.0007273005665288624,\n",
       " 'even': 0.0007273005665288624,\n",
       " 'everything': 0.0007273005665288624,\n",
       " 'father': 0.0007273005665288624,\n",
       " 'fight': 0.0007273005665288624,\n",
       " 'first': 0.0007273005665288624,\n",
       " 'food': 0.0007273005665288624,\n",
       " 'girls': 0.0007273005665288624,\n",
       " 'go': 0.0007273005665288624,\n",
       " 'jack': 0.0007273005665288624,\n",
       " 'man': 0.0007273005665288624,\n",
       " 'needs': 0.0007273005665288624,\n",
       " 'right': 0.0007273005665288624,\n",
       " 'says': 0.0007273005665288624,\n",
       " 'tells': 0.0007273005665288624,\n",
       " 'things': 0.0007273005665288624,\n",
       " 'two': 0.0007273005665288624,\n",
       " 'andy': 0.0006890215893431327,\n",
       " 'bad': 0.0006890215893431327,\n",
       " 'blood': 0.0006890215893431327,\n",
       " 'charlie': 0.0006890215893431327,\n",
       " 'danny': 0.0006890215893431327,\n",
       " 'david': 0.0006890215893431327,\n",
       " 'dead': 0.0006890215893431327,\n",
       " 'everyone': 0.0006890215893431327,\n",
       " 'family': 0.0006890215893431327,\n",
       " 'frank': 0.0006890215893431327,\n",
       " 'free': 0.0006890215893431327,\n",
       " 'friends': 0.0006890215893431327,\n",
       " 'george': 0.0006890215893431327,\n",
       " 'gets': 0.0006890215893431327,\n",
       " 'girl': 0.0006890215893431327,\n",
       " 'goes': 0.0006890215893431327,\n",
       " 'good': 0.0006890215893431327,\n",
       " 'group': 0.0006890215893431327,\n",
       " 'head': 0.0006890215893431327,\n",
       " 'instead': 0.0006890215893431327,\n",
       " 'jim': 0.0006890215893431327,\n",
       " 'john': 0.0006890215893431327,\n",
       " 'kids': 0.0006890215893431327,\n",
       " 'like': 0.0006890215893431327,\n",
       " 'live': 0.0006890215893431327,\n",
       " 'long': 0.0006890215893431327,\n",
       " 'mother': 0.0006890215893431327,\n",
       " 'movie': 0.0006890215893431327,\n",
       " 'much': 0.0006890215893431327,\n",
       " 'next': 0.0006890215893431327,\n",
       " 'parents': 0.0006890215893431327,\n",
       " 'part': 0.0006890215893431327,\n",
       " 'room': 0.0006890215893431327,\n",
       " 'runs': 0.0006890215893431327,\n",
       " 'sarah': 0.0006890215893431327,\n",
       " 'show': 0.0006890215893431327,\n",
       " 'since': 0.0006890215893431327,\n",
       " 'something': 0.0006890215893431327,\n",
       " 'soon': 0.0006890215893431327,\n",
       " 'stop': 0.0006890215893431327,\n",
       " 'story': 0.0006890215893431327,\n",
       " 'takes': 0.0006890215893431327,\n",
       " 'three': 0.0006890215893431327,\n",
       " 'tony': 0.0006890215893431327,\n",
       " 'want': 0.0006890215893431327,\n",
       " 'water': 0.0006890215893431327,\n",
       " 'wife': 0.0006890215893431327,\n",
       " 'without': 0.0006890215893431327,\n",
       " 'alex': 0.0006507426121574032,\n",
       " 'anna': 0.0006507426121574032,\n",
       " 'away': 0.0006507426121574032,\n",
       " 'ben': 0.0006507426121574032,\n",
       " 'better': 0.0006507426121574032,\n",
       " 'board': 0.0006507426121574032,\n",
       " 'body': 0.0006507426121574032,\n",
       " 'boys': 0.0006507426121574032,\n",
       " 'business': 0.0006507426121574032,\n",
       " 'call': 0.0006507426121574032,\n",
       " 'check': 0.0006507426121574032,\n",
       " 'children': 0.0006507426121574032,\n",
       " 'claire': 0.0006507426121574032,\n",
       " 'come': 0.0006507426121574032,\n",
       " 'company': 0.0006507426121574032,\n",
       " 'could': 0.0006507426121574032,\n",
       " 'couple': 0.0006507426121574032,\n",
       " 'cut': 0.0006507426121574032,\n",
       " 'daughter': 0.0006507426121574032,\n",
       " 'film': 0.0006507426121574032,\n",
       " 'finally': 0.0006507426121574032,\n",
       " 'find': 0.0006507426121574032,\n",
       " 'fish': 0.0006507426121574032,\n",
       " 'get': 0.0006507426121574032,\n",
       " 'harry': 0.0006507426121574032,\n",
       " 'helen': 0.0006507426121574032,\n",
       " 'help': 0.0006507426121574032,\n",
       " 'henry': 0.0006507426121574032,\n",
       " 'house': 0.0006507426121574032,\n",
       " 'however': 0.0006507426121574032,\n",
       " 'information': 0.0006507426121574032,\n",
       " 'job': 0.0006507426121574032,\n",
       " 'joe': 0.0006507426121574032,\n",
       " 'johnny': 0.0006507426121574032,\n",
       " 'life': 0.0006507426121574032,\n",
       " 'looking': 0.0006507426121574032,\n",
       " 'love': 0.0006507426121574032,\n",
       " 'maggie': 0.0006507426121574032,\n",
       " 'mike': 0.0006507426121574032,\n",
       " 'night': 0.0006507426121574032,\n",
       " 'nothing': 0.0006507426121574032,\n",
       " 'order': 0.0006507426121574032,\n",
       " 'outside': 0.0006507426121574032,\n",
       " 'paul': 0.0006507426121574032,\n",
       " 'person': 0.0006507426121574032,\n",
       " 'peter': 0.0006507426121574032,\n",
       " 'place': 0.0006507426121574032,\n",
       " 'plan': 0.0006507426121574032,\n",
       " 'red': 0.0006507426121574032,\n",
       " 'sam': 0.0006507426121574032,\n",
       " 'school': 0.0006507426121574032,\n",
       " 'security': 0.0006507426121574032,\n",
       " 'see': 0.0006507426121574032,\n",
       " 'set': 0.0006507426121574032,\n",
       " 'son': 0.0006507426121574032,\n",
       " 'tom': 0.0006507426121574032,\n",
       " 'wants': 0.0006507426121574032,\n",
       " 'way': 0.0006507426121574032,\n",
       " 'white': 0.0006507426121574032,\n",
       " 'woman': 0.0006507426121574032,\n",
       " 'work': 0.0006507426121574032,\n",
       " 'would': 0.0006507426121574032,\n",
       " 'adam': 0.0006124636349716736,\n",
       " 'alice': 0.0006124636349716736,\n",
       " 'also': 0.0006124636349716736,\n",
       " 'answer': 0.0006124636349716736,\n",
       " 'anything': 0.0006124636349716736,\n",
       " 'apartment': 0.0006124636349716736,\n",
       " 'attempt': 0.0006124636349716736,\n",
       " 'baby': 0.0006124636349716736,\n",
       " 'big': 0.0006124636349716736,\n",
       " 'black': 0.0006124636349716736,\n",
       " 'boat': 0.0006124636349716736,\n",
       " 'bobby': 0.0006124636349716736,\n",
       " 'bond': 0.0006124636349716736,\n",
       " 'box': 0.0006124636349716736,\n",
       " 'boy': 0.0006124636349716736,\n",
       " 'brother': 0.0006124636349716736,\n",
       " 'bruce': 0.0006124636349716736,\n",
       " 'building': 0.0006124636349716736,\n",
       " 'change': 0.0006124636349716736,\n",
       " 'chris': 0.0006124636349716736,\n",
       " 'church': 0.0006124636349716736,\n",
       " 'control': 0.0006124636349716736,\n",
       " 'cover': 0.0006124636349716736,\n",
       " 'dad': 0.0006124636349716736,\n",
       " 'daniel': 0.0006124636349716736,\n",
       " 'deal': 0.0006124636349716736,\n",
       " 'death': 0.0006124636349716736,\n",
       " 'dinner': 0.0006124636349716736,\n",
       " 'drink': 0.0006124636349716736,\n",
       " 'drive': 0.0006124636349716736,\n",
       " 'far': 0.0006124636349716736,\n",
       " 'game': 0.0006124636349716736,\n",
       " 'give': 0.0006124636349716736,\n",
       " 'going': 0.0006124636349716736,\n",
       " 'gold': 0.0006124636349716736,\n",
       " 'ground': 0.0006124636349716736,\n",
       " 'hand': 0.0006124636349716736,\n",
       " 'hard': 0.0006124636349716736,\n",
       " 'heart': 0.0006124636349716736,\n",
       " 'home': 0.0006124636349716736,\n",
       " 'idea': 0.0006124636349716736,\n",
       " 'inside': 0.0006124636349716736,\n",
       " 'jacob': 0.0006124636349716736,\n",
       " 'jane': 0.0006124636349716736,\n",
       " 'jesse': 0.0006124636349716736,\n",
       " 'julie': 0.0006124636349716736,\n",
       " 'junior': 0.0006124636349716736,\n",
       " 'kate': 0.0006124636349716736,\n",
       " 'kevin': 0.0006124636349716736,\n",
       " 'killing': 0.0006124636349716736,\n",
       " 'last': 0.0006124636349716736,\n",
       " 'later': 0.0006124636349716736,\n",
       " 'laura': 0.0006124636349716736,\n",
       " 'leave': 0.0006124636349716736,\n",
       " 'leaving': 0.0006124636349716736,\n",
       " 'left': 0.0006124636349716736,\n",
       " 'look': 0.0006124636349716736,\n",
       " 'lot': 0.0006124636349716736,\n",
       " 'mark': 0.0006124636349716736,\n",
       " 'max': 0.0006124636349716736,\n",
       " 'michael': 0.0006124636349716736,\n",
       " 'never': 0.0006124636349716736,\n",
       " 'nick': 0.0006124636349716736,\n",
       " 'offer': 0.0006124636349716736,\n",
       " 'party': 0.0006124636349716736,\n",
       " 'pay': 0.0006124636349716736,\n",
       " 'police': 0.0006124636349716736,\n",
       " 'power': 0.0006124636349716736,\n",
       " 'real': 0.0006124636349716736,\n",
       " 'rest': 0.0006124636349716736,\n",
       " 'sees': 0.0006124636349716736,\n",
       " 'someone': 0.0006124636349716736,\n",
       " 'steve': 0.0006124636349716736,\n",
       " 'still': 0.0006124636349716736,\n",
       " 'talk': 0.0006124636349716736,\n",
       " 'team': 0.0006124636349716736,\n",
       " 'terry': 0.0006124636349716736,\n",
       " 'though': 0.0006124636349716736,\n",
       " 'town': 0.0006124636349716736,\n",
       " 'trouble': 0.0006124636349716736,\n",
       " 'try': 0.0006124636349716736,\n",
       " 'us': 0.0006124636349716736,\n",
       " 'use': 0.0006124636349716736,\n",
       " 'wedding': 0.0006124636349716736,\n",
       " 'well': 0.0006124636349716736,\n",
       " 'world': 0.0006124636349716736,\n",
       " 'wrong': 0.0006124636349716736,\n",
       " \"'ll\": 0.0005741846577859439,\n",
       " 'advice': 0.0005741846577859439,\n",
       " 'amy': 0.0005741846577859439,\n",
       " 'arthur': 0.0005741846577859439,\n",
       " 'attention': 0.0005741846577859439,\n",
       " 'bag': 0.0005741846577859439,\n",
       " 'beth': 0.0005741846577859439,\n",
       " 'billy': 0.0005741846577859439,\n",
       " 'bob': 0.0005741846577859439,\n",
       " 'break': 0.0005741846577859439,\n",
       " 'brian': 0.0005741846577859439,\n",
       " 'brothers': 0.0005741846577859439,\n",
       " 'bud': 0.0005741846577859439,\n",
       " 'bus': 0.0005741846577859439,\n",
       " 'ca': 0.0005741846577859439,\n",
       " 'calls': 0.0005741846577859439,\n",
       " 'card': 0.0005741846577859439,\n",
       " 'carl': 0.0005741846577859439,\n",
       " 'case': 0.0005741846577859439,\n",
       " 'cat': 0.0005741846577859439,\n",
       " 'catherine': 0.0005741846577859439,\n",
       " 'chance': 0.0005741846577859439,\n",
       " 'chase': 0.0005741846577859439,\n",
       " 'child': 0.0005741846577859439,\n",
       " 'city': 0.0005741846577859439,\n",
       " 'class': 0.0005741846577859439,\n",
       " 'clothes': 0.0005741846577859439,\n",
       " 'cold': 0.0005741846577859439,\n",
       " 'cops': 0.0005741846577859439,\n",
       " 'dance': 0.0005741846577859439,\n",
       " 'dave': 0.0005741846577859439,\n",
       " 'dean': 0.0005741846577859439,\n",
       " 'dog': 0.0005741846577859439,\n",
       " 'door': 0.0005741846577859439,\n",
       " 'driver': 0.0005741846577859439,\n",
       " 'eddie': 0.0005741846577859439,\n",
       " 'effort': 0.0005741846577859439,\n",
       " 'either': 0.0005741846577859439,\n",
       " 'emily': 0.0005741846577859439,\n",
       " 'enough': 0.0005741846577859439,\n",
       " 'escape': 0.0005741846577859439,\n",
       " 'eventually': 0.0005741846577859439,\n",
       " 'evidence': 0.0005741846577859439,\n",
       " 'finds': 0.0005741846577859439,\n",
       " 'form': 0.0005741846577859439,\n",
       " 'friend': 0.0005741846577859439,\n",
       " 'gang': 0.0005741846577859439,\n",
       " 'getting': 0.0005741846577859439,\n",
       " 'guard': 0.0005741846577859439,\n",
       " 'gun': 0.0005741846577859439,\n",
       " 'guy': 0.0005741846577859439,\n",
       " 'high': 0.0005741846577859439,\n",
       " 'hospital': 0.0005741846577859439,\n",
       " 'hotel': 0.0005741846577859439,\n",
       " 'husband': 0.0005741846577859439,\n",
       " 'jake': 0.0005741846577859439,\n",
       " 'karl': 0.0005741846577859439,\n",
       " 'keep': 0.0005741846577859439,\n",
       " 'kid': 0.0005741846577859439,\n",
       " 'killer': 0.0005741846577859439,\n",
       " 'know': 0.0005741846577859439,\n",
       " 'kyle': 0.0005741846577859439,\n",
       " 'light': 0.0005741846577859439,\n",
       " 'lisa': 0.0005741846577859439,\n",
       " 'little': 0.0005741846577859439,\n",
       " 'lives': 0.0005741846577859439,\n",
       " 'looks': 0.0005741846577859439,\n",
       " 'lou': 0.0005741846577859439,\n",
       " 'lucy': 0.0005741846577859439,\n",
       " 'marty': 0.0005741846577859439,\n",
       " 'mary': 0.0005741846577859439,\n",
       " 'matt': 0.0005741846577859439,\n",
       " 'meet': 0.0005741846577859439,\n",
       " 'message': 0.0005741846577859439,\n",
       " 'moment': 0.0005741846577859439,\n",
       " 'morning': 0.0005741846577859439,\n",
       " 'name': 0.0005741846577859439,\n",
       " 'need': 0.0005741846577859439,\n",
       " 'nina': 0.0005741846577859439,\n",
       " 'norman': 0.0005741846577859439,\n",
       " 'number': 0.0005741846577859439,\n",
       " 'others': 0.0005741846577859439,\n",
       " 'paper': 0.0005741846577859439,\n",
       " 'pete': 0.0005741846577859439,\n",
       " 'phone': 0.0005741846577859439,\n",
       " 'plans': 0.0005741846577859439,\n",
       " 'ray': 0.0005741846577859439,\n",
       " 'realizes': 0.0005741846577859439,\n",
       " 'really': 0.0005741846577859439,\n",
       " 'refuses': 0.0005741846577859439,\n",
       " 'relationship': 0.0005741846577859439,\n",
       " 'return': 0.0005741846577859439,\n",
       " 'rose': 0.0005741846577859439,\n",
       " 'sally': 0.0005741846577859439,\n",
       " 'sara': 0.0005741846577859439,\n",
       " 'say': 0.0005741846577859439,\n",
       " 'saying': 0.0005741846577859439,\n",
       " 'scene': 0.0005741846577859439,\n",
       " 'second': 0.0005741846577859439,\n",
       " 'sex': 0.0005741846577859439,\n",
       " 'shot': 0.0005741846577859439,\n",
       " 'sister': 0.0005741846577859439,\n",
       " 'soldiers': 0.0005741846577859439,\n",
       " 'start': 0.0005741846577859439,\n",
       " 'station': 0.0005741846577859439,\n",
       " 'stay': 0.0005741846577859439,\n",
       " 'store': 0.0005741846577859439,\n",
       " 'street': 0.0005741846577859439,\n",
       " 'take': 0.0005741846577859439,\n",
       " 'taking': 0.0005741846577859439,\n",
       " 'tell': 0.0005741846577859439,\n",
       " 'thought': 0.0005741846577859439,\n",
       " 'tries': 0.0005741846577859439,\n",
       " 'true': 0.0005741846577859439,\n",
       " 'voice': 0.0005741846577859439,\n",
       " 'watch': 0.0005741846577859439,\n",
       " 'weapons': 0.0005741846577859439,\n",
       " 'women': 0.0005741846577859439,\n",
       " 'years': 0.0005741846577859439,\n",
       " 'able': 0.0005359056806002144,\n",
       " 'agrees': 0.0005359056806002144,\n",
       " 'air': 0.0005359056806002144,\n",
       " 'airport': 0.0005359056806002144,\n",
       " 'alien': 0.0005359056806002144,\n",
       " 'aliens': 0.0005359056806002144,\n",
       " 'alive': 0.0005359056806002144,\n",
       " 'alone': 0.0005359056806002144,\n",
       " 'along': 0.0005359056806002144,\n",
       " 'anger': 0.0005359056806002144,\n",
       " 'annie': 0.0005359056806002144,\n",
       " 'answers': 0.0005359056806002144,\n",
       " 'anyone': 0.0005359056806002144,\n",
       " 'area': 0.0005359056806002144,\n",
       " 'army': 0.0005359056806002144,\n",
       " 'ask': 0.0005359056806002144,\n",
       " 'audience': 0.0005359056806002144,\n",
       " 'begins': 0.0005359056806002144,\n",
       " 'behind': 0.0005359056806002144,\n",
       " 'believes': 0.0005359056806002144,\n",
       " 'bella': 0.0005359056806002144,\n",
       " 'bill': 0.0005359056806002144,\n",
       " 'blade': 0.0005359056806002144,\n",
       " 'book': 0.0005359056806002144,\n",
       " 'books': 0.0005359056806002144,\n",
       " 'brain': 0.0005359056806002144,\n",
       " 'bring': 0.0005359056806002144,\n",
       " 'camera': 0.0005359056806002144,\n",
       " 'care': 0.0005359056806002144,\n",
       " 'casey': 0.0005359056806002144,\n",
       " 'cell': 0.0005359056806002144,\n",
       " 'charlotte': 0.0005359056806002144,\n",
       " 'choice': 0.0005359056806002144,\n",
       " 'clear': 0.0005359056806002144,\n",
       " 'creature': 0.0005359056806002144,\n",
       " 'credit': 0.0005359056806002144,\n",
       " 'crew': 0.0005359056806002144,\n",
       " 'crowd': 0.0005359056806002144,\n",
       " 'days': 0.0005359056806002144,\n",
       " 'decides': 0.0005359056806002144,\n",
       " 'dennis': 0.0005359056806002144,\n",
       " 'die': 0.0005359056806002144,\n",
       " 'different': 0.0005359056806002144,\n",
       " 'doctor': 0.0005359056806002144,\n",
       " 'dream': 0.0005359056806002144,\n",
       " 'earth': 0.0005359056806002144,\n",
       " 'eat': 0.0005359056806002144,\n",
       " 'emma': 0.0005359056806002144,\n",
       " 'end': 0.0005359056806002144,\n",
       " 'ethan': 0.0005359056806002144,\n",
       " 'fear': 0.0005359056806002144,\n",
       " 'fire': 0.0005359056806002144,\n",
       " 'frankie': 0.0005359056806002144,\n",
       " 'gift': 0.0005359056806002144,\n",
       " 'great': 0.0005359056806002144,\n",
       " 'guards': 0.0005359056806002144,\n",
       " 'guns': 0.0005359056806002144,\n",
       " 'guys': 0.0005359056806002144,\n",
       " 'hair': 0.0005359056806002144,\n",
       " 'hands': 0.0005359056806002144,\n",
       " 'heads': 0.0005359056806002144,\n",
       " 'hell': 0.0005359056806002144,\n",
       " 'hurt': 0.0005359056806002144,\n",
       " 'immediately': 0.0005359056806002144,\n",
       " 'james': 0.0005359056806002144,\n",
       " 'jason': 0.0005359056806002144,\n",
       " 'jeff': 0.0005359056806002144,\n",
       " 'jenny': 0.0005359056806002144,\n",
       " 'jerry': 0.0005359056806002144,\n",
       " 'jimmy': 0.0005359056806002144,\n",
       " 'joy': 0.0005359056806002144,\n",
       " 'karen': 0.0005359056806002144,\n",
       " 'key': 0.0005359056806002144,\n",
       " 'keys': 0.0005359056806002144,\n",
       " 'kill': 0.0005359056806002144,\n",
       " 'killed': 0.0005359056806002144,\n",
       " 'king': 0.0005359056806002144,\n",
       " 'knows': 0.0005359056806002144,\n",
       " 'land': 0.0005359056806002144,\n",
       " 'lee': 0.0005359056806002144,\n",
       " 'leo': 0.0005359056806002144,\n",
       " 'let': 0.0005359056806002144,\n",
       " 'logan': 0.0005359056806002144,\n",
       " 'london': 0.0005359056806002144,\n",
       " 'lost': 0.0005359056806002144,\n",
       " 'machine': 0.0005359056806002144,\n",
       " 'major': 0.0005359056806002144,\n",
       " 'married': 0.0005359056806002144,\n",
       " 'mask': 0.0005359056806002144,\n",
       " 'means': 0.0005359056806002144,\n",
       " 'meanwhile': 0.0005359056806002144,\n",
       " 'meeting': 0.0005359056806002144,\n",
       " 'megan': 0.0005359056806002144,\n",
       " 'mexico': 0.0005359056806002144,\n",
       " 'mia': 0.0005359056806002144,\n",
       " 'miles': 0.0005359056806002144,\n",
       " 'mind': 0.0005359056806002144,\n",
       " 'miss': 0.0005359056806002144,\n",
       " 'missing': 0.0005359056806002144,\n",
       " 'mom': 0.0005359056806002144,\n",
       " 'must': 0.0005359056806002144,\n",
       " 'nate': 0.0005359056806002144,\n",
       " 'nearby': 0.0005359056806002144,\n",
       " 'ned': 0.0005359056806002144,\n",
       " 'new': 0.0005359056806002144,\n",
       " 'news': 0.0005359056806002144,\n",
       " 'note': 0.0005359056806002144,\n",
       " 'office': 0.0005359056806002144,\n",
       " 'opens': 0.0005359056806002144,\n",
       " 'pain': 0.0005359056806002144,\n",
       " 'past': 0.0005359056806002144,\n",
       " 'pictures': 0.0005359056806002144,\n",
       " 'quickly': 0.0005359056806002144,\n",
       " 'radio': 0.0005359056806002144,\n",
       " 'raj': 0.0005359056806002144,\n",
       " 'rich': 0.0005359056806002144,\n",
       " 'ring': 0.0005359056806002144,\n",
       " 'ron': 0.0005359056806002144,\n",
       " 'run': 0.0005359056806002144,\n",
       " 'running': 0.0005359056806002144,\n",
       " 'safe': 0.0005359056806002144,\n",
       " 'santa': 0.0005359056806002144,\n",
       " 'sean': 0.0005359056806002144,\n",
       " 'secret': 0.0005359056806002144,\n",
       " 'ship': 0.0005359056806002144,\n",
       " 'short': 0.0005359056806002144,\n",
       " 'sign': 0.0005359056806002144,\n",
       " 'simon': 0.0005359056806002144,\n",
       " 'smith': 0.0005359056806002144,\n",
       " 'sonny': 0.0005359056806002144,\n",
       " 'sound': 0.0005359056806002144,\n",
       " 'space': 0.0005359056806002144,\n",
       " 'stand': 0.0005359056806002144,\n",
       " 'stone': 0.0005359056806002144,\n",
       " 'suddenly': 0.0005359056806002144,\n",
       " 'susan': 0.0005359056806002144,\n",
       " 'teddy': 0.0005359056806002144,\n",
       " 'test': 0.0005359056806002144,\n",
       " 'tickets': 0.0005359056806002144,\n",
       " 'tina': 0.0005359056806002144,\n",
       " 'told': 0.0005359056806002144,\n",
       " 'tommy': 0.0005359056806002144,\n",
       " 'top': 0.0005359056806002144,\n",
       " 'training': 0.0005359056806002144,\n",
       " 'travis': 0.0005359056806002144,\n",
       " 'truck': 0.0005359056806002144,\n",
       " 'turn': 0.0005359056806002144,\n",
       " 'turns': 0.0005359056806002144,\n",
       " 'upset': 0.0005359056806002144,\n",
       " 'used': 0.0005359056806002144,\n",
       " 'van': 0.0005359056806002144,\n",
       " 'victor': 0.0005359056806002144,\n",
       " 'village': 0.0005359056806002144,\n",
       " 'waiting': 0.0005359056806002144,\n",
       " 'walk': 0.0005359056806002144,\n",
       " 'walter': 0.0005359056806002144,\n",
       " 'war': 0.0005359056806002144,\n",
       " 'went': 0.0005359056806002144,\n",
       " 'wish': 0.0005359056806002144,\n",
       " 'woody': 0.0005359056806002144,\n",
       " 'word': 0.0005359056806002144,\n",
       " 'words': 0.0005359056806002144,\n",
       " 'working': 0.0005359056806002144,\n",
       " 'yet': 0.0005359056806002144,\n",
       " 'young': 0.0005359056806002144,\n",
       " \"'d\": 0.0004976267034144848,\n",
       " 'actually': 0.0004976267034144848,\n",
       " 'admits': 0.0004976267034144848,\n",
       " 'agent': 0.0004976267034144848,\n",
       " 'alan': 0.0004976267034144848,\n",
       " 'almost': 0.0004976267034144848,\n",
       " 'angela': 0.0004976267034144848,\n",
       " 'angry': 0.0004976267034144848,\n",
       " 'animals': 0.0004976267034144848,\n",
       " 'anne': 0.0004976267034144848,\n",
       " 'anymore': 0.0004976267034144848,\n",
       " 'asking': 0.0004976267034144848,\n",
       " 'attack': 0.0004976267034144848,\n",
       " 'ball': 0.0004976267034144848,\n",
       " 'bank': 0.0004976267034144848,\n",
       " 'bar': 0.0004976267034144848,\n",
       " 'bed': 0.0004976267034144848,\n",
       " 'best': 0.0004976267034144848,\n",
       " 'bit': 0.0004976267034144848,\n",
       " 'bomb': 0.0004976267034144848,\n",
       " 'broken': 0.0004976267034144848,\n",
       " 'buddy': 0.0004976267034144848,\n",
       " 'calling': 0.0004976267034144848,\n",
       " 'camp': 0.0004976267034144848,\n",
       " 'candy': 0.0004976267034144848,\n",
       " 'captain': 0.0004976267034144848,\n",
       " 'career': 0.0004976267034144848,\n",
       " 'carol': 0.0004976267034144848,\n",
       " 'caroline': 0.0004976267034144848,\n",
       " 'catch': 0.0004976267034144848,\n",
       " 'charles': 0.0004976267034144848,\n",
       " 'clay': 0.0004976267034144848,\n",
       " 'contact': 0.0004976267034144848,\n",
       " 'continues': 0.0004976267034144848,\n",
       " 'conversation': 0.0004976267034144848,\n",
       " 'cooper': 0.0004976267034144848,\n",
       " 'country': 0.0004976267034144848,\n",
       " 'crash': 0.0004976267034144848,\n",
       " 'cross': 0.0004976267034144848,\n",
       " 'date': 0.0004976267034144848,\n",
       " 'doc': 0.0004976267034144848,\n",
       " 'doll': 0.0004976267034144848,\n",
       " 'done': 0.0004976267034144848,\n",
       " 'dress': 0.0004976267034144848,\n",
       " 'elizabeth': 0.0004976267034144848,\n",
       " 'evelyn': 0.0004976267034144848,\n",
       " 'evening': 0.0004976267034144848,\n",
       " 'face': 0.0004976267034144848,\n",
       " 'fall': 0.0004976267034144848,\n",
       " 'field': 0.0004976267034144848,\n",
       " 'floor': 0.0004976267034144848,\n",
       " 'force': 0.0004976267034144848,\n",
       " 'francis': 0.0004976267034144848,\n",
       " 'fred': 0.0004976267034144848,\n",
       " 'fresh': 0.0004976267034144848,\n",
       " 'fun': 0.0004976267034144848,\n",
       " 'girlfriend': 0.0004976267034144848,\n",
       " 'gives': 0.0004976267034144848,\n",
       " 'god': 0.0004976267034144848,\n",
       " 'government': 0.0004976267034144848,\n",
       " 'grace': 0.0004976267034144848,\n",
       " 'hank': 0.0004976267034144848,\n",
       " 'happy': 0.0004976267034144848,\n",
       " 'history': 0.0004976267034144848,\n",
       " 'holmes': 0.0004976267034144848,\n",
       " 'horse': 0.0004976267034144848,\n",
       " 'hour': 0.0004976267034144848,\n",
       " 'important': 0.0004976267034144848,\n",
       " 'insists': 0.0004976267034144848,\n",
       " 'interview': 0.0004976267034144848,\n",
       " 'j': 0.0004976267034144848,\n",
       " 'jamie': 0.0004976267034144848,\n",
       " 'jay': 0.0004976267034144848,\n",
       " 'jennifer': 0.0004976267034144848,\n",
       " 'jess': 0.0004976267034144848,\n",
       " 'joey': 0.0004976267034144848,\n",
       " 'jones': 0.0004976267034144848,\n",
       " 'jordan': 0.0004976267034144848,\n",
       " 'julia': 0.0004976267034144848,\n",
       " 'kathy': 0.0004976267034144848,\n",
       " 'kay': 0.0004976267034144848,\n",
       " 'kelly': 0.0004976267034144848,\n",
       " 'lara': 0.0004976267034144848,\n",
       " 'larry': 0.0004976267034144848,\n",
       " 'late': 0.0004976267034144848,\n",
       " 'lead': 0.0004976267034144848,\n",
       " 'learn': 0.0004976267034144848,\n",
       " 'leonard': 0.0004976267034144848,\n",
       " 'lets': 0.0004976267034144848,\n",
       " 'linda': 0.0004976267034144848,\n",
       " 'line': 0.0004976267034144848,\n",
       " 'listen': 0.0004976267034144848,\n",
       " 'lucas': 0.0004976267034144848,\n",
       " 'luke': 0.0004976267034144848,\n",
       " 'lunch': 0.0004976267034144848,\n",
       " 'made': 0.0004976267034144848,\n",
       " 'makes': 0.0004976267034144848,\n",
       " 'many': 0.0004976267034144848,\n",
       " 'map': 0.0004976267034144848,\n",
       " 'maria': 0.0004976267034144848,\n",
       " 'marriage': 0.0004976267034144848,\n",
       " 'martin': 0.0004976267034144848,\n",
       " 'may': 0.0004976267034144848,\n",
       " 'mickey': 0.0004976267034144848,\n",
       " 'minutes': 0.0004976267034144848,\n",
       " 'mirror': 0.0004976267034144848,\n",
       " 'mitch': 0.0004976267034144848,\n",
       " 'motel': 0.0004976267034144848,\n",
       " 'move': 0.0004976267034144848,\n",
       " 'music': 0.0004976267034144848,\n",
       " 'notice': 0.0004976267034144848,\n",
       " 'old': 0.0004976267034144848,\n",
       " 'orders': 0.0004976267034144848,\n",
       " 'penny': 0.0004976267034144848,\n",
       " 'pills': 0.0004976267034144848,\n",
       " 'planet': 0.0004976267034144848,\n",
       " 'play': 0.0004976267034144848,\n",
       " 'point': 0.0004976267034144848,\n",
       " 'present': 0.0004976267034144848,\n",
       " 'president': 0.0004976267034144848,\n",
       " 'priest': 0.0004976267034144848,\n",
       " 'prisoners': 0.0004976267034144848,\n",
       " 'private': 0.0004976267034144848,\n",
       " 'promises': 0.0004976267034144848,\n",
       " 'public': 0.0004976267034144848,\n",
       " 'put': 0.0004976267034144848,\n",
       " 'questions': 0.0004976267034144848,\n",
       " 'race': 0.0004976267034144848,\n",
       " 'rachel': 0.0004976267034144848,\n",
       " 'reason': 0.0004976267034144848,\n",
       " 'report': 0.0004976267034144848,\n",
       " 'restaurant': 0.0004976267034144848,\n",
       " 'revenge': 0.0004976267034144848,\n",
       " 'rock': 0.0004976267034144848,\n",
       " 'rope': 0.0004976267034144848,\n",
       " 'roy': 0.0004976267034144848,\n",
       " 'ryan': 0.0004976267034144848,\n",
       " 'safety': 0.0004976267034144848,\n",
       " 'scott': 0.0004976267034144848,\n",
       " 'search': 0.0004976267034144848,\n",
       " 'shane': 0.0004976267034144848,\n",
       " 'shows': 0.0004976267034144848,\n",
       " 'side': 0.0004976267034144848,\n",
       " 'situation': 0.0004976267034144848,\n",
       " 'sleep': 0.0004976267034144848,\n",
       " 'sleeping': 0.0004976267034144848,\n",
       " 'smile': 0.0004976267034144848,\n",
       " 'snow': 0.0004976267034144848,\n",
       " 'song': 0.0004976267034144848,\n",
       " 'sophie': 0.0004976267034144848,\n",
       " 'special': 0.0004976267034144848,\n",
       " 'spot': 0.0004976267034144848,\n",
       " 'staff': 0.0004976267034144848,\n",
       " 'stanley': 0.0004976267034144848,\n",
       " 'starts': 0.0004976267034144848,\n",
       " 'stolen': 0.0004976267034144848,\n",
       " 'stops': 0.0004976267034144848,\n",
       " 'sure': 0.0004976267034144848,\n",
       " 'surprise': 0.0004976267034144848,\n",
       " 'system': 0.0004976267034144848,\n",
       " 'tape': 0.0004976267034144848,\n",
       " 'taylor': 0.0004976267034144848,\n",
       " 'thing': 0.0004976267034144848,\n",
       " 'think': 0.0004976267034144848,\n",
       " 'toby': 0.0004976267034144848,\n",
       " 'together': 0.0004976267034144848,\n",
       " 'tracy': 0.0004976267034144848,\n",
       " 'train': 0.0004976267034144848,\n",
       " 'trio': 0.0004976267034144848,\n",
       " 'tv': 0.0004976267034144848,\n",
       " 'uncle': 0.0004976267034144848,\n",
       " 'using': 0.0004976267034144848,\n",
       " 'vincent': 0.0004976267034144848,\n",
       " 'walking': 0.0004976267034144848,\n",
       " 'walks': 0.0004976267034144848,\n",
       " 'wall': 0.0004976267034144848,\n",
       " 'weekend': 0.0004976267034144848,\n",
       " 'worse': 0.0004976267034144848,\n",
       " 'younger': 0.0004976267034144848,\n",
       " '2': 0.00045934772622875517,\n",
       " 'ace': 0.00045934772622875517,\n",
       " 'action': 0.00045934772622875517,\n",
       " 'address': 0.00045934772622875517,\n",
       " 'al': 0.00045934772622875517,\n",
       " 'alarm': 0.00045934772622875517,\n",
       " 'albert': 0.00045934772622875517,\n",
       " 'alfred': 0.00045934772622875517,\n",
       " 'america': 0.00045934772622875517,\n",
       " 'angel': 0.00045934772622875517,\n",
       " 'anyway': 0.00045934772622875517,\n",
       " 'arm': 0.00045934772622875517,\n",
       " 'arrive': 0.00045934772622875517,\n",
       " 'arrives': 0.00045934772622875517,\n",
       " 'assistant': 0.00045934772622875517,\n",
       " 'barbara': 0.00045934772622875517,\n",
       " 'barry': 0.00045934772622875517,\n",
       " 'base': 0.00045934772622875517,\n",
       " 'beach': 0.00045934772622875517,\n",
       " 'bedroom': 0.00045934772622875517,\n",
       " 'beer': 0.00045934772622875517,\n",
       " 'believe': 0.00045934772622875517,\n",
       " 'bet': 0.00045934772622875517,\n",
       " 'bike': 0.00045934772622875517,\n",
       " 'birthday': 0.00045934772622875517,\n",
       " 'boss': 0.00045934772622875517,\n",
       " 'bottle': 0.00045934772622875517,\n",
       " 'buzz': 0.00045934772622875517,\n",
       " 'campbell': 0.00045934772622875517,\n",
       " 'cards': 0.00045934772622875517,\n",
       " 'carla': 0.00045934772622875517,\n",
       " 'carrie': 0.00045934772622875517,\n",
       " 'cars': 0.00045934772622875517,\n",
       " 'chair': 0.00045934772622875517,\n",
       " 'character': 0.00045934772622875517,\n",
       " 'chicago': 0.00045934772622875517,\n",
       " 'chief': 0.00045934772622875517,\n",
       " 'christine': 0.00045934772622875517,\n",
       " 'cindy': 0.00045934772622875517,\n",
       " 'club': 0.00045934772622875517,\n",
       " 'cocaine': 0.00045934772622875517,\n",
       " 'comes': 0.00045934772622875517,\n",
       " 'coming': 0.00045934772622875517,\n",
       " 'computer': 0.00045934772622875517,\n",
       " 'courage': 0.00045934772622875517,\n",
       " 'court': 0.00045934772622875517,\n",
       " 'customers': 0.00045934772622875517,\n",
       " 'dale': 0.00045934772622875517,\n",
       " 'damage': 0.00045934772622875517,\n",
       " 'dan': 0.00045934772622875517,\n",
       " 'dangerous': 0.00045934772622875517,\n",
       " 'dark': 0.00045934772622875517,\n",
       " 'debbie': 0.00045934772622875517,\n",
       " 'demands': 0.00045934772622875517,\n",
       " 'details': 0.00045934772622875517,\n",
       " 'diamonds': 0.00045934772622875517,\n",
       " 'dies': 0.00045934772622875517,\n",
       " 'distance': 0.00045934772622875517,\n",
       " 'documents': 0.00045934772622875517,\n",
       " 'dogs': 0.00045934772622875517,\n",
       " 'dorothy': 0.00045934772622875517,\n",
       " 'doug': 0.00045934772622875517,\n",
       " 'dreams': 0.00045934772622875517,\n",
       " 'driving': 0.00045934772622875517,\n",
       " 'drops': 0.00045934772622875517,\n",
       " 'drug': 0.00045934772622875517,\n",
       " 'drunk': 0.00045934772622875517,\n",
       " 'due': 0.00045934772622875517,\n",
       " 'duke': 0.00045934772622875517,\n",
       " 'edward': 0.00045934772622875517,\n",
       " 'elena': 0.00045934772622875517,\n",
       " 'eric': 0.00045934772622875517,\n",
       " 'eve': 0.00045934772622875517,\n",
       " 'everybody': 0.00045934772622875517,\n",
       " 'experience': 0.00045934772622875517,\n",
       " 'eye': 0.00045934772622875517,\n",
       " 'eyes': 0.00045934772622875517,\n",
       " 'fake': 0.00045934772622875517,\n",
       " 'falls': 0.00045934772622875517,\n",
       " 'fast': 0.00045934772622875517,\n",
       " 'fights': 0.00045934772622875517,\n",
       " 'five': 0.00045934772622875517,\n",
       " 'following': 0.00045934772622875517,\n",
       " 'follows': 0.00045934772622875517,\n",
       " 'foot': 0.00045934772622875517,\n",
       " 'found': 0.00045934772622875517,\n",
       " 'four': 0.00045934772622875517,\n",
       " 'fox': 0.00045934772622875517,\n",
       " 'front': 0.00045934772622875517,\n",
       " 'furious': 0.00045934772622875517,\n",
       " 'future': 0.00045934772622875517,\n",
       " 'garage': 0.00045934772622875517,\n",
       " 'general': 0.00045934772622875517,\n",
       " 'ghost': 0.00045934772622875517,\n",
       " 'grant': 0.00045934772622875517,\n",
       " 'gus': 0.00045934772622875517,\n",
       " 'half': 0.00045934772622875517,\n",
       " 'hall': 0.00045934772622875517,\n",
       " 'harold': 0.00045934772622875517,\n",
       " 'heard': 0.00045934772622875517,\n",
       " 'hit': 0.00045934772622875517,\n",
       " 'hold': 0.00045934772622875517,\n",
       " 'howard': 0.00045934772622875517,\n",
       " 'human': 0.00045934772622875517,\n",
       " 'identity': 0.00045934772622875517,\n",
       " 'ill': 0.00045934772622875517,\n",
       " 'island': 0.00045934772622875517,\n",
       " 'ivan': 0.00045934772622875517,\n",
       " 'jail': 0.00045934772622875517,\n",
       " 'joke': 0.00045934772622875517,\n",
       " 'jonathan': 0.00045934772622875517,\n",
       " 'josh': 0.00045934772622875517,\n",
       " 'journey': 0.00045934772622875517,\n",
       " 'jules': 0.00045934772622875517,\n",
       " 'jumps': 0.00045934772622875517,\n",
       " 'katherine': 0.00045934772622875517,\n",
       " 'kim': 0.00045934772622875517,\n",
       " 'kirk': 0.00045934772622875517,\n",
       " 'kiss': 0.00045934772622875517,\n",
       " 'kit': 0.00045934772622875517,\n",
       " 'kitchen': 0.00045934772622875517,\n",
       " 'law': 0.00045934772622875517,\n",
       " 'less': 0.00045934772622875517,\n",
       " 'lightning': 0.00045934772622875517,\n",
       " 'likely': 0.00045934772622875517,\n",
       " 'lily': 0.00045934772622875517,\n",
       " 'list': 0.00045934772622875517,\n",
       " 'living': 0.00045934772622875517,\n",
       " 'lizzie': 0.00045934772622875517,\n",
       " 'local': 0.00045934772622875517,\n",
       " 'longer': 0.00045934772622875517,\n",
       " 'lori': 0.00045934772622875517,\n",
       " 'making': 0.00045934772622875517,\n",
       " 'malcolm': 0.00045934772622875517,\n",
       " 'marcus': 0.00045934772622875517,\n",
       " 'martha': 0.00045934772622875517,\n",
       " 'mason': 0.00045934772622875517,\n",
       " 'match': 0.00045934772622875517,\n",
       " 'matter': 0.00045934772622875517,\n",
       " 'maybe': 0.00045934772622875517,\n",
       " 'medicine': 0.00045934772622875517,\n",
       " 'mission': 0.00045934772622875517,\n",
       " 'molly': 0.00045934772622875517,\n",
       " 'moses': 0.00045934772622875517,\n",
       " 'moves': 0.00045934772622875517,\n",
       " 'murder': 0.00045934772622875517,\n",
       " 'nancy': 0.00045934772622875517,\n",
       " 'nathan': 0.00045934772622875517,\n",
       " 'nose': 0.00045934772622875517,\n",
       " 'offering': 0.00045934772622875517,\n",
       " 'offers': 0.00045934772622875517,\n",
       " 'officers': 0.00045934772622875517,\n",
       " 'oliver': 0.00045934772622875517,\n",
       " 'open': 0.00045934772622875517,\n",
       " 'paid': 0.00045934772622875517,\n",
       " 'painting': 0.00045934772622875517,\n",
       " 'partner': 0.00045934772622875517,\n",
       " 'patients': 0.00045934772622875517,\n",
       " 'peace': 0.00045934772622875517,\n",
       " 'performance': 0.00045934772622875517,\n",
       " 'photos': 0.00045934772622875517,\n",
       " 'piece': 0.00045934772622875517,\n",
       " 'pilot': 0.00045934772622875517,\n",
       " 'pistol': 0.00045934772622875517,\n",
       " 'plane': 0.00045934772622875517,\n",
       " 'press': 0.00045934772622875517,\n",
       " 'price': 0.00045934772622875517,\n",
       " 'product': 0.00045934772622875517,\n",
       " 'protect': 0.00045934772622875517,\n",
       " 'pulls': 0.00045934772622875517,\n",
       " 'queen': 0.00045934772622875517,\n",
       " 'realize': 0.00045934772622875517,\n",
       " 'rebecca': 0.00045934772622875517,\n",
       " 'record': 0.00045934772622875517,\n",
       " 'records': 0.00045934772622875517,\n",
       " 'remember': 0.00045934772622875517,\n",
       " 'request': 0.00045934772622875517,\n",
       " 'respect': 0.00045934772622875517,\n",
       " 'richard': 0.00045934772622875517,\n",
       " 'ride': 0.00045934772622875517,\n",
       " 'road': 0.00045934772622875517,\n",
       " 'robin': 0.00045934772622875517,\n",
       " 'rocky': 0.00045934772622875517,\n",
       " 'role': 0.00045934772622875517,\n",
       " 'roof': 0.00045934772622875517,\n",
       " 'ruth': 0.00045934772622875517,\n",
       " 'said': 0.00045934772622875517,\n",
       " 'samantha': 0.00045934772622875517,\n",
       " 'sandy': 0.00045934772622875517,\n",
       " 'seems': 0.00045934772622875517,\n",
       " 'serious': 0.00045934772622875517,\n",
       " 'shelter': 0.00045934772622875517,\n",
       " 'shit': 0.00045934772622875517,\n",
       " 'shoes': 0.00045934772622875517,\n",
       " 'shoot': 0.00045934772622875517,\n",
       " 'shooting': 0.00045934772622875517,\n",
       " 'shotgun': 0.00045934772622875517,\n",
       " 'shut': 0.00045934772622875517,\n",
       " 'small': 0.00045934772622875517,\n",
       " 'snake': 0.00045934772622875517,\n",
       " 'spare': 0.00045934772622875517,\n",
       " 'speech': 0.00045934772622875517,\n",
       " 'spirit': 0.00045934772622875517,\n",
       " 'stage': 0.00045934772622875517,\n",
       " 'star': 0.00045934772622875517,\n",
       " 'state': 0.00045934772622875517,\n",
       " 'storm': 0.00045934772622875517,\n",
       " 'strange': 0.00045934772622875517,\n",
       " 'students': 0.00045934772622875517,\n",
       " 'stuff': 0.00045934772622875517,\n",
       " 'suggestion': 0.00045934772622875517,\n",
       " 'suit': 0.00045934772622875517,\n",
       " 'supplies': 0.00045934772622875517,\n",
       " 'support': 0.00045934772622875517,\n",
       " 'taken': 0.00045934772622875517,\n",
       " 'ted': 0.00045934772622875517,\n",
       " 'telling': 0.00045934772622875517,\n",
       " 'thomas': 0.00045934772622875517,\n",
       " 'ticket': 0.00045934772622875517,\n",
       " 'tim': 0.00045934772622875517,\n",
       " 'times': 0.00045934772622875517,\n",
       " 'todd': 0.00045934772622875517,\n",
       " 'tree': 0.00045934772622875517,\n",
       " 'trip': 0.00045934772622875517,\n",
       " 'troy': 0.00045934772622875517,\n",
       " 'truth': 0.00045934772622875517,\n",
       " 'vampire': 0.00045934772622875517,\n",
       " 'visit': 0.00045934772622875517,\n",
       " 'wake': 0.00045934772622875517,\n",
       " 'watson': 0.00045934772622875517,\n",
       " 'ways': 0.00045934772622875517,\n",
       " 'week': 0.00045934772622875517,\n",
       " 'weeks': 0.00045934772622875517,\n",
       " 'william': 0.00045934772622875517,\n",
       " 'wilson': 0.00045934772622875517,\n",
       " 'wolf': 0.00045934772622875517,\n",
       " 'woods': 0.00045934772622875517,\n",
       " '1': 0.00042106874904302555,\n",
       " 'aaron': 0.00042106874904302555,\n",
       " 'abby': 0.00042106874904302555,\n",
       " 'advantage': 0.00042106874904302555,\n",
       " 'afraid': 0.00042106874904302555,\n",
       " 'agree': 0.00042106874904302555,\n",
       " 'alcohol': 0.00042106874904302555,\n",
       " 'allison': 0.00042106874904302555,\n",
       " 'although': 0.00042106874904302555,\n",
       " 'always': 0.00042106874904302555,\n",
       " 'ambulance': 0.00042106874904302555,\n",
       " 'ann': 0.00042106874904302555,\n",
       " 'anthony': 0.00042106874904302555,\n",
       " 'archer': 0.00042106874904302555,\n",
       " 'arms': 0.00042106874904302555,\n",
       " 'around': 0.00042106874904302555,\n",
       " 'arrested': 0.00042106874904302555,\n",
       " 'assignment': 0.00042106874904302555,\n",
       " 'attacked': 0.00042106874904302555,\n",
       " 'attempts': 0.00042106874904302555,\n",
       " 'band': 0.00042106874904302555,\n",
       " 'basement': 0.00042106874904302555,\n",
       " 'bath': 0.00042106874904302555,\n",
       " 'bathroom': 0.00042106874904302555,\n",
       " 'batman': 0.00042106874904302555,\n",
       " 'bear': 0.00042106874904302555,\n",
       " 'begin': 0.00042106874904302555,\n",
       " 'bishop': 0.00042106874904302555,\n",
       " 'bodies': 0.00042106874904302555,\n",
       " 'booth': 0.00042106874904302555,\n",
       " 'boyfriend': 0.00042106874904302555,\n",
       " 'bracelet': 0.00042106874904302555,\n",
       " 'brad': 0.00042106874904302555,\n",
       " 'breakfast': 0.00042106874904302555,\n",
       " 'brenda': 0.00042106874904302555,\n",
       " 'bullet': 0.00042106874904302555,\n",
       " 'buy': 0.00042106874904302555,\n",
       " 'cab': 0.00042106874904302555,\n",
       " 'cake': 0.00042106874904302555,\n",
       " 'carter': 0.00042106874904302555,\n",
       " 'castle': 0.00042106874904302555,\n",
       " 'charge': 0.00042106874904302555,\n",
       " 'charges': 0.00042106874904302555,\n",
       " 'chest': 0.00042106874904302555,\n",
       " 'chip': 0.00042106874904302555,\n",
       " 'chloe': 0.00042106874904302555,\n",
       " 'christian': 0.00042106874904302555,\n",
       " 'christopher': 0.00042106874904302555,\n",
       " 'claim': 0.00042106874904302555,\n",
       " 'claims': 0.00042106874904302555,\n",
       " 'classes': 0.00042106874904302555,\n",
       " 'clean': 0.00042106874904302555,\n",
       " 'cliff': 0.00042106874904302555,\n",
       " 'close': 0.00042106874904302555,\n",
       " 'coat': 0.00042106874904302555,\n",
       " 'coffee': 0.00042106874904302555,\n",
       " 'coin': 0.00042106874904302555,\n",
       " 'college': 0.00042106874904302555,\n",
       " 'complete': 0.00042106874904302555,\n",
       " 'continue': 0.00042106874904302555,\n",
       " 'convince': 0.00042106874904302555,\n",
       " 'cop': 0.00042106874904302555,\n",
       " 'danger': 0.00042106874904302555,\n",
       " 'darkness': 0.00042106874904302555,\n",
       " 'decided': 0.00042106874904302555,\n",
       " 'decision': 0.00042106874904302555,\n",
       " 'derek': 0.00042106874904302555,\n",
       " 'detective': 0.00042106874904302555,\n",
       " 'discovers': 0.00042106874904302555,\n",
       " 'donna': 0.00042106874904302555,\n",
       " 'donnie': 0.00042106874904302555,\n",
       " 'downstairs': 0.00042106874904302555,\n",
       " 'dracula': 0.00042106874904302555,\n",
       " ...}"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "find_most_probable('money')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "898438a3",
   "metadata": {},
   "outputs": [],
   "source": [
    "14/20"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b82f46fe",
   "metadata": {},
   "outputs": [],
   "source": [
    "a=count_f(words)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ce8ff4e2",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
