免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3006 | 回复: 8
打印 上一主题 下一主题

[文本处理] 如何用Cygwin提取txt中指定的词汇列表? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-02-16 21:19 |只看该作者 |倒序浏览
本帖最后由 humoryou 于 2013-02-16 21:21 编辑

本人不懂Cygwin,也不懂grep,awk和sed命令,这个请求对高手来说小菜一碟,有没有人帮我!

txt格式文本是从mdict词典——牛津双解词典中提取的,我想学习同等学力词汇,所以想把多余的词条去掉,只保留同等学力词汇列表中的词条!

我把相关文件都放在了115网盘上的【同等学力词库制作】文件夹内!oed-2是有人提取过一次的文本,从原来的30w词条减少到了1w,我想要的在2000+!用户名humoryou@hotmail.com 密码12345678

我的邮箱humoryou@hotmail.com或者278113410@qq.com

先谢谢了!
先谢谢了!
先谢谢了!
先谢谢了!

大家也可以看这个帖子:谁帮我从牛津双解词典中提取同等学历词汇做一个新词典?

论坛徽章:
0
2 [报告]
发表于 2013-02-16 22:00 |只看该作者
学习下。。

论坛徽章:
0
3 [报告]
发表于 2013-02-16 22:21 |只看该作者
回复 2# 独上阳台
谢谢支持

   

论坛徽章:
1
IT运维版块每日发帖之星
日期:2015-12-16 06:20:00
4 [报告]
发表于 2013-02-16 23:29 |只看该作者
shell脚本运行的太慢,求一个awk的版本~

论坛徽章:
5
未羊
日期:2014-08-04 16:15:21天秤座
日期:2014-08-13 13:52:372015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:112015亚冠之浦和红钻
日期:2015-06-29 15:30:48
5 [报告]
发表于 2013-02-17 09:41 |只看该作者
  1. access
  2. <b>access</b><br><font color="red"><i>noun</i></font><br><ol style="margin:0 0 0.5em 1.5em;padding-left:0"><li>[mass noun]the means or opportunity to approach or enter a place<br>接近;进入;通路<br><font color="navy">the staircase gives access to the top floor.</font><br><font color="gray">楼梯一直通向顶楼。</font><br><font color="navy">wheelchair access.</font><br><font color="gray">轮椅通道。</font><br><font color="navy">[count noun]the building has a side access.</font><br><font color="gray">这座建筑有个侧门。</font><br>■the right or opportunity to use or benefit from something<br>使用机会;使用权<br><font color="navy">do you have access to a computer?.</font><br><font color="gray">你有机会用计算机吗?。</font><br><font color="navy">awards to help people <b>gain access to</b> training.</font><br><font color="gray">帮助人们获得培训机会的补贴。</font><br>■the right or opportunity to approach or see someone<br>探望权;探望机会<br><font color="navy">we were denied access to our grandson.</font><br><font color="gray">我们被剥夺了看望孙儿的权利。</font><br>■the action or process of obtaining or retrieving information stored in a computer's memory<br>(对计算机存储器的)访问,存取<br><font color="navy">this prevents unauthorized access or inadvertent deletion of the file.</font><br><font color="gray">这可防止未经许可访问或无意间删除文件。</font><br>■[as modifier]denoting broadcasting produced by minority and specialist interest groups, rather than by professionals<br>节目由少数人及专家兴趣小组而非专职人员制作的<br><font color="navy">access television.</font><br><font color="gray">节目由公众制作的电视。</font><br><li>[in sing.]an attack or outburst of an emotion<br>(情感)爆发,发作<br><font color="navy">I was suddenly overcome with <b>an access of</b> rage.</font><br><font color="gray">我突然怒火中烧。</font><br></ol><font color="red"><i>verb</i></font><br><font color="red"><i>[with obj.](</i>一般作<i> be accessed)</i></font><br><ol style="margin:0 0 0.5em 1.5em;padding-left:0"><li>(Computing)obtain, examine, or retrieve (data or a file)<br>(计算机)访问,存取(数据,文件)<br><li>approach or enter (a place)<br>接近,进入(某地)<br><font color="navy">single rooms have private facilities accessed via the balcony.</font><br><font color="gray">单人间配有可经阳台到达的独用卫生设施。</font><br></ol><b><font color="green" size="+1">语源</font></b><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>Middle English  (in the sense 'sudden attack of illness'): from Latin <i>accessus</i>, from the verb <i>accedere</i> 'to approach' (see accede) Sense 1is first recorded in the early 17th cent<br></ol>
  3. </>
  4. access charge
  5. <b>access charge</b><br><font color="red"><i>(</i>亦作<i> access fee)</i></font><br><font color="red"><i>noun</i></font><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>a charge made for the use of computer or local telephone-network facilities<br>(使用计算机或本地电话网络设施的)接入费,访问费<br></ol>
  6. </>
  7. access course
  8. <b>access course</b><br><font color="red"><i>noun</i></font><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>an educational course enabling those without traditional qualifications to become eligible for higher education<br>(为进入高等院校作准备的)进修课程<br></ol>
  9. </>
  10. access time
  11. <b>access time</b><br><font color="red"><i>noun</i></font><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>(Computing)the time taken to retrieve data from storage<br>(计算机)存取时间<br></ol>
  12. </>
  13. accident
  14. <b>accident</b><br><font color="red"><i>noun</i></font><br><ol style="margin:0 0 0.5em 1.5em;padding-left:0"><li>an unfortunate incident that happens unexpectedly and unintentionally, typically resulting in damage or injury<br>意外事故;不测事件<br><font color="navy">he had an accident at the factory.</font><br><font color="gray">他在工厂出了意外事故。</font><br><font color="navy">[mass noun]if you are unable to work owing to accident or sickness.</font><br><font color="gray">如果你由于意外或疾病而无法工作。</font><br>■a crash involving road or other vehicles, typically one that causes serious damage or injury<br>交通事故,车祸<br><font color="navy">four people were killed in a road accident.</font><br><font color="gray">四个人在一次道路交通事故中死亡。</font><br>■(informal)used euphemistically to refer to an incidence of incontinence, typically by a child or an animal<br>(非正式,婉)(尤指儿童或动物的)大便(或小便)失禁<br><li>an event that happens by chance or that is without apparent or deliberate cause<br>意外的事,偶然的事<br><font color="navy">the pregnancy was an accident.</font><br><font color="gray">这次怀孕是个意外。</font><br><font color="navy">it is no accident that Manchester has produced more than its fair share of professional comics.</font><br><font color="gray">曼彻斯特出了特别多的职业喜剧明星并非偶然。</font><br>■[mass noun]the working of fortune; chance<br>运气;机遇<br><font color="navy">I opened it by accident.</font><br><font color="gray">我是碰巧把它打开的。</font><br><font color="navy">members belong to the House of Lords through hereditary right or accident of birth.</font><br><font color="gray">成员因世袭或出生的造化而成为上议院议员。</font><br><li>(Philosophy)(in Aristotelian thought) a property of a thing which is not essential to its nature<br>(哲)(亚里士多德思想中的)非本质属性<br></ol><b><font color="green" size="+1">常用词组</font></b><br><b>accident and emergency</b><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>(Brit.)denoting a hospital department concerned with the provision of immediate treatment to people who are seriously injured in an accident or who are suddenly taken seriously ill<br>(英)急诊室<br></ol><b>an accident waiting to happen</b><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>(informal)a potentially disastrous situation, typically caused by negligent or faulty procedures<br>(非正式)(尤指由于疏忽大意或程序错误而造成的)隐患<br>■a person certain to cause trouble<br>迟早会惹麻烦的人<br></ol><b>accidents will happen in the best regulated families</b><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>(proverb)however careful you try to be, it is inevitable that some unfortunate or unforeseen events will occur<br>(谚)家规再严,事端难免<br><font color="navy">problems like these should not occur, but accidents will happen.</font><br><font color="gray">这类问题不应出现,但保不定会有意外的。</font><br></ol><b>without accident</b><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>safely<br>安全地<br><font color="navy">he was able to stop the train without accident.</font><br><font color="gray">他能安全地停住火车。</font><br></ol><b><font color="green" size="+1">语源</font></b><br><ol style="margin:0 0 0.5em 1em;padding-left:0;list-style-type:none"><li>late Middle English  (in the general sense 'an event'): via Old French from Latin <i>accident-</i> 'happening', from the verb <i>accidere</i>, from <i>ad-</i> 'towards, to' + <i>cadere</i> 'to fall'<br></ol>
  15. </>
