|
@@ -79,6 +79,13 @@ def main():
|
|
|
if args.debug:
|
|
|
print(c)
|
|
|
|
|
|
+ # recognize .csv output and skip wordcloud
|
|
|
+ if args.output[-4:] == '.csv':
|
|
|
+ with open(args.output, mode="w") as ofile:
|
|
|
+ for i in c:
|
|
|
+ ofile.write(i + ',' + str(c[i]) + '\n')
|
|
|
+ return
|
|
|
+
|
|
|
mask = None
|
|
|
if not args.mask is None:
|
|
|
from PIL import Image
|