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

代码请教 #29

Open
PanDengStudio opened this issue Sep 14, 2019 · 0 comments
Open

代码请教 #29

PanDengStudio opened this issue Sep 14, 2019 · 0 comments

Comments

@PanDengStudio
Copy link

[array([0, 0, 0, 0], dtype=int32),
array([0, 0, 0, 0], dtype=int32),
array([8, 3, 5, 3], dtype=int32),
array([7, 8, 2, 1], dtype=int32),
array([6, 2, 10, 9], dtype=int32)]
其中的5个array,表示一句话的长度是5个词,而id,一般通过统计得出,一个id表示一个词,这个array和id到底是什么意思?我的理解,一个array应该代表一句话,每一个id都是句子里的词,但是为什么代码处理时array按列取数值作为encoder_inputs?

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