Researchers use AI to unlock the secrets of ancient texts