复制代码
随便拿几个单词问问LZ,从哪里能看出来是同等力学的或者不是同等力学的呢?

论坛徽章:
0
6 [报告]
发表于 2013-02-17 19:22 |只看该作者
dn833 发表于 2013-02-17 09:41
随便拿几个单词问问LZ,从哪里能看出来是同等力学的或者不是同等力学的呢?


我把相关文件都放在了115网盘上的【同等学力词库制作】文件夹内!同等学力词汇列表也在其中!

论坛徽章:
5
未羊
日期:2014-08-04 16:15:21天秤座
日期:2014-08-13 13:52:372015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:112015亚冠之浦和红钻
日期:2015-06-29 15:30:48
7 [报告]
发表于 2013-02-17 20:49 |只看该作者
我的意思是说,那个oed-2里有N多的单词,用神马标准来判断到底需要哪个,不需要哪个

论坛徽章:
0
8 [报告]
发表于 2013-02-17 21:19 |只看该作者
dn833 发表于 2013-02-17 20:49
我的意思是说,那个oed-2里有N多的单词,用神马标准来判断到底需要哪个,不需要哪个


需要的词条是和“2013同等学力考试英语大纲核心词汇表(第六版).txt”中完全一致的词条,比如
able
able-bodied
able seaman
三个词条,如果“2013同等学力考试英语大纲核心词汇表(第六版).txt”中有able和able seaman,没有able-bodied,那么,前两个就是要的,余下的就要舍弃!

论坛徽章:
0
9 [报告]
发表于 2013-02-17 21:24 |只看该作者
本帖最后由 humoryou 于 2013-02-17 21:24 编辑

有人已经帮我提取好了,非常谢过!

能不能教教我怎么提取啊!想学会,以后提取是用的着!

把代码贴上来,加上解释,我能生搬硬套就行!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP