<commit_before>from pyspark import keyword_only
from pyspark.ml.util import JavaMLReadable, JavaMLWritable
from pyspark.ml.wrapper import JavaTransformer
from pyspark.ml.param.shared import Param, Params, TypeConverters


class DocumentAssembler(JavaTransformer, JavaMLReadable, JavaMLWritable):

    inputCol = Param(Params._dummy(), "inputCol", "input column name.", typeConverter=TypeConverters.toString)
    outputCol = Param(Params._dummy(), "outputCol", "input column name.", typeConverter=TypeConverters.toString)
    idColName = Param(Params._dummy(), "idCol", "input column name.", typeConverter=TypeConverters.toString)
    metadataColName = Param(Params._dummy(), "metadataCol", "input column name.", typeConverter=TypeConverters.toString)

    @keyword_only
    def __init__(self):
        super(DocumentAssembler, self).__init__()
        self._java_obj = self._new_java_obj("com.johnsnowlabs.nlp.DocumentAssembler", self.uid)
        kwargs = self._input_kwargs
        self.setParams(**kwargs)

    @keyword_only
    def setParams(self):
        kwargs = self._input_kwargs
        return self._set(**kwargs)

    def setInputCol(self, value):
        return self._set(inputCol=value)<commit_msg>Correct param names in DocumentAssembler<commit_after>from pyspark import keyword_only
from pyspark.ml.util import JavaMLReadable, JavaMLWritable
from pyspark.ml.wrapper import JavaTransformer
from pyspark.ml.param.shared import Param, Params, TypeConverters


class DocumentAssembler(JavaTransformer, JavaMLReadable, JavaMLWritable):

    inputCol = Param(Params._dummy(), "inputCol", "input column name.", typeConverter=TypeConverters.toString)
    outputCol = Param(Params._dummy(), "outputCol", "input column name.", typeConverter=TypeConverters.toString)
    idCol = Param(Params._dummy(), "idCol", "input column name.", typeConverter=TypeConverters.toString)
    metadataCol = Param(Params._dummy(), "metadataCol", "input column name.", typeConverter=TypeConverters.toString)

    @keyword_only
    def __init__(self):
        super(DocumentAssembler, self).__init__()
        self._java_obj = self._new_java_obj("com.johnsnowlabs.nlp.DocumentAssembler", self.uid)
        kwargs = self._input_kwargs
        self.setParams(**kwargs)

    @keyword_only
    def setParams(self):
        kwargs = self._input_kwargs
        return self._set(**kwargs)

    def setInputCol(self, value):
        return self._set(inputCol=value)
{'fraction_non_alphanumeric': 0.10651372388365424, 'fraction_numerical': 0.0, 'mean_word_length': 4.773049645390071, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '777145', 'n_tokens_mistral': 725, 'n_tokens_neox': 716, 'n_words': 151}