Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -95,9 +95,9 @@ if __name__ == "__main__": | ... | @@ -95,9 +95,9 @@ if __name__ == "__main__": |
95 | #listSign.append(group[1]) | 95 | #listSign.append(group[1]) |
96 | #listLabels.append(label + group[1]) | 96 | #listLabels.append(label + group[1]) |
97 | listLabels.append(label) | 97 | listLabels.append(label) |
98 | - print(" Reading vectors done!") | 98 | + print("Reading vectors done!") |
99 | - print(" Len vectors: " + str(len(listVectors))) | 99 | + print(" Len vectors: " + str(len(listVectors))) |
100 | - print(" Len labels: " + str(len(listLabels))) | 100 | + print(" Len labels: " + str(len(listLabels))) |
101 | 101 | ||
102 | with open(os.path.join(options.outputPath, options.vectorFile.replace('.txt', '.grps.txt')), mode='w', encoding='utf8') as oFile: | 102 | with open(os.path.join(options.outputPath, options.vectorFile.replace('.txt', '.grps.txt')), mode='w', encoding='utf8') as oFile: |
103 | for g, l in sorted(zip(listGroup, listLabels)): | 103 | for g, l in sorted(zip(listGroup, listLabels)): |
... | @@ -114,4 +114,4 @@ if __name__ == "__main__": | ... | @@ -114,4 +114,4 @@ if __name__ == "__main__": |
114 | labels = labels + l + ', ' | 114 | labels = labels + l + ', ' |
115 | oFile.write('{}\t{}\n'.format(g_before, labels.rstrip(', '))) | 115 | oFile.write('{}\t{}\n'.format(g_before, labels.rstrip(', '))) |
116 | 116 | ||
117 | - print(" Processing done in %fs" % (time() - t0)) | 117 | + print("Processing done in %fs" % (time() - t0)) | ... | ... |
-
Please register or login to post a comment