Restore Japanese document hierarchy, then compare chunking
Description excerpted from the original listing, which is linked below.