|
@@ -21,10 +21,11 @@ K*K results, and start over again until certain number of results are fully
|
|
|
decoded.
|
|
|
"""
|
|
|
|
|
|
+from six.moves import xrange
|
|
|
import tensorflow as tf
|
|
|
|
|
|
FLAGS = tf.flags.FLAGS
|
|
|
-tf.flags.DEFINE_bool('normalize_by_length', True, 'Whether normalize')
|
|
|
+tf.flags.DEFINE_bool('normalize_by_length', True, 'Whether to normalize')
|
|
|
|
|
|
|
|
|
class Hypothesis(object):
|