code: def readDataset(
      self,
      spark,
      path,
      delimiter="|",
      outputPosCol="tags",
      outputDocumentCol="document",
      outputTextCol="text",
  ):
      # ToDo Replace with std pyspark
      """Reads the dataset from an external resource.
  
      Parameters
      ----------
      spark : :class:`pyspark.sql.SparkSession`
          Initiated Spark Session with Spark NLP
      path : str
          Path to the resource
      delimiter : str, optional
          Delimiter of word and POS, by default "|"
      outputPosCol : str, optional
          Name of the output POS column, by default "tags"
      outputDocumentCol : str, optional
          Name of the output document column, by default "document"
      outputTextCol : str, optional
          Name of the output text column, by default "text"
  
      Returns
      -------
      :class:`pyspark.sql.DataFrame`
          Spark Dataframe with the data
      """
      jSession = spark._jsparkSession
  
      jdf = self._java_obj.readDataset(
          jSession,
          path,
          delimiter,
          outputPosCol,
          outputDocumentCol,
          outputTextCol,
      )
      dataframe = self.getDataFrame(spark, jdf)
      return dataframe
  
imports: from sparknlp.internal import ExtendedJavaWrapper
label_desc: Use image node_id 2 for calling the POS obj's underlying member method code with example usage: obj.readDataset(spark, path, delimiter, outputPosCol, outputDocumentCol, outputTextCol) and returns: dataframe