Text data within Keras

There are two text datasets available within Keras, as follows:

  • The Internet Movie Database (IMDb), which contains movie review sentiment classification 
  • Reuters Newswire's topics classification data

The IMDb review data contains 25,000 reviews that have been classified as containing positive or negative sentiments. This data has already been preprocessed, with each review encoded as a sequence of integers. Reuters Newswire's topics classification data contains 11,228 newswires, and these have also been preprocessed, with each encoded as a sequence of integers. The newswires have been classified into 46 groups or topics, such as livestock, gold, and housing, jobs.

The following is an example of a positive movie review from the IMDb data from Keras:

"lavish production values and solid performances in this straightforward adaption of jane ? satirical classic about the marriage game within and between the classes in ? 18th century england northam and paltrow are a ? mixture as friends who must pass through ? and lies to discover that they love each other good humor is a ? virtue which goes a long way towards explaining the ? of the aged source material which has been toned 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 rely too much on ? of head shots like most other films of the 80s and 90s do very good results."

The following is an example of a negative movie review from the IMDb data from Keras:

"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 bashing 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 ruining a whole day of my life."

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset