simon376 / ds-recommender-project

goodreads-based book recommendation system, created for class "data science"
0 stars 0 forks source link

Fix TextVectorization Serialization #16

Open simon376 opened 2 years ago

simon376 commented 2 years ago

re-using precomputed vocabulary does not work:

ValueError: Exception encountered when calling layer "textvectorization_review_text_0" (type TextVectorization).

When using TextVectorization to tokenize strings, the input rank must be 1 or the last shape dimension must be 1. Received: inputs.shape=(None, None) with rank=2

Call arguments received: • inputs=tf.Tensor(shape=(None, None), dtype=string)

simon376 commented 2 years ago

see #10 #4