Commit dac2795f667d22358514c83fbbefdab9f1b89bd4

Authored by Cristina Muntean
1 parent cf4b8e4a

minor

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
prepare_plot_scatter_2_distrib.py
... ... @@ -134,12 +134,12 @@ if __name__ == '__main__':
134 134 local_topics.append(word)
135 135 labels = [row[0] for row in a[:k]]
136 136  
137   - print local_topics
  137 + print ", ".join(local_topics).encode('utf8')
138 138 print len(X), len(Y), len(labels)
139 139  
140 140 # write files for plots
141 141 for (x,y,label) in zip(X,Y,labels):
142   - dataFile.write("{}\t{}\t{}\n".format(str(x),str(y),label).encode('utf8'))
  142 + dataFile.write("{}\t{}\t{}\n".format(str(x),str(y),label))
143 143 dataFile.close()
144 144  
145 145  
... ...