[共同参与][挑战传统][批处理:轻松译单词]
) 此贴为抛砖引玉,大家扩展思路,互动式共同参与批处理学习~:)
) [轻松译单词]
例如: E.Bat computer
结果: Computer 计算机
规则: 没有太多规则,
主要体现在让DOS批处理以更快捷的方式帮助我们更好生活!
让DOS批处理完成一些实用、且在命令行就能完成的查询工作--翻译不懂的单词。
纯DOS批处理的单词翻译系统目前国际上还没有(别问为什么,嘻嘻……),
纯DOS批处理的单词翻译来自于好玩、挑战、趣味、创新并最终落实为实用的想法,
跟我一起想像:
当我看到一些美丽的单词而我不懂它,于是我在DOS命令窗口中打个 e net回车,
系统提示我: net 网络 ,"噢!,明白了"!
2008奥运全民学英语,我们认为更要让单词翻译系统诞生在DOS批处理的脚本之下!
这将是献给奥运和 cn-dos.net 与所有DOS爱好者的最纯的礼物!它完全用批处理实现!
……某某报纸刊载一条消息:
某某某几位大侠,使用一种最原始的批处理开发了想都不敢想像的单词翻译系统……
我们把它当做挑战吧~:)
好的思路与优秀的算法只要实现了,用什么语言那都不是重要的事,它是一通百通的。
思考: 这最终是一个实现方法和算法的问题,很多单词翻译软件都要求极高的效率来检索单词。
如果拥有20万词汇,用 for /f ... 一条一条枚举可能出现的20万条记录这简直就是……
但是,如果单词以 A-Z 来划分成26个首字母的区域,
也就是将检索范围精确缩减到了一个较少的范围,在这个范围内还可以进行某种算法……
纯批处理开发的英文单词翻译系统对于DOS批处理外行或批处理半懂不懂的网友来说:
简直是不可能完成的任务!
实际上,这看上去我们给 %1 一个参数:“ Internet”,然后批处理代码自动翻译成:互联网
像是很简单的样子,实际上却一点也不简单:
最快速度的检索算法
要实现最快速度的检索算法是否还需要辅助标记?
这个标记如编码?如何利用批处理的一些特殊的地方与辅助标记来达到尽可能方便的检索?
几十万的词汇量的查找、定位、提取的挑战
这些可行吗?可行,我是在思考了几天之后并做了6万行for以及for..skip等简单测试后得出可行
的结论。
素材: 可以参考现成的词库等,一般均有以“单词 单词的翻译内容”等为基础的文本词库文件。
因为算法不一样,词库的格式也不一样,早期的单词翻译软件甚至都用上了foxpro现在的数据库
做检索。
(单词库我现在暂时没有,如有一定上传上来:)
(如果你找到,请让大家分享下载地址)
目的: 拓展思路、增加批处理兴趣、增加大家互动学习亲自动手玩、
通过我们大家不断的交互让批处理的使用让每个人都能参与共同进步:)
方向: 这只是其中一个内容,更多的内容需要网友们共同发现、版主支持:)
大家可以用任何异想天开的任何想法实现上面问题~:)
为什么要出现此贴: 只有互动每个人都参与,自己的水平才能提高更快。
将遇到问题时才问、平时不主动学习批处理的方式变成大家主动一步一步共同提高
:)
我们为创新!为创新这个新世界而活着!
奖励: 优秀的解题与不同思路的观点解题,由版主象神一样的指导、示范,
然后给大家加分奖励以示激励~:)
其它: 等待大家有更好想法和非常实用的互动学习与应用的题目,大家一起参与:)
===================================
上一期参考:[共同参与][挑战思路][批处理处理浮点运算]
http://www.cn-dos.net/forum/viewthread.php?tid=23568&fpage=1
希望我们每一天都为梦想而创新的生活!
感动: 经过数位版主与大侠的精心创造与开发,批处理解决了浮点运算,
并由版主与几位大侠创新的完成了理论上无限进位的算法机制,非常精彩!
获得: 我们在没有更多的类库或函数库的最原始最基础的环境下,
能够以算法和创新的想法来解决一些平时高级编程里只有函数才能完成的事!
理论上说:这些用最简单指令完成复杂的操作过程,就是卓越!
这种思路它可以应运到任何一种语言的开发上,并已经超越了那些普通程序员。
通过底层进位的模拟与合并计算以及计算结果插入浮点标置的方式,
早已超越了那些大多数离开了函数库或类库就活不下去的程序员们:)
===================================
以上的想法仅为一个好玩的创新的建议,它献给酷爱批处理的每一位爱好者~:)
===================================
词典转换工具 与 部分索引 的说明在 第 10楼 由 无奈何版主提供~:)
===================================
Last edited by redtek on 2006-10-10 at 23:56 ]
) This post is to spark inspiration. Everyone can expand their thinking and interactively participate in batch processing learning~:)
)
For example: E.Bat computer
Result: Computer Computer
Rules: There are not too many rules.
The main thing is to make DOS batch processing help us live better in a more efficient way!
Let DOS batch processing complete some practical query work that can be done in the command line - translating words we don't understand.
Currently, there is no pure DOS batch processing word translation system internationally (don't ask why, hehe...).
The pure DOS batch processing word translation comes from fun, challenge, interest, innovation and ultimately practical ideas.
Imagine with me:
When I see some beautiful words and I don't understand them, so I type e net in the DOS command window and press Enter,
The system prompts me: net Network, "Oh! I understand"!
In 2008, the whole people learn English for the Olympics. We think it is more important to have a word translation system born under the DOS batch processing script!
This will be the purest gift for the Olympics and cn-dos.net and all DOS enthusiasts! It is completely implemented with batch processing!
... A certain newspaper carried a news:
A few great experts, using a most primitive batch processing, developed an unimaginable word translation system...
Let's take it as a challenge~:)
Good ideas and excellent algorithms are only a matter of implementation. It doesn't matter what language is used. It is all-purpose.
Thinking: This is ultimately a problem of implementation methods and algorithms. Many word translation software require extremely high efficiency to retrieve words.
If there are 200,000 words, enumerating 200,000 possible records one by one with for /f... is simply...
However, if words are divided into 26 initial letter regions by A-Z,
that is, the retrieval range is precisely reduced to a smaller range, and some algorithms can be carried out within this range...
The English word translation system developed by pure batch processing is an impossible task for DOS batch processing outsiders or semi-knowledgeable batch processing netizens!
Actually, it seems that we give %1 a parameter: "Internet", and then the batch processing code automatically translates it into: Internet
It seems simple, but actually it is not simple at all:
The fastest retrieval algorithm
Do we need auxiliary marks to implement the fastest retrieval algorithm?
What is this mark like encoding? How to use some special places of batch processing and auxiliary marks to achieve as convenient retrieval as possible?
The challenge of searching, locating and extracting tens of thousands of vocabulary
Are these feasible? Feasible. I reached the conclusion of feasibility after thinking for a few days and doing simple tests of 60,000 lines of for and for..skip, etc.
Materials: You can refer to ready-made word banks, etc. Generally, there are text word bank files based on "word translation content of the word" and so on.
Because the algorithms are different, the formats of the word banks are also different. Early word translation software even used foxpro and now databases for retrieval.
(I don't have the word bank for the time being. If there is, I will upload it later:))
(If you find it, please let everyone share the download address)
Purpose: Expand thinking, increase interest in batch processing, increase everyone's interactive learning and hands-on play,
Through our continuous interaction, let everyone participate in the use of batch processing and make progress together~:)
Direction: This is only one of the contents. More contents need netizens to discover together and moderators to support~:)
Everyone can implement the above problems with any whimsical ideas~:)
Why this post appears: Only by interacting and everyone participating can one's level improve faster.
Change the way of only asking when encountering problems and not actively learning batch processing usually into everyone actively improving step by step together~:)
We are for innovation! We live for innovating this new world!
Reward: Excellent problem-solving and problem-solving with different ideas will be guided and demonstrated by the moderator like a god,
Then add points to everyone as an incentive~:)
Other: Waiting for everyone to have better ideas and very practical interactive learning and application topics, everyone to participate together~:)
====================================
Previous issue reference:
http://www.cn-dos.net/forum/viewthread.php?tid=23568&fpage=1
Hope that every day we live innovatively for our dreams!
Moved: After the careful creation and development of several moderators and experts, batch processing solved the floating-point operations,
And the moderators and several experts innovatively completed the theoretical infinite carry algorithm mechanism, which is very wonderful!
Gained: In the most primitive and basic environment without more class libraries or function libraries,
We can use algorithms and innovative ideas to solve some things that only functions can complete in ordinary advanced programming!
Theoretically speaking: These complex operation processes completed with the simplest instructions are excellent!
This idea can be applied to the development of any language, and has already surpassed those ordinary programmers.
Through the simulation and merging calculation of bottom-level carry and the way of inserting floating-point markers,
It has long surpassed those most programmers who can't live without function libraries or class libraries~:)
====================================
The above ideas are only a fun and innovative suggestion, and it is dedicated to every enthusiast who loves batch processing~:)
====================================
Explanation of the dictionary conversion tool and part of the index is provided by Moderator Wunaihe on floor 10~:)
====================================
Last edited by redtek on 2006-10-10 at 23:56 ]