primeqa.ir.dense.dpr_top.util.line_corpus.np2str#
- primeqa.ir.dense.dpr_top.util.line_corpus.np2str(nda, *, dtype=<class 'numpy.float16'>)#
Convert numpy ndarray to compact string representation :param nda: numpy array :param dtype: numpy datatype to save the array as :return: base64 encoded string of numpy binary