Postprocessing
- class rupsycho.postprocessing.PostprocessingPipeline(config_file_path, results_file_patterns, cleaner, validator, judge, output_path='processed_results.csv')[source]
Bases:
object
A pipeline for postprocessing experiment results by cleaning responses, validating them, and determining the best answer option.
This class loads CSV files matching specified patterns, applies text cleaning, validation, and judgment processes, and then saves the processed results.
- config_file_path
Path to the JSON configuration file defining the experiment structure.
- Type:
str
- results_file_patterns
List of file patterns to locate result CSVs.
- Type:
list
- cleaner
An instance of a cleaner that preprocesses text responses.
- Type:
object
- validator
An instance of a validator that determines the validity of responses.
- Type:
object
- judge
An instance of a judge that selects the best answer option.
- Type:
object
- output_path
Path where the processed results CSV will be saved.
- Type:
str