Text Classification
Zero-Shot Classification
Translation
Summarization
CREATE MODEL
statement to bring the Hugging Face models to MindsDB.
Generally, it looks like this:
Expressions | Description |
---|---|
project_name | Name of the project where the model is created. By default, the mindsdb project is used. |
predictor_name | Name of the model to be created. |
target_column | Column to store the predicted values. |
engine | Optional. You can provide an ML engine, based on which the model is created. |
task | Optional. It is relative to the Hugging Face task tag. |
model_name | Model name from the Hugging Face model hub. |
input_column | Name of the column that has the input data, especially important for batch predictions using JOIN. |
labels | Depending on the model. Usually used for Zero-Shot Classification models. |
transformers==4.21.0
to be able to use the Hugging Face models.Expressions | Values |
---|---|
project_name | mindsdb |
predictor_name | spam_classifier |
target_column | PRED |
engine | huggingface |
task | text-classification |
model_name | mrm8488/bert-tiny-finetuned-sms-spam-detection |
input_column | text_spammy |
labels | [‘ham’, ‘spam’] |
spam_classifier
model.
complete
, we can query for predictions.
transformers==4.21.0
to be able to use the Hugging Face models.complete
, we can query for predictions.
Here is how to query for a single prediction:
mongo_test_db
database connected earlier in this example.