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

Support for HashingTFModel #74

Closed
avisheknag17 opened this issue Aug 14, 2019 · 1 comment
Closed

Support for HashingTFModel #74

avisheknag17 opened this issue Aug 14, 2019 · 1 comment

Comments

@avisheknag17
Copy link

Hi,

I didn't find support for HashingTF. I need to do TF-IDF transformation for text
I am getting this exception:

Traceback (most recent call last):
File "/opt/spark-2.2.1-master/bin/enclosures_pyspark_model.py", line 125, in
build_and_train_model()
File "/opt/spark-2.2.1-master/bin/enclosures_pyspark_model.py", line 121, in build_and_train_model
pmmlBuilder.buildFile("enclosures_pyspark_model.pmml")
File "/Users/avnag/Library/Python/2.7/lib/python/site-packages/pyspark2pmml/init.py", line 27, in buildFile
javaFile = self.javaPmmlBuilder.buildFile(javaFile)
File "/opt/spark-2.2.1-master/python/lib/py4j-0.10.4-src.zip/py4j/java_gateway.py", line 1133, in call
File "/opt/spark-2.2.1-master/python/lib/pyspark.zip/pyspark/sql/utils.py", line 79, in deco
pyspark.sql.utils.IllegalArgumentException: u'Transformer class org.apache.spark.ml.feature.HashingTF is not supported'

@vruusmann vruusmann transferred this issue from jpmml/pyspark2pmml Aug 14, 2019
@vruusmann
Copy link
Member

Duplicate of #20

@vruusmann vruusmann marked this as a duplicate of #20 Aug 14, 2019
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