diff --git a/amrbatch/work_data.py b/amrbatch/work_data.py index 724a49b36b0cc767c41707b9a3a816510b607fe3..08b4fbb078e1f3e1573923f7f0b5421ec8caf281 100644 --- a/amrbatch/work_data.py +++ b/amrbatch/work_data.py @@ -54,6 +54,7 @@ class WorkData: # -- Sentence self.id_line_str = f'# ::id {self.reference}\n' clean_sentence = re.sub("(\.)*\\n", "", sentence) + clean_sentence = re.sub("(\.)*", "", clean_sentence) self.sentence = f'{clean_sentence}.' # -- Graph diff --git a/tests/test_amrbatch_main.py b/tests/test_amrbatch_main.py index bdf06f4cfad5beab99c33bec8e7f84c8ddb70dbc..7484c9480900cceaba8b67d49b4f1f1af1b4e4e9 100644 --- a/tests/test_amrbatch_main.py +++ b/tests/test_amrbatch_main.py @@ -26,13 +26,13 @@ from utility import file_cutter # -- Input Data # input_filename = f'08d1b73a-bdf5-4b54-8e6e-b96665f3c2fa.txt' -input_filename = f'test.txt' -# input_filename = f'SSC-ABSTRACT.txt' +# input_filename = f'test.txt' +input_filename = f'SSC-ABSTRACT.txt' input_filepath = f'{INPUT_DIR_PATH}{input_filename}' # -- Output references -base_output_name = f'Test' +base_output_name = f'SolarSystem' # f'Test' time_ref = f'{datetime.now().strftime("%Y%m%d")}' output_dirpath = f'{OUTPUT_DIR_PATH}{base_output_name}-{time_ref}/' os.makedirs(output_dirpath, exist_ok=True)