Carlos-Francisco Méndez-Cruz

LSA soft clustering

......@@ -95,9 +95,9 @@ if __name__ == "__main__":
#listSign.append(group[1])
#listLabels.append(label + group[1])
listLabels.append(label)
print(" Reading vectors done!")
print(" Len vectors: " + str(len(listVectors)))
print(" Len labels: " + str(len(listLabels)))
print("Reading vectors done!")
print(" Len vectors: " + str(len(listVectors)))
print(" Len labels: " + str(len(listLabels)))
with open(os.path.join(options.outputPath, options.vectorFile.replace('.txt', '.grps.txt')), mode='w', encoding='utf8') as oFile:
for g, l in sorted(zip(listGroup, listLabels)):
......@@ -114,4 +114,4 @@ if __name__ == "__main__":
labels = labels + l + ', '
oFile.write('{}\t{}\n'.format(g_before, labels.rstrip(', ')))
print(" Processing done in %fs" % (time() - t0))
print("Processing done in %fs" % (time() - t0))
......