Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [jalal@goku sentiment]$ head -n99 runjob.sh 10tweets.txt ; ./runjob.sh
- ==> runjob.sh <==
- #!/bin/bash
- n=1
- while read -u 3 -r line; do
- python entity_sentiment.py sentiment-entities-text "$line" > "$((n++)).json"
- done 3< 10tweets.txt
- ==> 10tweets.txt <==
- Trump on the other hand goes all in on water boarding AND some. #GOPDebate
- RT @wpjenna Donald Trump promises that he will not touch the 2nd amendment -- "unless we're going to make it stronger."
- Trump 23%, Rubio 19%, Kasich & Bush 14%, Christie 10%, Cruz 9% #NHPrimary
- @realDonaldTrump Thank you for saying you won't use vulger language anymore. Talk about Sanders & Clinton. Take Cruz as VP. Mexican votes!!!
- RT @SurfPHX Mr. Trump @realDonaldTrump tweeted 25 minutes ago. You all do realize, that our future President hardly sleeps. He's a Fighter and a Worker!
- go, Bernie #DemDebate
- Sanders calls out Clinton on taking Foreign Policy advice from Warmonger Henry Kissinger https://t.co/xT5J4uh4m4 via @YouTube
- Cruz, Rubio, and the Moral Bankruptcy of Progressive Identity Politics https://t.co/kSQstJXtKO via @NRO
- RT @scarylawyerguy "Who does Bernie Sanders listen to on foreign policy." - A question Hillary had to raise b/c the media will not. #DemDebate
- Why Did U of California Fire Tenured Riverside Professor? / Ted Cruz and Higher Ed -- ... - https://t.co/zFxa4Q70wh
- [jalal@goku sentiment]$ ls
- 1.json 1000tweets.txt 10tweets.txt aclImdb aclImdb_v1.tar.gz credentials.json entity_sentiment.py gc_test.py reviews runjob.sh sentiment-samples.tar sentiment.py
- [jalal@goku sentiment]$ cat 1.json
- Mentions:
- Name: "Professor"
- Begin Offset : 47
- Content : Professor
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 2
- Salience: 0.47092151641845703
- Sentiment:
- Mentions:
- Name: "Did U of California Fire Tenured Riverside"
- Begin Offset : 4
- Content : Did U of California Fire Tenured Riverside
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Salience: 0.2889040410518646
- Sentiment:
- Mentions:
- Name: "Ted Cruz"
- Begin Offset : 60
- Content : Ted Cruz
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Salience: 0.1294257491827011
- Sentiment:
- Mentions:
- Name: "https://t.co/zFxa4Q70wh"
- Begin Offset : 92
- Content : https://t.co/zFxa4Q70wh
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Salience: 0.0676858201622963
- Sentiment:
- Mentions:
- Name: "Higher Ed"
- Begin Offset : 73
- Content : Higher Ed
- Magnitude : 0.0
- Sentiment : 0.0
- Type : 1
- Salience: 0.043062858283519745
- Sentiment:
- [jalal@goku sentiment]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement