You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/06/08 22:53:00 UTC
[jira] [Created] (SPARK-8169) Add StopWordsRemover as a transformer
Xiangrui Meng created SPARK-8169:
------------------------------------
Summary: 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
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