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

    https://github.com/apache/spark/pull/8118#discussion_r38061775
  
    --- Diff: python/pyspark/ml/feature.py ---
    @@ -818,6 +818,76 @@ class StringIndexerModel(JavaModel):
         Model fitted by StringIndexer.
         """
     
    +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 " +
    +                                   "sensitive comparison over the stop 
words")
    +        stopWordsObj = _jvm().org.apache.spark.ml.feature.StopWords
    +        defaultStopWords = stopWordsObj.ENGLISH_STOP_WORDS()
    +        print "Constructing java param pair for value 
"+str(defaultStopWords)
    --- End diff --
    
    oh no, I was checking the type when debugging something


---
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