I'm in other topics arguing that training on copyrighted content is not infringement in any way, but I think using someone's likeness is different and probably not legal, because there are separate laws there.
You can usually get away with it if you have deniability, but I don't think straight up adding lines to characters gives you any way to argue that.