Closed rezha130 closed 6 years ago
the ctc_char_map
is a mapping of a class (predicted by the network) to the Unicode/ASCII represenation of a character.
Lets say that your first class is 0
and you want to give it the following semantic meaning: Class 0
is the character A
. Your char map should look like this: {0: 65}
, because ord('A')
is 65
.
In #39 I added a trivial script which takes the characters as parameters and outputs JSON usable for the char_map.
Hi @Bartzi
I'm still not understading how to make ctc_char_map.json
This is list of my actual characters that model need to recognize
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890 :./,
What is ctc_char_map.json for this list of char?
Thanks