class_docstr: Machine Comprehension API
class_docstr_tok: ["Machine","Comprehension","API"]
code: def paragraphs(valid, vocab_tuple, num_examples):
      paragraphs = []
      vocab_forward = vocab_tuple[0]
      for idx in range(num_examples):
          test_paragraph = [
              vocab_forward[ele] for ele in valid[idx][0] if ele != 0
          ]
          para_string = " ".join(map(str, test_paragraph))
          paragraphs.append(
              re.sub(r'\s([?.!,"](?:\s|$))', r"\1", para_string)
          )  # (?:\s|$))
      return paragraphs
  
imports: from __future__ import division
  from __future__ import print_function
  import os
  import re
  import zipfile
  from os import makedirs
  from random import shuffle
  import numpy
  import tensorflow
  from nlp_architect import LIBRARY_OUT
  from nlp_architect.api.abstract_api import AbstractApi
  from nlp_architect.utils.generic import license_prompt
  from nlp_architect.utils.io import download_unlicensed_file
  from .matchlstm_ansptr import MatchLSTMAnswerPointer
  from .mrc_utils import create_squad_training, max_values_squad, get_data_array_squad
label_desc: Use image node_id 4 for calling the MachineComprehensionApi obj's underlying member method code with example usage: obj.paragraphs(valid, vocab_tuple, num_examples) and returns: paragraphs