Github user Halawa13 commented on the issue:
https://github.com/apache/spark/pull/11871
Hello,
I'm new to programming pyspark, i have problem with this code
**from pyspark.ml.feature import StopWordsRemover
df = sc.createDataFrame([(0,["je", "suis", "malade", "comme", "la",
"dernierer"]),(1,["si", "non", "tu", "vas", "bien"])],["label", "raw"])
remover = StopWordsRemover(inputCol="raw", outputCol="filtered")
remover.transform(sentenceData).show(truncate=False)**
I want use "loadDefaultStopWords("french")" bat i don't now how use it.
I tried
remover.loadDefaultStopWords("french").transform(sentenceData).show(truncate=False)
:
It is not working
---
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]