cchung100m commented on a change in pull request #13848: [MXNET-1291] solve
pylint errors in examples with issue no.12205
URL: https://github.com/apache/incubator-mxnet/pull/13848#discussion_r248142470
##########
File path: example/cnn_text_classification/data_helpers.py
##########
@@ -81,8 +83,8 @@ def pad_sentences(sentences, padding_word="</s>"):
"""
sequence_length = max(len(x) for x in sentences)
padded_sentences = []
- for i in range(len(sentences)):
- sentence = sentences[i]
+ for i, sentence in enumerate(sentences):
+ print(i, sentence)
Review comment:
it seems like a testing code to me, I will remove it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services