Traceback (most recent call last):


 "tst.py", line 14, in <module>

pickle.dump(tokenizer, out)
AttributeError: Can't pickle local object 'VectorizerMixin.build_tokenizer.<locals>.<lambda>'

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/Users/<username>/miniconda3/envs/testenv/lib/python3.7/site-packages/tensorflow_addons/__init__.py", line 21, in <module>

from tensorflow_addons import activations


 "/Users/<username>/miniconda3/envs/testenv/lib/python3.7/site-packages/tensorflow_addons/activations/__init__.py", line 22, in <module>

from tensorflow_addons.activations.rrelu import rrelu


 "/Users/<username>/miniconda3/envs/testenv/lib/python3.7/site-packages/tensorflow_addons/activations/rrelu.py", line 28, in <module>

rng: Optional[tf.random.Generator] = None,
AttributeError: module 'tensorflow_core._api.v2.random' has no attribute 'Generator'
