kojit
kojit
From tf 1.13, there is a function can split utf-8 correctly. I changed the source code as follows. #chars = tf.string_split(text, delimiter='') ragged_chars = tf.strings.unicode_split(text, 'UTF-8') chars = ragged_chars.to_sparse() Also...
``` --- a/aster/predictors/attention_predictor.py +++ b/aster/predictors/attention_predictor.py @@ -114,12 +114,22 @@ class AttentionPredictor(predictor.Predictor): def provide_groundtruth(self, groundtruth_text, scope=None): with tf.name_scope(scope, 'ProvideGroundtruth', [groundtruth_text]): batch_size = shape_utils.combined_static_and_dynamic_shape(groundtruth_text)[0] - if self._reverse: - groundtruth_text = ops.string_reverse(groundtruth_text) +...