Researchers used AI to help extract data from the vast number of voyages noted in the handwritten port books