diff --git a/examples/sentiment.rb b/examples/sentiment.rb index c6b3132..0091a0c 100644 --- a/examples/sentiment.rb +++ b/examples/sentiment.rb @@ -17,8 +17,8 @@ end file = Tempfile.new(['foo', '.html']) -sentiment_text_data ="New Ghostbusters Film

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.

" -file.write(sentiment_text_data) +sentiment_file_data ="New Ghostbusters Film

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.

" +file.write(sentiment_file_data) file.open request_file = {:language => "eng"} @@ -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)) \ No newline at end of file +puts JSON.pretty_generate(JSON.parse(response.body).merge(response_headers))