spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiangrui Meng (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-8169) Add StopWordsRemover as a transformer
Date Sat, 01 Aug 2015 09:32:04 GMT

     [ https://issues.apache.org/jira/browse/SPARK-8169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiangrui Meng resolved SPARK-8169.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0

Issue resolved by pull request 6742
[https://github.com/apache/spark/pull/6742]

> Add StopWordsRemover as a transformer
> -------------------------------------
>
>                 Key: SPARK-8169
>                 URL: https://issues.apache.org/jira/browse/SPARK-8169
>             Project: Spark
>          Issue Type: New Feature
>          Components: ML
>    Affects Versions: 1.5.0
>            Reporter: Xiangrui Meng
>            Assignee: yuhao yang
>             Fix For: 1.5.0
>
>
> 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.
> {code}
> val stopWords = new StopWordsRemover()
>   .setInputCol("words")
>   .setOutputCol("cleanWords")
>   .setStopWords(Array(...)) // optional
> val output = stopWords.transform(df)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message