Commit ·
b8df0fa
1
Parent(s): e0aa1d4
Edit error parameters in inference_lstm.py
Browse files- inference_lstm.py +1 -1
inference_lstm.py
CHANGED
|
@@ -24,7 +24,7 @@ if __name__ == "__main__":
|
|
| 24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 25 |
|
| 26 |
# Prepare data
|
| 27 |
-
tokenizer = LSTMTokenizer(
|
| 28 |
test_dataset, _, _, vocab_size = prepare_lstm_data(args.data_path,
|
| 29 |
text_col=args.text_column,
|
| 30 |
label_col=args.label_column,
|
|
|
|
| 24 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 25 |
|
| 26 |
# Prepare data
|
| 27 |
+
tokenizer = LSTMTokenizer(max_seq_length=args.max_seq_length)
|
| 28 |
test_dataset, _, _, vocab_size = prepare_lstm_data(args.data_path,
|
| 29 |
text_col=args.text_column,
|
| 30 |
label_col=args.label_column,
|