Comments (3)
The keywords 'Crack', 'Broken' and 'Breakage' were not learned by the model and therefore unknown to it. Probably those were all keywords for your class but can't be used to compute a label vector because they are unknown. This results in an error.
This could have different reasons. The simplest explanation is that you used capitalized keywords, but the model only knows words that are lowercase. In this case, just convert your keywords to lowercase.
Another explanation could be that the keywords don't appear in your training corpus or have a low frequency. In this case I suggest you try some different keywords or add some more training data that the model can learn those keywords.
from lbl2vec.
The unknown keywords are already skipped by default for computing the label vector. But when all keywords are unknown to the model, no keywords are left for label computation. This probably resulted in the error.
from lbl2vec.
Is it possible to skip those terms that aren't in the document?
from lbl2vec.
Related Issues (11)
- pip install doesnt work HOT 2
- Saved the trained model using pickle (and also using the lbl2vec save feature) and when I tried to load in a custom module, it gives the following error "No module named lbl2vec.sav"
- Lbl2TransformerVec(Lbl2Vec).predict_model_docs() stalls / lack of GPU utilization
- Lbl2TransformerVec - predict_model_docs() when clean_outliers=True creates Dimension out of range HOT 1
- Is it possible to use 2 words as keywords
- multiclass multilabel classification
- Localization possible ? HOT 2
- ValueError: cannot compute mean with no input HOT 6
- Multilingual? HOT 1
- Is paragraph classification possible?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lbl2vec.