Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8169

Add StopWordsRemover as a transformer

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • ML
    • None

    Description

      StopWordsRemover takes a string array column and outputs a string array column with all defined stop words removed. The transformer should also come with a standard set of stop words as default.

      val stopWords = new StopWordsRemover()
        .setInputCol("words")
        .setOutputCol("cleanWords")
        .setStopWords(Array(...)) // optional
      val output = stopWords.transform(df)
      

      Attachments

        Issue Links

          Activity

            People

              yuhaoyan yuhao yang
              mengxr Xiangrui Meng
              Xiangrui Meng Xiangrui Meng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: