From 8d8bf517b944085f69ab8e93fe17d828995edd0f Mon Sep 17 00:00:00 2001 From: Kai Labusch Date: Tue, 12 Nov 2024 14:46:57 +0100 Subject: [PATCH] remove spam --- qurator/tsvtools/cli.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qurator/tsvtools/cli.py b/qurator/tsvtools/cli.py index ca9c526..901ac49 100644 --- a/qurator/tsvtools/cli.py +++ b/qurator/tsvtools/cli.py @@ -346,13 +346,6 @@ def tsv2tsv(tsv_in_file, tsv_out_file, ner_rest_endpoint, noproxy, prev_pos = 0 for idx, _ in tsv_out.iterrows(): - # if idx < len(tsv_out) and len(tsv_out.loc[idx, 'TOKEN']) == 0 and tsv_out.loc[idx+1, 'No.'] == 0: - # print("word_pos=0!!!!") - # word_pos = 0 - # - # if 0 < tsv_out.loc[idx, 'No.'] < word_pos: - # word_pos = 0 - if prev_pos != 0 and not tsv_out.loc[idx, 'NE-TAG'].startswith('I-') and \ tsv_out.loc[idx, 'No.'] == 0 or len(tsv_out.loc[idx, 'TOKEN']) == 0: word_pos = 0