Module ID: infer_email_intent Module Namespace: morpheus_spear_phishing
Infers an ‘intent’ for a given email body.
Parameter |
Type |
Description |
Example Value |
Default Value |
---|---|---|---|---|
|
string |
The intent for the model |
“classify” |
|
|
string |
The task for the model |
“text-classification” |
|
|
string |
The path to the model |
“/path/to/model” |
|
|
boolean |
If true, truncates inputs to max_length |
true |
|
|
integer |
Maximum length for model input |
512 |
|
|
integer |
The size of batches for processing |
256 |
|
|
string |
The feature column to use |
“body” |
|
|
string |
The label column to use |
“label” |
|
|
integer |
The device to run on |
0 |
|
|
boolean |
If true, raise exceptions on failures |
false |
|
{
"intent": "classify",
"task": "text-classification",
"model_path": "/path/to/model",
"truncation": true,
"max_length": 512,
"batch_size": 256,
"feature_col": "body",
"label_col": "label",
"device": 0,
"raise_on_failure": false
}