class_docstr: BigPatent datasets.
class_docstr_tok: ["BigPatent","datasets","."]
docstr: Build PCollection of examples.
docstr_tok: ["Build","PCollection","of","examples","."]
code: def _build_pcollection(self, pipeline, path=None):
      """Build PCollection of examples."""
      beam = tfds.core.lazy_imports.apache_beam
  
      def _process_example(row):
          json_obj = json.loads(row)
          yield json_obj["publication_number"], {
              _DOCUMENT: _bigpatent_clean_description(
                  json_obj[_DOCUMENT]
              ),
              _SUMMARY: _bigpatent_clean_abstract(json_obj[_SUMMARY]),
          }
  
      file_pattern = os.path.join(
          path, self.builder_config.cpc_codes, "*"
      )
      return (
          pipeline
          | "ReadTextIO" >> beam.io.textio.ReadFromText(file_pattern)
          | beam.FlatMap(_process_example)
      )
  
imports: import json
  import os
  import re
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._build_pcollection(pipeline, path) and returns: unknown