Taxing robots and computers would help to slow the tide of automation. Perhaps other industrial machinery too.
However it is naive to think that new jobs will come along for people to be retrained for.
We have been waiting for decades for new jobs to appear for the people freed up from the historically enormously labor intensive industry of farming and agriculture. During this time automation of jobs has been occurring in other industries, and less new jobs have appeared than have gone.