class_docstr: Tests the bleu functions.
      
class_docstr_tok: ["Tests","the","bleu","functions","."]
docstr: Tests with numpy format.
          
docstr_tok: ["Tests","with","numpy","format","."]
code: def test_sentence_numpy(self):
      """Tests with numpy format."""
      hypothesis = (
          "this is a test sentence to evaluate the good bleu score . 词"
      )
      hypothesis = np.array(hypothesis.split())
      references = [
          "this is a test sentence to evaluate the bleu score .",
          "this is a test sentence to evaluate the good score .",
      ]
      references = np.array([np.array(r.split()) for r in references])
      self._test_sentence_bleu(
          references, hypothesis, lowercase=False, true_bleu=76.12
      )
  
file_path: texar/tests/evals/bleu_test.py
imports: import numpy
  import tensorflow
  from texar.tf.evals.bleu_moses import sentence_bleu_moses, corpus_bleu_moses
  from texar.tf.evals.bleu import sentence_bleu, corpus_bleu
label_desc: Use image node_id 5 for calling the BLEUTest obj's underlying member method code with example usage: obj.test_sentence_numpy() without return types