MCPcopy Create free account
hub / github.com/binbinjiang/CVT-SLR / write2file

Function write2file

seq_scripts.py:30–35  ·  view source on GitHub ↗
(path, info, output)

Source from the content-addressed store, hash-verified

28
29
30def write2file(path, info, output):
31 filereader = open(path, "w")
32 for sample_idx, sample in enumerate(output):
33 for word_idx, word in enumerate(sample):
34 filereader.writelines("{} 1 {:.2f} {:.2f} {}\n".format(info[sample_idx], word_idx * 1.0 / 100,
35 (word_idx + 1) * 1.0 / 100, word[0]))

Callers 1

seq_evalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected