Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8118#discussion_r38171501
  
    --- Diff: python/pyspark/ml/feature.py ---
    @@ -819,6 +819,75 @@ class StringIndexerModel(JavaModel):
         """
     
     
    +class StopWordsRemover(JavaTransformer, HasInputCol, HasOutputCol):
    +    """
    +    .. note:: Experimental
    +
    +    A feature transformer that filters out stop words from input.
    +    Note: null values from input array are preserved unless adding null to 
stopWords explicitly.
    +    """
    +    # a placeholder to make the stopwords show up in generated doc
    +    stopWords = Param(Params._dummy(), "stopWords", "The words to be 
filtered out")
    +    caseSensitive = Param(Params._dummy(), "caseSensitive", "whether to do 
a case sensitive " +
    +                          "comparison over the stop words")
    +
    +    @keyword_only
    +    def __init__(self, inputCol=None, outputCol=None, stopWords=None,
    +                 caseSensitive=False):
    +        """
    +        __init__(self, inputCol=None, outputCol=None, stopWords=None,
    +                 caseSensitive=false)
    +        """
    +        super(StopWordsRemover, self).__init__()
    +        self._java_obj = 
self._new_java_obj("org.apache.spark.ml.feature.StopWordsRemover",
    +                                            self.uid)
    +        self.stopWords = Param(self, "stopWords", "The words to be 
filtered out")
    +        self.caseSensitive = Param(self._dummy(), "caseSensitive", 
"whether to do a case " +
    --- End diff --
    
    `self._dummy()` -> `self`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to