Commit cf4b8e4a162e1210e5fe81f9fb239cf8487b9868

Authored by Cristina Muntean
1 parent e5fc7183

minor to param

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
prepare_plot_scatter_2_distrib.py
... ... @@ -18,7 +18,8 @@ from collections import defaultdict
18 18  
19 19  
20 20 parser = argparse.ArgumentParser(description='<ix two files with frequencies to discover local topics')
21   -parser.add_argument('--input1', '-inputFile1', help='the first input file, usually the locality seeding file for tokens')
  21 +parser.add_argument('--input1', '-inputFile1', help='the first input file, usually the locality seeding file for tokens'
  22 + 'often SORTED per desired column')
22 23 parser.add_argument('--input2', '-inputFile2', help='the file against which we compare the input1')
23 24 parser.add_argument('--output', '-outputFile', help='the files in which we save the two distributions of values for each token')
24 25 parser.add_argument('--col', '-columnNumber', type=int, help='the value correspnding to which column in the feature file; '
... ... @@ -138,7 +139,7 @@ if __name__ == &#39;__main__&#39;:
138 139  
139 140 # write files for plots
140 141 for (x,y,label) in zip(X,Y,labels):
141   - dataFile.write("{}\t{}\t{}\n".format(str(x),str(y),label))
  142 + dataFile.write("{}\t{}\t{}\n".format(str(x),str(y),label).encode('utf8'))
142 143 dataFile.close()
143 144  
144 145  
... ...