diff --git a/ppocr/postprocess/rec_postprocess.py b/ppocr/postprocess/rec_postprocess.py index 164dec557a672842df868e2f6a01fc0fbc3e4946..8426bcf2b9a71e0293d912e25f1b617fd18c59fc 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['