Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with underscore when using RegexTokenizer() #40

Open
ajolles-kenshoo opened this issue Mar 18, 2018 · 1 comment
Open

Problem with underscore when using RegexTokenizer() #40

ajolles-kenshoo opened this issue Mar 18, 2018 · 1 comment

Comments

@ajolles-kenshoo
Copy link

Hello,
here is an issue I'm facing when using RegexTokenizer:
When using RegexTokenizer in Spark pipeline, jpmml-sparkml allows two types of patterns:
"\s+" and "\W+".
When using "\W+" with gaps=True, it removes non alphanumerical characters, but also underscores ("_") are not removed.
However, in the case when underscores appear in the text, the function toPMMLBytes returns an error which is related to the underscore.
So it looks like underscores can not be removed, but also can't be left inside.

Thanks

@vruusmann
Copy link
Member

The function toPMMLBytes returns an error which is related to the underscore.

Can you paste this error here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants