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

计算point score问题 #15

Open
wzpfish opened this issue Feb 8, 2017 · 1 comment
Open

计算point score问题 #15

wzpfish opened this issue Feb 8, 2017 · 1 comment

Comments

@wzpfish
Copy link

wzpfish commented Feb 8, 2017

self.point_score = tf.gather(tf.reshape(self.tags_scores, [-1]), tf.range(0, self.batch_size * self.num_steps) * self.num_classes + tf.reshape(self.targets,[self.batch_size * self.num_steps]))
self.point_score *= self.mask

这里targets的label是从1开始计数的,而tags_scores对应的classes是从0开始计数的..不会有问题么? 还是我漏看了什么..

@chilynn
Copy link
Owner

chilynn commented Feb 11, 2017

你好,targets的label是从0开始的,y=0即“”,也是会算进去的,运行后会生成label2id文件。

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

2 participants