A long-lost Babylonian hymn has been pieced back together with the help of artificial intelligence (AI) and a digital archive.