Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Predict a label for each event in the table using the model that was created by the createModelFromText operator, which learns how to predict labels from a text.
...
Example
Input
table = github_logs
id | title | description |
---|---|---|
1 | a, b | h, i |
1 | a, x | u, v |
LQL: "lettersToUser" is model name that was created from the example section of create model from text .
...
Code Block |
---|
predictLabelFromText(table,"scoreEmail", "title", "description") |
Output
id | title | description | lhub_predicted_label |
---|---|---|---|
1 | a, b | h, i | spam |
1 | a, x | u, v | ham |