Open 1jamesthompson1 opened 11 months ago
Not solved as still having problems
i.e
uting factor to the derailment in the document (4.1.3-4.4.15, 5.1-5.4). No references found No refrences in this theme: Emergency Response Preparedness to validate. Traceback (most recent call last): File "
", line 1, in File "/home/james/code/TAIC-report-summary/engine/cli.py", line 104, in cli summarize(engine_settings.get('output'), File "/home/james/code/TAIC-report-summary/engine/cli.py", line 49, in summarize modes, refresh).summarize_reports() File "/home/james/code/TAIC-report-summary/engine/Extract_Analyze/Summarizer.py", line 135, in summarize_reports self.report_reader.process_reports(self.summarize_report, self.modes) File "/home/james/code/TAIC-report-summary/engine/Extract_Analyze/OutputFolderReader.py", line 59, in process_reports self._read_file_from_each_report_dir(self.output_config.get("reports").get("text_file_name"), processing_function, lambda report_id: Modes.get_report_mode_from_id(report_id) in modes) File "/home/james/code/TAIC-report-summary/engine/Extract_Analyze/OutputFolderReader.py", line 50, in _read_file_from_each_report_dir processing_function(report_id, report_text) File "/home/james/code/TAIC-report-summary/engine/Extract_Analyze/Summarizer.py", line 159, in summarize_report summary = self.summarize_text(text_to_be_summarized, Modes.get_report_mode_from_id(report_id)) File "/home/james/code/TAIC-report-summary/engine/Extract_Analyze/Summarizer.py", line 276, in summarize_text result = referenceCheckor.validate_references(theme['explanation']) File "/home/james/code/TAIC-report-summary/engine/Extract_Analyze/ReferenceChecking.py", line 174, in validate_references processed_reference = self._validate_reference(reference, True) File "/home/james/code/TAIC-report-summary/engine/Extract_Analyze/ReferenceChecking.py", line 235, in _validate_reference source_sections = list(map(lambda reference: reportExtractor.extract_section(reference), reference.reference)) TypeError: 'NoneType' object is not iterable
Problem
There seems to be a problem that sometimes when tryingto check a citation it crashes as a nontype is non interatble.
Ideas and suggestions
Links and references
Hre is the error message: