Closed ggnicolau closed 2 years ago
I think you're doing something that's different.
This line of code gives TF-idf vectors to the universal sentence encoder, as opposed to the plain texts, which it indeed cannot handle.
pipe = make_pipeline(TfidfVectorizer(),
UniversalSentenceLanguage(variant='multi'),
umap.UMAP()
)
This should work though;
pipe = make_pipeline(
UniversalSentenceLanguage(variant='multi'),
umap.UMAP()
)
OMG sorry, obviously! Lack of attention! It works!
Hi. I'm providing the same type of data and using the same code as inside the Notebook of example and I'm getting this error. What could be wrong? I get the following error:
ValueError: You must give this preprocessor text as input.
. I tried to debug but couldn't find out how to solve it. Any clues what's going on?