Created
January 31, 2018 08:05
-
-
Save uchidama/463fd59487eca2667d2b71df91b37c2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { | |
| "name": "stderr", | |
| "output_type": "stream", | |
| "text": [ | |
| "Using TensorFlow backend.\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "from keras.datasets import imdb\n", | |
| "import pandas as pd\n" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 2, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "Loading data...\n", | |
| "25000 train sequences\n", | |
| "25000 test sequences\n", | |
| "x_train shape: (25000,)\n", | |
| "y_train shape: (25000,)\n", | |
| "x_test shape: (25000,)\n", | |
| "y_test shape: (25000,)\n", | |
| "x_train[0]: [1, 14, 22, 16, 43, 530, 973, 1622, 1385, 65, 458, 4468, 66, 3941, 4, 173, 36, 256, 5, 25, 100, 43, 838, 112, 50, 670, 2, 9, 35, 480, 284, 5, 150, 4, 172, 112, 167, 2, 336, 385, 39, 4, 172, 4536, 1111, 17, 546, 38, 13, 447, 4, 192, 50, 16, 6, 147, 2025, 19, 14, 22, 4, 1920, 4613, 469, 4, 22, 71, 87, 12, 16, 43, 530, 38, 76, 15, 13, 1247, 4, 22, 17, 515, 17, 12, 16, 626, 18, 2, 5, 62, 386, 12, 8, 316, 8, 106, 5, 4, 2223, 2, 16, 480, 66, 3785, 33, 4, 130, 12, 16, 38, 619, 5, 25, 124, 51, 36, 135, 48, 25, 1415, 33, 6, 22, 12, 215, 28, 77, 52, 5, 14, 407, 16, 82, 2, 8, 4, 107, 117, 2, 15, 256, 4, 2, 7, 3766, 5, 723, 36, 71, 43, 530, 476, 26, 400, 317, 46, 7, 4, 2, 1029, 13, 104, 88, 4, 381, 15, 297, 98, 32, 2071, 56, 26, 141, 6, 194, 2, 18, 4, 226, 22, 21, 134, 476, 26, 480, 5, 144, 30, 2, 18, 51, 36, 28, 224, 92, 25, 104, 4, 226, 65, 16, 38, 1334, 88, 12, 16, 283, 5, 16, 4472, 113, 103, 32, 15, 16, 2, 19, 178, 32]\n", | |
| "y_train[0:8]: [1 0 0 1 0 0 1 0]\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "NUM_WORDS = 5000 # only use top 5000 words\n", | |
| "#NUM_WORDS=1000 # only use top 1000 words\n", | |
| "#NUM_WORDS=100 # only use top 100 words\n", | |
| "INDEX_FROM=3 # word index offset\n", | |
| "\n", | |
| "print('Loading data...')\n", | |
| "(x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=NUM_WORDS, index_from=INDEX_FROM)\n", | |
| "print(len(x_train), 'train sequences')\n", | |
| "print(len(x_test), 'test sequences')\n", | |
| "print('x_train shape:', x_train.shape)\n", | |
| "print('y_train shape:', y_train.shape)\n", | |
| "print('x_test shape:', x_test.shape)\n", | |
| "print('y_test shape:', y_test.shape)\n", | |
| "\n", | |
| "print('x_train[0]:', x_train[0])\n", | |
| "print('y_train[0:8]:', y_train[0:8])\n" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 3, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [], | |
| "source": [ | |
| "# Make Word to ID dictionary\n", | |
| "word_to_id = imdb.get_word_index()\n", | |
| "word_to_id = {k:(v+INDEX_FROM) for k,v in word_to_id.items()}\n", | |
| "word_to_id[\"[PAD]\"] = 0\n", | |
| "word_to_id[\"[π]\"] = 1 # START\n", | |
| "word_to_id[\"[β]\"] = 2 # UNKNOWN\n", | |
| "\n", | |
| "# Make ID to Word dictionary\n", | |
| "id_to_word = {value:key for key,value in word_to_id.items()}" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 4, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<div>\n", | |
| "<table border=\"1\" class=\"dataframe\">\n", | |
| " <thead>\n", | |
| " <tr style=\"text-align: right;\">\n", | |
| " <th></th>\n", | |
| " <th>index</th>\n", | |
| " <th>x_train original_text</th>\n", | |
| " <th>y_train</th>\n", | |
| " </tr>\n", | |
| " </thead>\n", | |
| " <tbody>\n", | |
| " <tr>\n", | |
| " <th>0</th>\n", | |
| " <td>0</td>\n", | |
| " <td>[π] this film was just brilliant casting locat...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>1</th>\n", | |
| " <td>1</td>\n", | |
| " <td>[π] big hair big [β] bad music and a giant saf...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>2</th>\n", | |
| " <td>2</td>\n", | |
| " <td>[π] this has to be one of the worst films of t...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>3</th>\n", | |
| " <td>3</td>\n", | |
| " <td>[π] the [β] [β] at storytelling the traditiona...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>4</th>\n", | |
| " <td>4</td>\n", | |
| " <td>[π] worst mistake of my life br br i picked th...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>5</th>\n", | |
| " <td>5</td>\n", | |
| " <td>[π] begins better than it ends funny that the ...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>6</th>\n", | |
| " <td>6</td>\n", | |
| " <td>[π] [β] production values and solid performanc...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>7</th>\n", | |
| " <td>7</td>\n", | |
| " <td>[π] the [β] tells the story of the four hamilt...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>8</th>\n", | |
| " <td>8</td>\n", | |
| " <td>[π] just got out and cannot believe what a bri...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>9</th>\n", | |
| " <td>9</td>\n", | |
| " <td>[π] this movie has many problem associated wit...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>10</th>\n", | |
| " <td>10</td>\n", | |
| " <td>[π] french horror cinema has seen something of...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>11</th>\n", | |
| " <td>11</td>\n", | |
| " <td>[π] when i rented this movie i had very low ex...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>12</th>\n", | |
| " <td>12</td>\n", | |
| " <td>[π] i love cheesy horror flicks i don't care i...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>13</th>\n", | |
| " <td>13</td>\n", | |
| " <td>[π] anyone who could find redeeming value in t...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>14</th>\n", | |
| " <td>14</td>\n", | |
| " <td>[π] b movie at best sound effects are pretty g...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>15</th>\n", | |
| " <td>15</td>\n", | |
| " <td>[π] a total waste of time just throw in a few ...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>16</th>\n", | |
| " <td>16</td>\n", | |
| " <td>[π] [β] castle in the sky is the bomb the mess...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>17</th>\n", | |
| " <td>17</td>\n", | |
| " <td>[π] at the [β] of the [β] big [β] racism row i...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>18</th>\n", | |
| " <td>18</td>\n", | |
| " <td>[π] i have only had the [β] of seeing this mov...</td>\n", | |
| " <td>0</td>\n", | |
| " </tr>\n", | |
| " <tr>\n", | |
| " <th>19</th>\n", | |
| " <td>19</td>\n", | |
| " <td>[π] chances are is a charming romantic fantasy...</td>\n", | |
| " <td>1</td>\n", | |
| " </tr>\n", | |
| " </tbody>\n", | |
| "</table>\n", | |
| "</div>" | |
| ], | |
| "text/plain": [ | |
| " index x_train original_text y_train\n", | |
| "0 0 [π] this film was just brilliant casting locat... 1\n", | |
| "1 1 [π] big hair big [β] bad music and a giant saf... 0\n", | |
| "2 2 [π] this has to be one of the worst films of t... 0\n", | |
| "3 3 [π] the [β] [β] at storytelling the traditiona... 1\n", | |
| "4 4 [π] worst mistake of my life br br i picked th... 0\n", | |
| "5 5 [π] begins better than it ends funny that the ... 0\n", | |
| "6 6 [π] [β] production values and solid performanc... 1\n", | |
| "7 7 [π] the [β] tells the story of the four hamilt... 0\n", | |
| "8 8 [π] just got out and cannot believe what a bri... 1\n", | |
| "9 9 [π] this movie has many problem associated wit... 0\n", | |
| "10 10 [π] french horror cinema has seen something of... 1\n", | |
| "11 11 [π] when i rented this movie i had very low ex... 0\n", | |
| "12 12 [π] i love cheesy horror flicks i don't care i... 0\n", | |
| "13 13 [π] anyone who could find redeeming value in t... 0\n", | |
| "14 14 [π] b movie at best sound effects are pretty g... 0\n", | |
| "15 15 [π] a total waste of time just throw in a few ... 0\n", | |
| "16 16 [π] [β] castle in the sky is the bomb the mess... 1\n", | |
| "17 17 [π] at the [β] of the [β] big [β] racism row i... 1\n", | |
| "18 18 [π] i have only had the [β] of seeing this mov... 0\n", | |
| "19 19 [π] chances are is a charming romantic fantasy... 1" | |
| ] | |
| }, | |
| "execution_count": 4, | |
| "metadata": {}, | |
| "output_type": "execute_result" | |
| } | |
| ], | |
| "source": [ | |
| "def restore_original_text(index_no):\n", | |
| " return (' '.join(id_to_word[id] for id in x_train[index_no] ))\n", | |
| "\n", | |
| "# Print Original Texts on pandas ( index 0 - 19)\n", | |
| "\n", | |
| "index_list = range(20)\n", | |
| "original_text_list = []\n", | |
| "y_train_list = []\n", | |
| "\n", | |
| "for i in index_list:\n", | |
| " original_text_list.append(restore_original_text(i))\n", | |
| " y_train_list.append(y_train[i])\n", | |
| " \n", | |
| "df = pd.DataFrame({'index': index_list, 'x_train original_text': original_text_list,'y_train': y_train_list}) \n", | |
| "\n", | |
| "df" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 5, | |
| "metadata": { | |
| "collapsed": false | |
| }, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "<< index >> : 0\n", | |
| "[π] this film was just brilliant casting location scenery story direction everyone's really suited the part they played and you could just imagine being there robert [β] is an amazing actor and now the same being director [β] father came from the same scottish island as myself so i loved the fact there was a real connection with this film the witty remarks throughout the film were great it was just brilliant so much that i bought the film as soon as it was released for [β] and would recommend it to everyone to watch and the fly [β] was amazing really cried at the end it was so sad and you know what they say if you cry at a film it must have been good and this definitely was also [β] to the two little [β] that played the [β] of norman and paul they were just brilliant children are often left out of the [β] list i think because the stars that play them all grown up are such a big [β] for the whole film but these children are amazing and should be [β] for what they have done don't you think the whole story was so lovely because it was true and was someone's life after all that was [β] with us all\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 1\n", | |
| "[π] big hair big [β] bad music and a giant safety [β] these are the words to best describe this terrible movie i love cheesy horror movies and i've seen hundreds but this had got to be on of the worst ever made the plot is paper thin and ridiculous the acting is an [β] the script is completely laughable the best is the end showdown with the cop and how he worked out who the killer is it's just so damn terribly written the clothes are [β] and funny in equal [β] the hair is big lots of [β] [β] men wear those cut [β] [β] that show off their [β] [β] that men actually wore them and the music is just [β] trash that plays over and over again in almost every scene there is trashy music [β] and [β] taking away bodies and the [β] still doesn't close for [β] all [β] aside this is a truly bad film whose only charm is to look back on the disaster that was the 80's and have a good old laugh at how bad everything was back then\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 2\n", | |
| "[π] this has to be one of the worst films of the [β] when my friends i were watching this film being the target audience it was aimed at we just sat watched the first half an hour with our jaws touching the floor at how bad it really was the rest of the time everyone else in the theatre just started talking to each other leaving or generally crying into their popcorn that they actually paid money they had [β] working to watch this [β] excuse for a film it must have looked like a great idea on paper but on film it looks like no one in the film has a clue what is going on crap acting crap costumes i can't get across how [β] this is to watch save yourself an hour a bit of your life\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 3\n", | |
| "[π] the [β] [β] at storytelling the traditional sort many years after the event i can still see in my [β] eye an elderly lady my [β] mother [β] the battle of [β] she makes the characters come alive her passion is that of an eye witness one to the events on the [β] [β] a mile or so from where she lives br br of course it happened many years before she was born but you wouldn't guess from the way she tells it the same story is told in [β] the length and [β] of [β] as i [β] it with a friend one night in [β] a local cut in to give his version the discussion continued to closing time br br stories passed down like this become part of our being who doesn't remember the stories our parents told us when we were children they become our invisible world and as we grow older they maybe still serve as inspiration or as an emotional [β] fact and fiction blend with [β] role models warning stories [β] magic and mystery br br my name is [β] like my grandfather and his grandfather before him our protagonist introduces himself to us and also introduces the story that [β] back through [β] it [β] stories within stories stories that [β] the [β] wonder of [β] its [β] mountains [β] in [β] the stuff of legend yet [β] is [β] in reality this is what gives it its special charm it has a rough beauty and [β] [β] with some of the finest [β] singing you will ever hear br br [β] [β] visits his grandfather in hospital shortly before his death he burns with frustration part of him [β] to be in the twenty first century to hang out in [β] but he is raised on the western [β] among a [β] speaking community br br yet there is a deeper conflict within him he [β] to know the truth the truth behind his [β] ancient stories where does fiction end and he wants to know the truth behind the death of his parents br br he is pulled to make a last [β] journey to the [β] of one of [β] most [β] mountains can the truth be told or is it all in stories br br in this story about stories we [β] bloody battles [β] lovers the [β] of old and the sometimes more [β] [β] of accepted truth in doing so we each connect with [β] as he lives the story of his own life br br [β] the [β] [β] is probably the most honest [β] and genuinely beautiful film of [β] ever made like [β] i got slightly annoyed with the [β] of hanging stories on more stories but also like [β] i [β] this once i saw the [β] picture ' forget the box office [β] of [β] and its like you might even [β] the [β] famous [β] of the [β] man to see a film that is true to [β] this one is probably unique if you maybe [β] on it deeply enough you might even re [β] the power of storytelling and the age old question of whether there are some [β] that cannot be told but only experienced\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 4\n", | |
| "[π] worst mistake of my life br br i picked this movie up at target for 5 because i figured hey it's sandler i can get some cheap laughs i was wrong completely wrong mid way through the film all three of my friends were asleep and i was still suffering worst plot worst script worst movie i have ever seen i wanted to hit my head up against a wall for an hour then i'd stop and you know why because it felt damn good upon [β] my head in i stuck that damn movie in the [β] and watched it burn and that felt better than anything else i've ever done it took american psycho army of darkness and kill bill just to get over that crap i hate you sandler for actually going through with this and [β] a whole day of my life\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 5\n", | |
| "[π] begins better than it ends funny that the russian [β] crew [β] all other actors it's like those scenes where documentary shots br br spoiler part the message [β] was contrary to the whole story it just does not [β] br br\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 6\n", | |
| "[π] [β] production values and solid performances in this [β] [β] of jane [β] [β] classic about the marriage game within and between the classes in [β] [β] century england [β] and paltrow are a [β] mixture as friends who must pass through [β] and lies to discover that they love each other good humor is a [β] [β] which goes a long way towards explaining the [β] of the aged source material which has been [β] down a bit in its harsh [β] i liked the look of the film and how shots were set up and i thought it didn't [β] too much on [β] of head shots like most other films of the 80s and 90s do very good results\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 7\n", | |
| "[π] the [β] tells the story of the four hamilton [β] teenager francis [β] [β] [β] [β] joseph [β] [β] [β] [β] the [β] david [β] who is now the [β] parent in charge the [β] move house a lot [β] is [β] why is unhappy with the way things are the fact that his [β] sister [β] [β] murder people in the basement doesn't help [β] or calm [β] [β] either francis [β] something just isn't right when he eventually finds out the truth things will never be the same again br br co written co produced directed by mitchell [β] [β] [β] as the [β] brothers who's only other film director's credit so far is the april [β] day [β] remake enough said this was one of the [β] to die [β] at the 2006 after dark [β] or whatever it's called in keeping with pretty much all the [β] i've seen i thought the [β] was complete total utter crap i found the character's really poor very [β] the slow moving story failed to capture my imagination or [β] my interest over it's [β] a half minute too long [β] minute [β] the there's the awful twist at the end which had me laughing out loud there's this really big [β] build up to what's inside a [β] thing in the [β] basement it's eventually revealed to be a little boy with a [β] is that really supposed to scare us is that really supposed to shock us is that really something that is supposed to have us talking about it as the end credits roll is a [β] looking young boy the best [β] ending that the makers could come up with the boring plot [β] along it's never made clear where the [β] get all their money from to buy new houses since none of them seem to work except david in a [β] i doubt that pays much or why they haven't been caught before now the script tries to mix in every day drama with [β] horror it just does a terrible job of [β] the two to the extent that neither aspect is memorable or effective a really bad film that i am struggling to say anything good about br br despite being written directed by the extreme sounding [β] brothers there's no gore here there's a bit of blood splatter a few scenes of girls [β] up in a basement but nothing you couldn't do at home yourself with a bottle of [β] [β] a [β] the film is neither scary since it's got a very middle class [β] setting there's zero atmosphere or mood there's a lesbian suggest [β] kiss but the [β] is low on the exploitation scale there's not much here for the horror crowd br br filmed in [β] in california this has that modern low budget look about it it's not badly made but rather forgettable the acting by an unknown to me cast is nothing to write home about i can't say i ever felt anything for anyone br br the [β] [β] the [β] sin of being both dull boring from which it never [β] add to that an ultra thin story no gore a rubbish ending character's who you don't give a [β] about you have a film that did not impress me at all\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 8\n", | |
| "[π] just got out and cannot believe what a brilliant documentary this is rarely do you walk out of a movie theater in such awe and [β] lately movies have become so over [β] that the thrill of [β] something truly special and unique rarely happens [β] [β] did this to me when it first came out and this movie is doing to me now i didn't know a thing about this before going into it and what a surprise if you hear the concept you might get the feeling that this is one of those [β] movies about an amazing triumph covered with over the top music and trying to have us fully convinced of what a great story it is telling but then not letting us in [β] this is not that movie the people tell the story this does such a good job of capturing every moment of their involvement while we enter their world and feel every second with them there is so much beyond the [β] that makes everything they go through so much more tense touching the [β] was also a great doc about mountain [β] and showing the intensity in an engaging way but this film is much more of a human story i just saw it today but i will go and say that this is one of the best documentaries i have ever seen\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 9\n", | |
| "[π] this movie has many problem associated with it that makes it come off like a low budget class project from someone in film school i have to give it credit on its [β] though many times throughout the movie i found myself laughing [β] it was so bad at times that it was comical which made it a fun watch br br if you're looking for a low grade slasher movie with a twist of psychological horror and a [β] of campy [β] then pop a [β] of popcorn [β] some friends over and have some fun br br i agree with other comments that the sound is very bad dialog is next to impossible to follow much of the time and the soundtrack is kind of just there\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 10\n", | |
| "[π] french horror cinema has seen something of a [β] over the last couple of years with great films such as inside and [β] romance [β] on to the scene [β] [β] the [β] just slightly but stands head and [β] over most modern horror titles and is surely one of the best french horror films ever made [β] was obviously shot on a low budget but this is made up for in far more ways than one by the originality of the film and this in turn is [β] by the excellent writing and acting that [β] the film is a winner the plot focuses on two main ideas prison and black magic the central character is a man named [β] sent to prison for [β] he is put in a cell with three others the [β] insane [β] body building [β] [β] and his retarded boyfriend [β] after a short while in the cell together they [β] upon a hiding place in the wall that contains an old [β] after [β] part of it they soon realise its magical powers and realise they may be able to use it to break through the prison walls br br black magic is a very interesting topic and i'm actually quite surprised that there aren't more films based on it as there's so much scope for things to do with it it's fair to say that [β] makes the best of it's [β] as despite it's [β] the film never actually feels [β] and manages to flow well throughout director eric [β] provides a great atmosphere for the film the fact that most of it takes place inside the central prison cell [β] that the film feels very [β] and this immensely [β] the central idea of the prisoners wanting to use magic to break out of the cell it's very easy to get behind them it's often said that the unknown is the thing that really [β] people and this film proves that as the director [β] that we can never really be sure of exactly what is round the corner and this helps to [β] that [β] actually does manage to be quite frightening the film is memorable for a lot of reasons outside the central plot the characters are all very interesting in their own way and the fact that the book itself almost takes on its own character is very well done anyone worried that the film won't deliver by the end won't be disappointed either as the ending both makes sense and manages to be quite horrifying overall [β] is a truly great horror film and one of the best of the decade highly recommended viewing\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 11\n", | |
| "[π] when i rented this movie i had very low expectations but when i saw it i realized that the movie was less a lot less than what i expected the actors were bad the [β] wife was one of the worst the story was so stupid it could work for a disney movie except for the murders but this one is not a comedy it is a laughable masterpiece of stupidity the title is well chosen except for one thing they could add stupid movie after dead [β] i give it 0 and a half out of 5\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 12\n", | |
| "[π] i love cheesy horror flicks i don't care if the acting is sub par or whether the monsters look corny i liked this movie except for the [β] feeling all the way from the beginning of the film to the very end look i don't need a 10 page [β] or a sign with big letters explaining a plot to me but dark [β] takes the what is this movie about thing to a whole new annoying level what is this movie about br br this isn't exceptionally scary or thrilling but if you have an hour and a half to kill and or you want to end up feeling frustrated and confused rent this winner\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 13\n", | |
| "[π] anyone who could find redeeming value in this piece of crap ought to have their head [β] we have the [β] [β] [β] part time [β] wife with [β] all over her body [β] received from repeated [β] by an abusive son now she is [β] [β] [β] all over the kitchen floor the release so [β] somehow [β] to helen [β] [β] her hands in running water we have the husband who starts out by [β] a prostitute who just happens to be his daughter she's upset with him because he came too quickly and ends by [β] his female [β] having sex with her corpse and then [β] her up we have the kid who is [β] [β] by his [β] and who comes home and beats his mom you see it's all [β] deep huh the only decent moment in this horrendous pile of [β] is when the dad murders his [β] [β] it's a good thing this turkey was shot on video because otherwise what a waste of expensive film it would be if that guy who thinks artists ought to be interested in this [β] is really serious no wonder most people think artists are insane we saw this lousy movie then put on zero woman the accused oh my god it was a [β] as to which one was worse what is going on in japan these days sick sick sick\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 14\n", | |
| "[π] b movie at best sound effects are pretty good lame concept decent execution i suppose it's a rental br br you put some [β] oil in your mouth to save you from de [β] [β] you cut de bite and suck out de [β] you gonna be ok tommy br br you stay by the [β] when agent harris calls you get me give me a fire [β] br br weapons we need weapons [β] the [β] all we have is this [β] br br dr price is the snake expert br br local [β] can handle the occasional [β] alert every [β] in the [β] city area\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 15\n", | |
| "[π] a total waste of time just throw in a few explosions non stop fighting exotic cars a [β] [β] slow motion computer generated car [β] and last but not least a hugh [β] like character with wall to wall hot [β] and mix in a [β] and you will have this sorry excuse for a movie i really got a laugh out of the dr evil like heavily [β] [β] the plot was somewhere between [β] and non existent how many [β] are willing to make a 25 million dollar bet on a car race answer 4 but didn't they become [β] through [β] responsibility this was written for [β] [β] it plays like a video game i did enjoy the [β] ii [β] in the desert though\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 16\n", | |
| "[π] [β] castle in the sky is the bomb the message is as strong as his [β] works and more pure fantastic and flying [β] how could it be any better the art is totally amazing and the soundtrack which is [β] many times after this im not sure if this was the first time i heard it and [β] in me the most emotional sentimental response of any movie soundtrack [β] the female lead in this movie is totally awesome and the boy [β] is also a great role model he lives on his own the plot is classic [β] i won't give it away but the end is really great i rank this as one of [β] three best with [β] and spirited away also you may want to check out [β] moving castle when it comes out [β] next year i hope if you like [β] check this one out as it [β] available in the usa enjoy [β] a\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 17\n", | |
| "[π] at the [β] of the [β] big [β] racism row in 2007 involving [β] [β] and the late [β] [β] i [β] on an internet [β] those [β] b b ' fans who [β] the show after years of [β] [β] [β] [β] such as [β] [β] [β] [β] [β] i thought they were being [β] and said so [β] ain't half hot [β] was then thrown into the argument with some [β] out it had starred an english actor [β] up well yes but michael [β] had lived in india as a boy and spoke [β] [β] the show's [β] overlook the reality he brought to his performance as [β] [β] [β] the noted indian character actor [β] [β] said in a [β] documentary [β] [β] the [β] that he was upset when he heard [β] had [β] the role but added no indian actor could have played that role as well as [β] indeed br br [β] was perry and [β] companion show to [β] [β] also set in [β] the [β] english town of [β] on sea had been replaced by the hot [β] [β] of india in particularly a place called [β] where an army concert party puts on shows for the troops among them [β] [β] george [β] his first sitcom role since [β] in [β] camp [β] [β] [β] [β] [β] [β] [β] [β] [β] [β] de [β] [β] [β] john [β] and [β] [β] the late christopher mitchell [β] over this gang of [β] was the [β] [β] major williams the brilliant [β] davies who [β] them all as [β] his frustration at not being able to lead his men up the jungle to engage the enemy in combat made him bitter and [β] though he was nice to [β] whom he thought was his [β] son then there was ever so english colonel reynolds donald [β] and [β] captain [β] michael [β] [β] was like a wise old [β] beginning each show by talking to the camera and closing them by [β] obscure [β] [β] he loved being [β] so much he came to regard himself as practically british his friends were the tea making [β] [β] the late [β] [β] who went on to [β] your [β] and the [β] pulling [β] [β] [β] [β] so real indians featured in the show another point its [β] ignore [β] also provided what was described on the credits as [β] [β] similar to the [β] songs used as [β] music on [β] [β] each edition closed with him [β] [β] of hope [β] only to be [β] by a [β] up ' from williams the excellent opening theme was [β] by jimmy perry and derek [β] br br though never quite [β] [β] [β] in the [β] [β] [β] nevertheless was popular enough to run for a total of eight seasons in [β] davies and [β] [β] the [β] with a cover version of that old [β] [β] [β] they then recorded an entire album of old [β] [β] what else [β] [β] ' br br the show hit crisis point three years later when [β] died of [β] rather than [β] the role of [β] the writers just let him be [β] forgotten when george [β] left the character of [β] took his place as [β] providing another source of comedy br br the last edition in [β] saw the soldiers leave india by boat for [β] the [β] [β] watching them go with great sadness as did viewers br br [β] have been few and far between mainly on u k gold all because of its so called [β] reputation this is strange for one thing the show was not specifically about racism if a white man [β] up is so wrong why does david [β] 1984 film [β] [β] to [β] still get shown on television it featured [β] [β] as an indian and won two oscars it was [β] from jimmy [β] own experiences some characters were based on real people the [β] major really did [β] to his men as [β] i take the view that if you are going to put history on television get it right [β] the past no matter how [β] it might seem to modern audiences is [β] [β] [β] was both funny and [β] and viewers saw this thank [β] for d v d 's i say time to stop this review as williams would say i'll have no [β] in this jungle\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 18\n", | |
| "[π] i have only had the [β] of seeing this movie once when i was rather young so much of the movie is [β] in trying to remember it however i can say it was not as funny as a movie called killer tomatoes should have been and the most memorable things from this movie are the song and the scene with the elderly couple talking about poor [β] other than that the movie is really just scenes of little tomatoes and big tomatoes rolling around and people acting scared and overacting as people should do in a movie of this type however just having a very silly premise and a catchy theme song do not a good comedy make granted this movie is supposed to be a b movie nothing to be taken seriously however you should still make jokes that are funny and not try to [β] a mildly amusing premise into a full [β] movie perhaps a short would have been fine as the trailer showing the elderly couple mentioned above and a man desperately trying to gun down a larger [β] was actually pretty good the trailer itself looked like a [β] trailer but no they indeed made a full movie and a rather weak one at that\n", | |
| "y_train: 0\n", | |
| "-------------------------------------------------------------------------------\n", | |
| "<< index >> : 19\n", | |
| "[π] chances are is a charming romantic fantasy about a woman [β] [β] whose husband christopher [β] is killed shortly after learning she is pregnant we then see the husband in heaven letting the powers that be know that he was taken too soon and that his wife needs him he is told he can return to earth but not as himself [β] [β] years where we see [β] daughter mary [β] [β] [β] to [β] from college and [β] a young man robert [β] jr who it turns out is the [β] of her father the film is a little on the predictable side the story goes all the places you expect it to but it is so [β] played by an [β] cast especially [β] and [β] that you can't help but get wrapped up in the fun [β] has rarely been seen on screen to better advantage and she and [β] are [β] by a talented group of character actors in supporting roles a lovely and charming fantasy that will [β] and [β] you\n", | |
| "y_train: 1\n", | |
| "-------------------------------------------------------------------------------\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "# Print Original Texts\n", | |
| "for i in index_list:\n", | |
| " print('<< index >> :', i)\n", | |
| " print(restore_original_text(i))\n", | |
| " print('y_train:', y_train[i])\n", | |
| " print('-------------------------------------------------------------------------------')" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "metadata": { | |
| "collapsed": true | |
| }, | |
| "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.5.1" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 0 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment