def _table(table):
  """Convert table to field, value format."""
  def _tokenize(x):
    return nltk.word_tokenize(" ".join(x.lower().split("_")))
  return [([relation], _tokenize(head) + _tokenize(value))
          for (head, relation, value) in table]
Convert table to field, value format.
language/table_text_eval/webnlg_correlations.py