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
- echo $n "${line::30}"
- 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
- 1 Trump on the other hand goes a
- 1 RT @wpjenna Donald Trump promi
- 1 Trump 23%, Rubio 19%, Kasich &
- 1 @realDonaldTrump Thank you for
- 1 RT @SurfPHX Mr. Trump @realDon
- 1 go, Bernie #DemDebate
- 1 Sanders calls out Clinton on t
- 1 Cruz, Rubio, and the Moral Ban
- 1 RT @scarylawyerguy "Who does B
- 1 Why Did U of California Fire T
- [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 runjob.sh
- #!/bin/bash
- n=1
- while read -u 3 -r line; do
- echo $n "${line::30}"
- python entity_sentiment.py sentiment-entities-text "$line" > "$((n++)).json"
- done 3< 10tweets.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement