Skip to content
New issue

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

关于变量输入问题 #5

Open
lovejing0306 opened this issue Mar 28, 2018 · 0 comments
Open

关于变量输入问题 #5

lovejing0306 opened this issue Mar 28, 2018 · 0 comments

Comments

@lovejing0306
Copy link

楼主,您好!我想问下您,
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转换成字符串类型那?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant