This directory provides scripts and utilities to perform inference (predictions) on the RaLEs tasks using trained models.
-
inference.py: used for Stanza NER dataset.
- Usage:
python inference.py --model_path [path_to_trained_model] --dataset_name [name_of_dataset] --data_split [train_val_test] --output_type [score_or_logits] --output_dir [path_to_inference_results_output_file]
- Usage:
-
[inference_procedure_2.py]: used for MIMIC III protocoling dataset.
- Usage:
python inference.py --model_path [path_to_trained_model] --dataset_name [name_of_dataset] --data_split [train_val_test] --output_type [score_or_logits] --output_dir [path_to_inference_results_output_file]
- Usage:
-
scripts directory containing scripts used to evaluate best trained models for the original RaLEs benchmark.
-
radiologygpt Script for evaluating RadiologyGPT, see more details in here
-
Model Preparation: Ensure you have a trained model ready for inference. This could be a model you trained using the
fine_tuning
directory or a pre-trained model compatible with the RaLEs tasks. -
Data Preparation: Make sure your input data for inference is in the correct format as expected by the inference scripts. Remember you can find the appropriate data preparation instructions here.
-
Perform Inference: Use the provided scripts as described above to make predictions on your datasets of interest. The scripts will generate outputs (predictions) which can be further processed or analyzed as needed.