lensacom/sparkit-learn

TypeError: 'Broadcast' object is unsubscriptable

mrshanth opened this issue · 2 comments

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

Could You paste the whole stack trace?

Closed due to inactivity.