DD0101 commited on
Commit
41bca58
1 Parent(s): 176f061

adding arguments to predict()

Browse files
Files changed (1) hide show
  1. Customized_IDSF/load_model.py +1 -1
Customized_IDSF/load_model.py CHANGED
@@ -120,7 +120,7 @@ def convert_input_file_to_tensor_dataset(
120
 
121
  return dataset
122
 
123
- def predict(text, pred_config, args, tokenizer, pad_token_label_id, model, device):
124
 
125
  lines = text
126
  dataset = convert_input_file_to_tensor_dataset(lines, pred_config, args, tokenizer, pad_token_label_id)
 
120
 
121
  return dataset
122
 
123
+ def predict(text, pred_config, args, tokenizer, pad_token_label_id, model, device, intent_label_lst, slot_label_lst):
124
 
125
  lines = text
126
  dataset = convert_input_file_to_tensor_dataset(lines, pred_config, args, tokenizer, pad_token_label_id)