Robots powered by AI are set to weed out ragwort in an innovative project across Dorset.