def vol_link_fn(md):
    # md == corpus.view_metadata('sentence')
    links = [add_link_(x['page_urls'], x['page_label']) for x in md]
    labels = ['{0}, {1}, {2}'.format(l, i, s) for (l,i,s) in
             zip(links, md['sentence_label'], md['sentences_label'])]

    return np.array(labels)
Not a generalized function for individual htrc volume with page links
dataset/ETHPy150Open inpho/vsm/vsm/extensions/htrc.py/vol_link_fn