code: def _get_word_ngrams(n, sentences):
      """Calculates word n-grams for multiple sentences."""
      assert len(sentences) > 0
      assert n > 0
  
      words = _split_into_words(sentences)
      return _get_ngrams(n, words)
  
file_path: nlp-architect/examples/sparse_gnmt/gnmt/utils/rouge.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import itertools
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _get_word_ngrams(n, sentences) and returns: _get_ngrams