Closed marsupialtail closed 3 years ago
Strange, I am not getting the same error when I am running KeyBERT in Google Colab. Can you check if you have the newest version of KeyBERT?
pip install --upgrade keybert
If that does not work. Perhaps it would be best to create a new environment within Anaconda
and then run the code again.
Hello, this issue is still not solved, I am getting the same error despite 2 years passed.
@KTG1 Did you try installing KeyBERT from a completely fresh environment? There might be some issues with your installed dependencies.
Hey I am interested in trying out demo, but it gives error: doc = """ Supervised learning is the machine learning task of learning a function that maps an input to an output based on example input-output pairs.[1] It infers a function from labeled training data consisting of a set of training examples.[2] In supervised learning, each example is a pair consisting of an input object (typically a vector) and a desired output value (also called the supervisory signal). A supervised learning algorithm analyzes the training data and produces an inferred function, which can be used for mapping new examples. An optimal scenario will allow for the algorithm to correctly determine the class labels for unseen instances. This requires the learning algorithm to generalize from the training data to unseen situations in a 'reasonable' way (see inductive bias). """ model = KeyBERT('distilbert-base-nli-mean-tokens') keywords = model.extract_keywords(doc)
TypeError Traceback (most recent call last)