code: def convert_text_to_rouge_format(text, title="dummy title"):
          
          sentences = text.split("\n")
          sent_elems = [
              "<a name=\"{i}\">[{i}]</a> <a href=\"#{i}\" id={i}>"
              "{text}</a>".format(i=i, text=sent)
              for i, sent in enumerate(sentences, start=1)]
          html = """<html>
  <head>
  <title>{title}</title>
  </head>
  <body bgcolor="white">
  {elems}
  </body>
  </html>""".format(title=title, elems="\n".join(sent_elems))
  
          return html
docs: Convert a text to a format ROUGE understands. The text is
          assumed to contain one sentence per line.
  
              text:   The text to convert, containg one sentence per line.
              title:  Optional title for the text. The title will appear
                      in the converted file, but doesn't seem to have
                      any other relevance.
  
          Returns: The converted text as string.