Popular topics
不好意思,编了一个类似检索的程序,目前输出遇到了问题。想请教一下。比如说我有两个输出文件,a和b,内容分别如下a的内容为##2There are 2 entities.##1There is 1 entity.b的内容为##2Tomorrow is another day.##1What a nice day!我现在要把这两个文件合并成一个文件,输出为##2There are 2 entities.Tomorrow is another day.##1There is 1 entity.What a nice day!也就是说,读取两个文件,遇到##2的话就把##2下面的句子提取出来放到一起,然后所有的##2下面的句子处理完了之后,再找到##1下面的句子放到一起。如果用perl的话,怎么来实现?...
1 Reply
Last Reply