From 6e03b3de14964c3a3b095fb04d2f04b7e7bf8014 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Thu, 10 Jun 2021 17:29:23 +0800 Subject: [PATCH] del unused params --- ppocr/postprocess/rec_postprocess.py | 18 ------------------ ppstructure/table/predict_structure.py | 3 --- ppstructure/utility.py | 3 --- 3 files changed, 24 deletions(-) diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index 164dec55..8426bcf2 100644 --- a/ppocr/postprocess/rec_postprocess.py +++ b/ppocr/postprocess/rec_postprocess.py @@ -325,14 +325,8 @@ class TableLabelDecode(object): """ """ def __init__(self, - max_text_length, - max_elem_length, - max_cell_num, character_dict_path, **kwargs): - self.max_text_length = max_text_length - self.max_elem_length = max_elem_length - self.max_cell_num = max_cell_num list_character, list_elem = self.load_char_elem_dict(character_dict_path) list_character = self.add_special_char(list_character) list_elem = self.add_special_char(list_elem) @@ -369,18 +363,6 @@ class TableLabelDecode(object): list_character = [self.beg_str] + list_character + [self.end_str] return list_character - def get_sp_tokens(self): - char_beg_idx = self.get_beg_end_flag_idx('beg', 'char') - char_end_idx = self.get_beg_end_flag_idx('end', 'char') - elem_beg_idx = self.get_beg_end_flag_idx('beg', 'elem') - elem_end_idx = self.get_beg_end_flag_idx('end', 'elem') - elem_char_idx1 = self.dict_elem[''] - elem_char_idx2 = self.dict_elem['