博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
文本合并行处理
阅读量:2241 次
发布时间:2019-05-09

本文共 1810 字,大约阅读时间需要 6 分钟。

在复制pdf一段文字时,由于格式原因,变成'豆腐块',如下所示.

再进行应用(百度翻译)时比较麻烦.

 The dataset is recorded using a time-of-flight
Intel Creative Interactive Gesture Camera and has
J = 16 annotated joints. Although the authors pro-
vide different artificially rotated training samples, we
only use the genuine 22k. The depth images have
a high quality with hardly any missing depth val-
ues, and sharp outlines with little noise. However,
the pose variability is limited compared to the NYU
dataset. Also, a relatively large number of samples
both from the training and test sets are incorrectly
annotated: We evaluated the accuracy and about 36%
of the poses from the test set have an annotation error
of at least 10 mm.

写了一小段python,对文本进行并行处理

def main():    with open('a.md', 'r+') as obj:        lines = obj.readlines()        strr = ''        for line in lines:            line = line.rstrip()            if len(line)==0:                pass            elif line[-1] == '-':                strr += line[:-1]            else:                strr += line+' '        obj.write(strr)    obj.close()if __name__ == '__main__':    main()

此处'a.md'是ubuntu下随便起的文件名称.(Windows可以改为'a.txt')

注意要把py文件和md文件放在一个文件夹下.

处理后结果:

 The dataset is recorded using a time-of-flight Intel Creative Interactive Gesture Camera and has J = 16 annotated joints. Although the authors provide different artificially rotated training samples, we only use the genuine 22k. The depth images have a high quality with hardly any missing depth values, and sharp outlines with little noise. However, the pose variability is limited compared to the NYU dataset. Also, a relatively large number of samples both from the training and test sets are incorrectly annotated: We evaluated the accuracy and about 36% of the poses from the test set have an annotation error of at least 10 mm. 

转载地址:http://xprbb.baihongyu.com/

你可能感兴趣的文章
Git 分支 - 分支的新建与合并
查看>>
git创建与合并分支
查看>>
23种设计模式介绍以及在Java中的实现
查看>>
如何把本地项目上传到Github
查看>>
Git的使用--如何将本地项目上传到Github
查看>>
zookeeper客户端命令行查看dubbo服务的生产者和消费者
查看>>
intellij idea 相关搜索快捷键
查看>>
oracle查看数据库连接池中最大连接数和当前用户连接数等信息
查看>>
oracle中创建同义词(synonyms)表
查看>>
建立DB-LINK和建立视图
查看>>
普通视图和物化视图的区别(转)
查看>>
物化视图加DBLINK实现数据的同步_20170216
查看>>
Redis在京东到家的订单中的使用
查看>>
idea 注释模板设置
查看>>
单例模式singleton为什么要加volatile
查看>>
Oracle_spatial的空间操作符
查看>>
SDO_GEOMETRY结构说明
查看>>
oracle 的 SDO_GEOMETRY
查看>>
往oracle中插入geometry的两种方式
查看>>
Oracle Spatial中的Operator操作子 详细说明
查看>>