从IEEE上下载的大量文献信息中提取文献名称

import re


def match_lines_starting_with(input_text,  specified_letter):
    # 使用正则表达式匹配行首两个字母与指定字母相同的行
    pattern = re.compile(r'^' + re.escape(specified_string[:2]))

    # 将输入文本按行切分
    lines = input_text.split('\n')

    # 打印匹配的行
    for line in lines:
        if pattern.match(line):
            print(line)
            matches.append(line)


def clean_ieee_literature_data(input_file, output_file, specified_letter):
    with open(input_file, 'r', encoding='utf-8') as file:
        data = file.read()

    match_lines_starting_with(data, specified_letter)

    # 将清洗后的数据写入新文件
    with open(output_file, 'w', encoding='utf-8') as file:
        file.writelines('\n'.join(matches))


# 示例用法
matches = []
specified_string = 'TI'
clean_ieee_literature_data('1.txt', 'output.txt', specified_string)

  • 13
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
基于图像的文本提取技术是计算机视觉领域的一个重要研究方向,其主要目的是从图像自动提取出文本信息。以下是国内外相关研究现状和部分参考文献: 1. 基于局部特征的文本检测方法:该方法主要通过识别图像的局部文本区域来实现文本检测。相关研究包括: - Epshtein, B., Ofek, E., & Wexler, Y. (2010). Detecting text in natural scenes with stroke width transform. In Computer Vision and Pattern Recognition (CVPR), 2010 IEEE Conference on (pp. 2963-2970). IEEE. - Neumann, L., & Matas, J. (2012). Real-time scene text localization and recognition. In Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on (pp. 3538-3545). IEEE. 2. 基于深度学习的文本检测方法:该方法主要基于深度学习技术,通过训练神经网络实现文本检测。相关研究包括: - Jaderberg, M., Simonyan, K., Vedaldi, A., & Zisserman, A. (2014). Deep structured output learning for unconstrained text recognition. In International Conference on Learning Representations (ICLR). - He, W., Zhang, X. Y., Yin, F., & Liu, C. L. (2016). Deep direct regression for multi-oriented scene text detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 745-753). 3. 基于文本识别的文本提取方法:该方法主要通过对已检测出的文本进行识别,从而实现文本提取。相关研究包括: - Novikova, T., & Kuznetsova, A. (2012). Text detection and recognition in real-world images. Pattern Recognition and Image Analysis, 22(1), 5-17. - Wang, K., Babenko, B., & Belongie, S. (2011). End-to-end scene text recognition. In International Conference on Computer Vision (ICCV) (pp. 1457-1464). 参考文献: - Shi, B., Bai, X., & Yao, C. (2016). An end-to-end trainable neural network for image-based sequence recognition and its application to scene text recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(11), 2298-2304. - Li, Z., Zhang, C., & Liu, X. (2019). Text detection and recognition in natural scenes: A comprehensive survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(1), 223-251. - Karatzas, D., Gomez-Bigorda, L., Nicolaou, A., Ghosh, S., Bagdanov, A. D., Iwamura, M., ... & Lu, S. (2015). ICDAR 2015 competition on robust reading. In Document Analysis and Recognition (ICDAR), 2015 13th International Conference on (pp. 1156-1160). IEEE. - Wang, T., Huang, S., & Wu, Z. (2018). Detecting oriented text in natural images by linking segments. IEEE Transactions on Image Processing, 27(8), 3792-3803.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不食人间烟火sweet

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值