We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
楼主,您好!我想问下您, x = [pnyn2idx.get(pnyn, 1) for pnyn in pnyn_sent] # 1: OOV y = [hanzi2idx.get(hanzi, 1) for hanzi in hanzi_sent] # 1: OOV
xs.append(np.array(x, np.int32).tostring()) ys.append(np.array(y, np.int32).tostring()) 为什么这里要把x和y转换成字符串类型那?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
楼主,您好!我想问下您,
x = [pnyn2idx.get(pnyn, 1) for pnyn in pnyn_sent] # 1: OOV
y = [hanzi2idx.get(hanzi, 1) for hanzi in hanzi_sent] # 1: OOV
xs.append(np.array(x, np.int32).tostring())
ys.append(np.array(y, np.int32).tostring())
为什么这里要把x和y转换成字符串类型那?
The text was updated successfully, but these errors were encountered: