Saving and fetching from redis #9577
-
Hi friends, I am creating an nlp named entity recognizer, i am saving this model to redis cache and then i am trying to retrieve from the redis cache.
However i have an issue the model returned from the cache does not work. By does not work i mean when it retrieves from the cache it does not recognise any entities. But the initial time (not using cache) it does recognize entities. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Sorry you're having trouble with this. It's a little confusing, but just using |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Sorry you're having trouble with this. It's a little confusing, but just using
to_bytes
/from_bytes
on aLanguage
won't work - you need to do some other setup first to handle serializing the whole pipeline. This is documented here.