As an ex Navy telegraphist: you are missing some characters commonly used in Morse i.e. to identify an error the code is 8 x e, to start and end the text of a message bt sent as a single character, to terminate a transmission ar sent as a single character plus others. you may also want to take into account different transmission speeds, 12 words a minute broadcast sounds a whole lot different to a manual 30 words a minute from a professional.
You will have to teach it what a blank is, the space between words. Accurate example with translation: Dam Busters film towards the end when the raid is happening.