keras-preprocessing
keras-preprocessing copied to clipboard
module 'keras preprocessing.text' has no attribute 'tokenizer from_json'
when I use python3.5, keras 2.2.4 and keras_preprocessing1.0.8, there is a error,
AttributeError: module 'keras preprocessing.text' has no attribute 'tokenizer from_json'
who can help me? Thanks
I am having the same issue, in the meantime you can just take the code from here: https://github.com/keras-team/keras-preprocessing/blob/master/keras_preprocessing/text.py#L488
How did you write the code? sometimes it can just be a simple syntax error.
I think the word 'tokenizer' should be expressed with capital 'T' as "Tokenizer".
Example:
tokenizer = keras.preprocessing.text.Tokenizer(char_level = True)