Are there any well-designed R packages or other open-source software for training Hidden Markov chains?
There are several. For example, (with R) you could use the 'HiddenMarkov' package to train and find parameters for HMM models using common algorithms (e.g. Baum-Welch).
There was also a related thread on stack overflow, which was apparently closed: