lensacom / sparkit-learn

PySpark + Scikit-learn = Sparkit-learn
Apache License 2.0
1.15k stars 255 forks source link

TypeError: 'Broadcast' object is unsubscriptable #34

Closed mrshanth closed 9 years ago

mrshanth commented 9 years ago

We are trying to create a Count Vector using SparkCountVectorizer. We are using Python 2.6.6, hence replaced all the dict_comprehensions in the code. We ran into this following error:

  File "base.py", line 19, in func_wrapper
    return func(*args, **kwargs)
  File "splearn_custom.py", line 176, in _count_vocab
    j_indices.append(vocabulary[feature])
TypeError: 'Broadcast' object is unsubscriptable

Here, splearn_custom.py refers to feature_extraction/text.py

Thanks in advance

kszucs commented 9 years ago

Could You paste the whole stack trace?

kszucs commented 9 years ago

Closed due to inactivity.