Skip to content

Commit

Permalink
Replaced sentiment_text_data with sentiment_file_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Mar 31, 2016
1 parent 21f4c28 commit 81546e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/sentiment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
end

file = Tempfile.new(['foo', '.html'])
sentiment_text_data ="<html><head><title>New Ghostbusters Film</title></head><body><p>Original Ghostbuster Dan Aykroyd, who also co-wrote the 1984 Ghostbusters film, couldn’t be more pleased with the new all-female Ghostbusters cast, telling The Hollywood Reporter, The Aykroyd family is delighted by this inheritance of the Ghostbusters torch by these most magnificent women in comedy.</p></body></html>"
file.write(sentiment_text_data)
sentiment_file_data ="<html><head><title>New Ghostbusters Film</title></head><body><p>Original Ghostbuster Dan Aykroyd, who also co-wrote the 1984 Ghostbusters film, couldn’t be more pleased with the new all-female Ghostbusters cast, telling The Hollywood Reporter, The Aykroyd family is delighted by this inheritance of the Ghostbusters torch by these most magnificent women in comedy.</p></body></html>"
file.write(sentiment_file_data)
file.open
request_file = {:language => "eng"}

Expand Down Expand Up @@ -52,4 +52,4 @@
response_headers = {}
response.header.each_header {|key,value| response_headers[key] = value}
response_headers = {"responseHeaders" => response_headers}
puts JSON.pretty_generate(JSON.parse(response.body).merge(response_headers))
puts JSON.pretty_generate(JSON.parse(response.body).merge(response_headers))

0 comments on commit 81546e6

Please sign in to comment.