githubharald / SimpleHTR

Handwritten Text Recognition (HTR) system implemented with TensorFlow.
https://towardsdatascience.com/2326a3487cd5
MIT License
1.96k stars 885 forks source link

Code refactoring #164

Closed tosemml closed 1 year ago

tosemml commented 1 year ago

These slight code adjustments aim to enhance Pythonic quality by incorporating python str.join

githubharald commented 1 year ago

Hi, thanks for your contribution. The original code also puts a ";" at the end of the line, while the new code does not. Could you please also add this additional ";" so that the output file does not change. csv += ';'.join([str(rnn_output[t, b, c]) for c in range(max_c)]) + ';\n'

tosemml commented 1 year ago

Fixed it, thanks a lot.

githubharald commented 1 year ago

looks good, thanks!