X Tutup
Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit 75ecb98

Browse files
committed
added exampleSentiment.py for the texts provided in the file and myText.py to call alchemyapi.py that returns only a sentiment type
1 parent 97900ef commit 75ecb98

File tree

7 files changed

+998
-1
lines changed

7 files changed

+998
-1
lines changed

.Rhistory

Whitespace-only changes.

example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
import json
2121

2222

23-
demo_text = 'Yesterday dumb Bob destroyed my fancy iPhone in beautiful Denver, Colorado. I guess I will have to head over to the Apple Store and buy a new one.'
23+
#demo_text = 'Yesterday dumb Bob destroyed my fancy iPhone in beautiful Denver, Colorado. I guess I will have to head over to the Apple Store and buy a new one.'
24+
demo_text = 'the reception staff when we arrived was extremely rude. We found blood and dry wine on our bed sheets and it took them 1 hour to bring new sheets (that we had a to change ourselves) and did not offer any compensation outside of drinks. Durng the weekend you can hearthe sounds of the nightclub that is next door.'
2425
demo_url = 'http://www.npr.org/2013/11/26/247336038/dont-stuff-the-turkey-and-other-tips-from-americas-test-kitchen'
2526
demo_html = '<html><head><title>Python Demo | AlchemyAPI</title></head><body><h1>Did you know that AlchemyAPI works on HTML?</h1><p>Well, you do now.</p></body></html>'
2627
image_url = 'http://demo1.alchemyapi.com/images/vision/football.jpg'

0 commit comments

Comments
 (0)
X Tutup