Pipeline: change regex for tabular detection
@@ -112,8 +112,8 @@ class SentenceExtractor(EntityExtractor):
)
abstract_begin = regex.findall(r"\\begin\{abstract\}", context_tex)
abstract_end = regex.findall(r"\\end\{abstract\}", context_tex)
- table_begin = regex.findall(r"\\begin\{table[*]*\}", context_tex)
- table_end = regex.findall(r"\\end\{table[*]*\}", context_tex)
+ table_begin = regex.findall(r"\\begin\{tabular\}", context_tex)
+ table_end = regex.findall(r"\\end\{tabular\}", context_tex)
figure_begin = regex.findall(r"\\begin\{figure[*]*\}", context_tex)
figure_end = regex.findall(r"\\end\{figure[*]*\}", context_tex)
itemize_begin = regex.findall(r"\\begin\{itemize[*]*\}", context_tex)
