primeqa.ir.dense.dpr_top.util.line_corpus.str2np#
- primeqa.ir.dense.dpr_top.util.line_corpus.str2np(s: str, *, dtype=<class 'numpy.float16'>)#
Convert compact string representation of numpy ndarry to numpy vector :param s: base64 encoded string of numpy binary :param dtype: numpy datatype of the saved array :return: 1-D array (shape is not preserved)