class_docstr: English CNNDM summarization dataset.
class_docstr_tok: ["English","CNNDM","summarization","dataset","."]
docstr: Dataset spec, which should match the model"s input_spec().
docstr_tok: ["Dataset","spec",",","which","should","match","the","model","''","s","input_spec","(",")","."]
code: def spec(self) -> lit_types.Spec:
      """Dataset spec, which should match the model"s input_spec()."""
      return {
          "document": lit_types.TextSegment(),
          "reference": lit_types.TextSegment(),
      }
  
file_path: lit/lit_nlp/examples/datasets/summarization.py
imports: from typing import Optional
  from lit_nlp.api import dataset
  from lit_nlp.api import types
  from lit_nlp.lib import file_cache
  import pandas
  import tensorflow_datasets
label_desc: Use image node_id 4 for calling the CNNDMData obj's underlying member method code with example usage: obj.spec() and returns: dict