kunaldahiya / pyxclib

Tools for multi-label classification problems.
MIT License
126 stars 36 forks source link

error when run sparse_bow_features_from_raw_data.py #18

Closed Yudezhi closed 3 years ago

Yudezhi commented 3 years ago

df = np.zeros(vocabulary.len + 1) # +1 for OOV

when run to text.py, get error TypeError: unsupported operand type(s) for +: 'method-wrapper' and 'int'. Chaned vocabulary.len to vocabulary.len() but get another error.

run script: python sparse_bow_features_from_raw_data.py trn.json.gz tst.json.gz train.txt test.txt

kunaldahiya commented 3 years ago

Thanks for the note. Fixed in latest commit.

Yudezhi commented 3 years ago

Thanks. Things goes well now.