TextSum does not actually check the presence of Tags in vocabulary
https://github.com/tensorflow/models/blob/master/textsum/seq2seq_attention.py#L163
The way of checking presence of required tokens is wrong because WordToId function returns ID of Unknown
I am training the TextSum algorithm on CNN Dataset and would also like to know about the presence of
Possible Fix: Raising an error if the WordToID function when the word is not found.
@peterjliu Can you comment?
Yes, you're right about the assertions. There should be another method that checks membership in the vocabulary instead. Do you want to send a pull request? (cc @panyx0718)
PAD should never appear in the data. It is to pad sequence of difference length to the max_length.
On Mon, Nov 14, 2016 at 4:12 PM, Peter Liu [email protected] wrote:
Yes, you're right about the assertions. There should be another method that checks membership in the vocabulary instead. Do you want to send a pull request? (cc @panyx0718 https://github.com/panyx0718)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/models/issues/621#issuecomment-260505909, or mute the thread https://github.com/notifications/unsubscribe-auth/ACwQe9pD3WNh6TgruGYeVwC-KN544mhqks5q-Pj7gaJpZM4KsNXs .
Thanks Xin
@peterjliu , Yeah sure, I'll send a pull request. @panyx0718 according to you PAD should not appear in the vocabulary, then it's presence need not be checked?
It should not appear in "data". It should appear in "vocab"
On Mon, Nov 14, 2016 at 10:30 PM, Pranay Mathur [email protected] wrote:
@peterjliu https://github.com/peterjliu , Yeah sure, I'll send a pull request. @panyx0718 https://github.com/panyx0718 according to you should not appear in the vocabulary, then it's presence need not be checked?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tensorflow/models/issues/621#issuecomment-260558995, or mute the thread https://github.com/notifications/unsubscribe-auth/ACwQe2njA8ztwCcHFQSpNP4W0leuvg3vks5q-VGNgaJpZM4KsNXs .
Thanks Xin
Hi everyone! Please refer PR #725 for the fix. Sorry for the late response, was busy in academic examinations. Thanks for answering the query @panyx0718 @peterjliu
Hi,
I couldn't find any more relevant bit of info anywhere about the pad token than here. I get that