From 8f8aab4324f845a7e874b89f2d6a5794acfb0203 Mon Sep 17 00:00:00 2001 From: swissme8888 Date: Tue, 2 May 2017 21:55:07 +0200 Subject: [PATCH 1/3] dsf --- flipFlop.py | 2 +- server.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flipFlop.py b/flipFlop.py index de30bcb..7fc2629 100644 --- a/flipFlop.py +++ b/flipFlop.py @@ -14,7 +14,7 @@ import sys from nltk.corpus import stopwords from nltk.sentiment.vader import SentimentIntensityAnalyzer -SIMILARITY=.7 +SIMILARITY=.9 meme=SentimentIntensityAnalyzer() num_features=300 index2word_set=set(model1.index2word) diff --git a/server.py b/server.py index fb39b24..49fa75c 100644 --- a/server.py +++ b/server.py @@ -68,16 +68,16 @@ def upload_file(): filedata2=filedata2[0:min(len(filedata2),100)] bulkdata = filedata1 +filedata2 - print(bulkdata) + #print(bulkdata) retData=flipFlopped(bulkdata) #retData= [["ddfssdf",["32320"],["fdssd"]]] - print(retData) + #print(retData) result = {} for i in retData: for j in range(len(i[1])): - result[i[0]+" flipflop #"+str(j)]= i[1][j] + result[i[0]+" flipflop: "]= i[1][j] for j in range(len(i[2])): - result[i[0]+" consistent #"+str(j)]=i[2][j] + result[i[0]+" consistent: "]=i[2][j] return render_template("result.html",result = result) # first cut file lenghts down the concat them else: @@ -95,4 +95,4 @@ def static_proxy(path): if __name__ == '__main__': - app.run(host= "0.0.0.0", debug=True,use_reloader=False) + app.run(host= "0.0.0.0", debug=True,use_reloader=False, port=80) From c1b28f9c8d8807ea9b5701fdab6c8732c693b3c3 Mon Sep 17 00:00:00 2001 From: swissme8888 Date: Tue, 2 May 2017 22:01:09 +0200 Subject: [PATCH 2/3] 0.8 --- flipFlop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flipFlop.py b/flipFlop.py index 7fc2629..7d89b86 100644 --- a/flipFlop.py +++ b/flipFlop.py @@ -14,7 +14,7 @@ import sys from nltk.corpus import stopwords from nltk.sentiment.vader import SentimentIntensityAnalyzer -SIMILARITY=.9 +SIMILARITY=.8 meme=SentimentIntensityAnalyzer() num_features=300 index2word_set=set(model1.index2word) From 73f1b1760b1bd8f9efb500335e5933d90d4f7ff2 Mon Sep 17 00:00:00 2001 From: swissme8888 Date: Tue, 2 May 2017 22:10:09 +0200 Subject: [PATCH 3/3] changed formate --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 49fa75c..ac4c669 100644 --- a/server.py +++ b/server.py @@ -75,9 +75,9 @@ def upload_file(): result = {} for i in retData: for j in range(len(i[1])): - result[i[0]+" flipflop: "]= i[1][j] + result[i[0]]= " <<<<>>>>: "+i[1][j] for j in range(len(i[2])): - result[i[0]+" consistent: "]=i[2][j] + result[i[0]]=" <<<<>>>>: "+i[2][j] return render_template("result.html",result = result) # first cut file lenghts down the concat them else: