Hey
I would want to restrict the output size by words/characters. Are there any methods?
I looked at max_length & max_tgt_len however they seem to not be working.
I set
recall_eval as False
max_length as 20
max_tgt_len as 20
min_length as 10
However the output remained of the constant size
Note: Using the below inference command ( Pre Trained CNN DM model Extractive )python src/train.py -task ext -mode test -test_from ./models/bertext.pt -batch_size 3000 -test_batch_size 500 -bert_data_path ./bert_path/ -log_file ./logs/val_abs_bert_cnndm -sep_optimtrue -use_interval true -visible_gpus -1 -max_pos 512 -max_length 20 -max_tgt_len 20 -alpha 0.95 -min_length 10 -result_path ./results/ -report_rouge false -recall_eval False
Hey I would want to restrict the output size by words/characters. Are there any methods? I looked at
max_length
&max_tgt_len
however they seem to not be working. I setrecall_eval
as Falsemax_length
as 20max_tgt_len
as 20min_length
as 10 However the output remained of the constant sizeNote: Using the below inference command ( Pre Trained CNN DM model Extractive )
python src/train.py -task ext -mode test -test_from ./models/bertext.pt -batch_size 3000 -test_batch_size 500 -bert_data_path ./bert_path/ -log_file ./logs/val_abs_bert_cnndm -sep_optimtrue -use_interval true -visible_gpus -1 -max_pos 512 -max_length 20 -max_tgt_len 20 -alpha 0.95 -min_length 10 -result_path ./results/ -report_rouge false -recall_eval False