GitHub user hhbyyh opened a pull request:
https://github.com/apache/spark/pull/9092
[SPARK-11069] [ML] Add RegexTokenizer option to convert to lowercase
jira: https://issues.apache.org/jira/browse/SPARK-11069
quotes from jira:
Tokenizer converts strings to lowercase automatically, but RegexTokenizer
does not. It would be nice to add an option to RegexTokenizer to convert to
lowercase. Proposal:
call the Boolean Param "toLowercase"
set default to false (so behavior does not change)
Actually sklearn converts to lowercase before tokenizing too
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hhbyyh/spark tokenLower
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9092.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9092
----
commit ce09ef532f2ec633e508840097fd0ac1b5285284
Author: Yuhao Yang <[email protected]>
Date: 2015-10-13T07:14:55Z
add tolowercase to regexTokenizer
----
---
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]