wip
This commit is contained in:
1 parent
306a8f7211
commit
1027374281
1 file changed
+1
-1
+1
-1
@@ -17,7 +17,7 @@ def main(folder):
|
||||
outfilename = outfolder + "sentiments"
|
||||
|
||||
# compute toxic levels
|
||||
toxlevels = dmt(posts, 10).map(lambda p: (p['Id'], {a['Id']: computeToxLevel(a['Body']) for a in p['Answers']}), "calculating sentiments").getresults()
|
||||
toxlevels = dmt(posts, 100).map(lambda p: (p['Id'], {a['Id']: computeToxLevel(a['Body']) for a in p['Answers']}), "calculating sentiments").getresults()
|
||||
toxlevels = {id: p for (id, p) in toxlevels}
|
||||
|
||||
dumptoxlevels(toxlevels, outfilename + ".py")
|
||||
|
||||
Reference in new issue
Block a user