# remove_bibliography_mapper Removes bibliography sections at the end of LaTeX documents. This operator identifies and removes bibliography sections in LaTeX documents. It uses a regular expression to match common bibliography commands such as \appendix, \begin{references}, \begin{thebibliography}, and \bibliography. The matched sections are removed from the text. The operator processes samples in batch mode for efficiency. 移除LaTeX文档末尾的参考文献部分。 该算子识别并移除LaTeX文档中的参考文献部分。它使用正则表达式匹配常见的参考文献命令,如\appendix、\begin{references}、\begin{thebibliography}和\bibliography。匹配的部分将从文本中删除。该算子以批量模式处理样本以提高效率。 Type 算子类型: **mapper** Tags 标签: cpu, text ## 🔧 Parameter Configuration 参数配置 | name 参数名 | type 类型 | default 默认值 | desc 说明 | |--------|------|--------|------| | `args` | | `''` | extra args | | `kwargs` | | `''` | extra args | ## 📊 Effect demonstration 效果演示 ### test_bibliography_case ```python RemoveBibliographyMapper() ``` #### 📥 input data 输入数据
["%%\n%% This is file `sample-sigconf.tex\\clearpage\n\\bibliographystyle{ACM-Reference-Format}\n\\bibliography{sample-base}\n\\end{document}\n\\endinput\n%%\n%% End of file `sample-sigconf.tex'.\n"]
['%%\n%% This is file `sample-sigconf.tex\\clearpage\n\\bibliographystyle{ACM-Reference-Format}\n']
["%%\n%% This is file `sample-sigconf.tex\\clearpage\n\\begin{references}\n\\end{document}\n\\endinput\n%%\n%% End of file `sample-sigconf.tex'.\n"]
['%%\n%% This is file `sample-sigconf.tex\\clearpage\n']