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

Add StopWordsRemover as a transformer

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.0
    • Component/s: ML
    • Labels:
      None
    • Target Version/s:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: