class_docstr: English CNNDM summarization dataset.
class_docstr_tok: ["English","CNNDM","summarization","dataset","."]
docstr: Loads the dataset from a CSV file.
  
  Args:
    path: The location of the CSV file.
    max_seq_len: The maximum length to load for any document in the dataset.
    skiplines: The number of lines to skip in the input file(s).
  
  Returns:
    The list of exmaples loaded from the file.
docstr_tok: ["Loads","the","dataset","from","a","CSV","file",".","Args",":","path",":","The","location","of","the","CSV","file",".","max_seq_len",":","The","maximum","length","to","load","for","any","document","in","the","dataset",".","skiplines",":","The","number","of","lines","to","skip","in","the","input","file","(","s",")",".","Returns",":","The","list","of","exmaples","loaded","from","the","file","."]
code: def load_datapoints(
      self, path: str, max_seq_len: int = 500, skiplines: int = 0
  ) -> list[lit_types.JsonDict]:
      """Loads the dataset from a CSV file.
  
      Args:
        path: The location of the CSV file.
        max_seq_len: The maximum length to load for any document in the dataset.
        skiplines: The number of lines to skip in the input file(s).
  
      Returns:
        The list of exmaples loaded from the file.
      """
      examples = []
      path = file_cache.cached_path(path)
      with open(path) as fd:
          df = pd.read_csv(fd, skiprows=skiplines)
      for _, row in df.iterrows():
          examples.append(
              {
                  "document": row["article"][-max_seq_len:],
                  "reference": row["highlights"],
              }
          )
      return examples
  
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 3 for calling the CNNDMData obj's underlying member method code with example usage: obj.load_datapoints(path, max_seq_len, skiplines) and returns: examples