瀏覽代碼

Make comment formal

Jun Kim 8 年之前
父節點
當前提交
c0997f44fc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      im2txt/im2txt/inference_utils/caption_generator.py

+ 2 - 2
im2txt/im2txt/inference_utils/caption_generator.py

@@ -55,12 +55,12 @@ class Caption(object):
     else:
       return 1
   
-  # for version 3 compatibility (__cmp__ is deprecated)
+  # For Python 3 compatibility (__cmp__ is deprecated).
   def __lt__(self, other):
     assert isinstance(other, Caption)
     return self.score < other.score
   
-  # also for version 3 compatibility
+  # Also for Python 3 compatibility.
   def __eq__(self, other):
     assert isinstance(other, Caption)
     return self.score == other.score