g***j 发帖数: 1275 | 1 要写个程序, 涉及到dictionary, 需要查询某个词语是否在dictionary里面, 请问写这
样的程序怎么用dictionary? 需要我自己写个dictionary的class, 然后把一些测试的
词语放进去么?
有没有现有的dictionary的library可以用的? |
|
g*******a 发帖数: 31586 | 2 【 以下文字转载自 WaterWorld 讨论区 】
发信人: ldy (我不是老大爷), 信区: WaterWorld
标 题: 摆脱英汉词典的最好办法--使用student's dictionary & children's dictionary
发信站: BBS 未名空间站 (Wed Jun 26 16:42:18 2013, 美东)
要彻底摆脱汉语思维,就应该一切按照native speaker的语言学习方法来进行查字典的
活动。
如果要学的是美式英语,那么最好的步骤是这样:
遇到一个新词,首先查Merriam-Webster's Collegiate Dictionary,这是成年美国人
最常用最权威的词典。
如果看不懂解释里的词(非常可能),那么去查Macmillan Dictionary for Students
(MDS),这是一本80年代出版的为中学生使用的字典,虽然年代有些老,但绝对是同类
字典里质量最好的(本人在译文论坛详细研究过)
如果再看不懂,就要去查Macmillan Dictionary for Children (MDC),这是美国人给
自己的孩子买的... 阅读全帖 |
|
a*******y 发帖数: 1040 | 3 how will you implement dictionary for client . suppose data is stored in
database .you don't need to implement dictionary but explain entire
interaction and systems involved .
The interviewer was not interested in knowing how dictionary is internally
implemented . he was more interested in understanding bigger picture ie.
high level , eg.
i explained you will have ajax call from client page to fetch matching words
, explained arguments that i will pass in ajax , explained high level server
side ... 阅读全帖 |
|
p******r 发帖数: 122 | 4 【 以下文字转载自 Programming 讨论区 】
发信人: prettier (I know), 信区: Programming
标 题: 如何让python dictionary sorting 的速度变得很快?
发信站: BBS 未名空间站 (Fri Aug 26 23:19:43 2016, 美东)
如何让python dictionary sorting 的速度变得很快?
要sort 一些 python dictionary , 找出 value 最大的key, 一个 dictionary 的长度
大概有 300,000 。 然后发现速度奇慢。真的不是一点的慢。
代码用的这个:
max(stats.iteritems(), key=operator.itemgetter(1))[0]
问一下怎样能 speed up? |
|
p******r 发帖数: 122 | 5 【 以下文字转载自 Programming 讨论区 】
发信人: prettier (I know), 信区: Programming
标 题: 如何让python dictionary sorting 的速度变得很快?
发信站: BBS 未名空间站 (Fri Aug 26 23:19:43 2016, 美东)
如何让python dictionary sorting 的速度变得很快?
要sort 一些 python dictionary , 找出 value 最大的key, 一个 dictionary 的长度
大概有 300,000 。 然后发现速度奇慢。真的不是一点的慢。
代码用的这个:
max(stats.iteritems(), key=operator.itemgetter(1))[0]
问一下怎样能 speed up? |
|
l*y 发帖数: 21010 | 6 要彻底摆脱汉语思维,就应该一切按照native speaker的语言学习方法来进行查字典的
活动。
如果要学的是美式英语,那么最好的步骤是这样:
遇到一个新词,首先查Merriam-Webster's Collegiate Dictionary,这是成年美国人
最常用最权威的词典。
如果看不懂解释里的词(非常可能),那么去查Macmillan Dictionary for Students
(MDS),这是一本80年代出版的为中学生使用的字典,虽然年代有些老,但绝对是同类
字典里质量最好的(本人在译文论坛详细研究过)
如果再看不懂,就要去查Macmillan Dictionary for Children (MDC),这是美国人给
自己的孩子买的第一本字典的最佳选择,图文并茂,非常好。
再不懂,再去翻英汉词典吧
而且其中的MDS和MDC两本词典,不仅可以用来当作工具书,还可以作为日常读物,通读
下来,因为这些词典选的词,都是最基本的单词,人人都应该掌握的 |
|
|
f**********r 发帖数: 18251 | 8 【 以下文字转载自 Joke 讨论区 】
发信人: TrueCabbage (...), 信区: Joke
标 题: 发现DFBB词条居然上了urban dictionary
发信站: BBS 未名空间站 (Sun Sep 26 22:40:59 2010, 美东)
发信人: liverpoo (pupu), 信区: Automobile
标 题: 发现DFBB词条居然上了urban dictionary
发信站: BBS 未名空间站 (Sat Sep 25 04:09:53 2010, 美东)
想不起来DFBB全称是什么了,上google一搜居然发现作为词条收录在urban dictionary
,还挺详细的,很有意思。
dfbb = Dongfang Bubai 1. Dongfang Bubai (simplified Chinese: 东方不败;
traditional Chinese: 東方不敗; Mandarin Pinyin: Dōngfāng Bùbaì; Jyutping
Smiling, Proud Wanderer by Jin Yong1. His name |
|
f********e 发帖数: 100 | 9 版上最新的:
给一个dictionary,然后可以support的query是,给一个string,返回在
dictionary里面包含给定string的所有character的最短的string
我能想到的是把query变成sorted hash table. dictionary的words也都变成sorted
hash table, 放在象trie一样的结构里。这样query来时可以filter字典里哪些词会
contain query.然后就得把这些candidates 都把min window算一遍。
但这样的话如果candidates多了,很贵。。。 |
|
B**********y 发帖数: 3855 | 10 买了,一年级时买了那种又厚又重带图画的chlidren dictionary;三年级,学校订是school supply时,一快买了webster dictionary,留在学校里用的。老师要求买了Scholastic Dictionary of Synonyms, Antonyms, and Homonyms。现在有时给他用我的朗文字典,比较小,好用。 |
|
P***s 发帖数: 11672 | 11 我赫然发现,我自己在用这个Scholastic Dictionary of Synonyms, Antonyms, and
Homonyms。。。。
school supply时,一快买了webster dictionary,留在学校里用的。老师要求买了
Scholastic Dictionary of Synonyms, Antonyms, and Homonyms。现在有时给他用我
的朗文字典,比较小,好用。 |
|
G***G 发帖数: 16778 | 12 I nearly tried all the dictionary you guys pointed out.
they are not the one I am looking for.
www.w-m.com is not dictionary, it is abridged.
london english is not my favour.
webster has a lot of version? which version do you mean?
the dictionary I am looking for is
the one with
1) more examples
2) accurate annotation
3) synonym/antonym for each annotation |
|
i*****a 发帖数: 7272 | 13 hehe,, i am looking for english-english dictionary...the key part is the
sound...not many dictionaries offer that...if it does, it is usually over $
100....i hope some phonse can have such functions so that i dont have to
spend a couple of hundred bucks on a dictionary |
|
d******k 发帖数: 4295 | 14 C#这样操作确实会报错,
我觉得检查一下key不算繁琐,可以防止异常和覆盖原值。而且Dictionary还是用Add的
方法更规范。
Dictionary dcic= new Dictionary();
if (!dcic.ContainsKey('c'))
dcic.Add('c',1);
dcic['c']++; |
|
f********f 发帖数: 475 | 15 下面的code在viewer端,是执行ExportReport controller里的exportPDFReport
function,同时将reportInputData传递过去:
@Html.ActionImage("exportPDFReport", "ExportReport", reportInputData, "~/
Content/images/pdf_icon.png", Resources.Global.ExportPDF, Resources.Global.
ExportPDF)
在model端,reportInputData的类型定义是这样的:
public class ReportInputDataModels
{
public DateTime startDate { get; set; }
public DateTime endDate { get; set; }
public string reportName ... 阅读全帖 |
|
f********f 发帖数: 475 | 16 改成private setter, 没出错,那说明没有其他地方改它的值。
reportInputData里有个constructor, 里面的foreach是专门给currencySummaryData
赋值的:
public ReportInputDataModels(ReportOutPutDataModels outputData)
{
startDate = outputData.startDate;
endDate = outputData.endDate;
enableRange = outputData.enableRange;
seperateReport = outputData.seperateReport;
reportName = Resources.Global.CurrencyReport;
groups = outputData.groups;
groupNa... 阅读全帖 |
|
p******r 发帖数: 122 | 17 如何让python dictionary sorting 的速度变得很快?
要sort 一些 python dictionary , 找出 value 最大的key, 一个 dictionary 的长度
大概有 300,000 。 然后发现速度奇慢。真的不是一点的慢。
代码用的这个:
max(stats.iteritems(), key=operator.itemgetter(1))[0]
问一下怎样能 speed up? |
|
|
c**i 发帖数: 6973 | 19 John Noble Wilford, After 90 Years, a Dictionary of an Ancient World; 28,000
words covering a period from 2500 BC to AD 100. New York Times, June 7,
2011.
http://www.nytimes.com/2011/06/07/science
/07dictionary.html?_r=1&scp=1&sq=assyrian%20dictionary&st=cse
(Chicago Assyrian Dictionary: "Actually, the basic language in question is
Akkadian")
Note:
(a) Sargon of Akkad
http://en.wikipedia.org/wiki/Sargon_of_Akkad
(also known as Sargon the Great; Akkadian Šarru-kīnu, meaning "the
true king" o... 阅读全帖 |
|
y******5 发帖数: 43 | 20 不知道理解得是否准确:从左至右扫描words,如果始终找不到一个分割,使得左右两
边都在dictionary中,那么return false. 复杂度取决于dictionary的实现。 |
|
r****o 发帖数: 1950 | 21 【 以下文字转载自 Programming 讨论区 】
发信人: roufoo (五经勤向窗前读), 信区: Programming
标 题: 给定一个dictionary,如何用26个字母拼出尽可能多的单词?
发信站: BBS 未名空间站 (Thu Aug 11 02:25:28 2011, 美东)
这是我自己想的一道题目,
给定一个dictionary和26个字母,如何用这26个字母评出尽可能多的单词来呢?
当然,每个字母只能用1次。 |
|
w****o 发帖数: 2260 | 22 看到很多题都是跟dictionary有关的,面试时问到的话,通常是用什么数据结构表示的?
还是面试官已经告诉你了已经有一个用某种数据结构建好的dictionary,你就不用担心
了? |
|
g*********e 发帖数: 14401 | 23 usually the dictionary is built and you are given functions like isWord() to
use.
You can build dictionary by hash table, or trie |
|
m******t 发帖数: 273 | 24 【 以下文字转载自 Quant 讨论区 】
发信人: myregmit (myregmit), 信区: Quant
标 题: load data to a dictionary in R
发信站: BBS 未名空间站 (Sun Mar 16 20:45:51 2014, 美东)
I need to load data from a .csv file and then save it in a dictionary in R.
The data format:
country,region,value
Each row may have different country and region.
I need to save the value with the same country and region together.
Any help would be appreciated. |
|
o******l 发帖数: 828 | 25 多谢各位答复。
school supply时,一快买了webster dictionary,留在学校里用的。老师要求买了
Scholastic Dictionary of Synonyms, Antonyms, and Homonyms。现在有时给他用我
的朗文字典,比较小,好用。 |
|
|
G**T 发帖数: 2610 | 27
===[[quote]]===
虽说它叫字典, 其实这本书更适合做知识词汇的学习书. 它收集了最基本的五千单词,
图文并茂, 例句,用法,发音,词形变化,相关词等都有指导.
大家或许都见过 First Dictionary, Picture Book, My First Word Book, First
Thesaurus 之类的书. DK 的Children's Illustrated Dictionary 是最好的.
它的质量比其它同类书高一个档次. 我的小孩一年级时开始把它当图画书看着玩. 不知
不觉上完二年级时, 里面的 words 基本都会了. 而且是那种
naturally understand. Their school teachers often praise them for their
impressive vocabulary...
===[[end quote]]===
以上是你原帖的部分comment,cut & paste 过来。 总结得很好! |
|
|
s*******e 发帖数: 4188 | 29 很多词你直接google search,出的就是dictionary entry。要不也是别的dictionary
的entry link.
或者google search "define ". |
|
S*******e 发帖数: 525 | 30 【 以下文字转载自 English_Communication 俱乐部 】
发信人: SwiftDove (Swift Dove), 信区: English_Communication
标 题: Word List Web Tool for Anyone + Dictionary Lookup in page.
发信站: BBS 未名空间站 (Wed Jul 18 00:38:41 2012, 美东)
If you use Google Chrome Browser, I extended a dictionary lookup tool which
can let you lookup with one click the word without leaving the page. At the
same time, you can add the word to your word lists at http://www.elookinto.com/wordlist. The extension is at: https://chrome.google.com/webstore... 阅读全帖 |
|
|
m******3 发帖数: 983 | 32 My elementary kid is using this dictionary.
Other children's dictionary is kind of useless. Maybe fancy with lots of
good pictures or printing design.
posting |
|
j******e 发帖数: 232 | 33 I need a dictionary to tell me what the hell
those American guys murmur. I mean, I need
a dictionary on idiom. Who could recommend some
one to me? Thanx! |
|
G***G 发帖数: 16778 | 34 I have this too. but I think the disadvantages for the dictionary are
1)the annoation for each word are too complex
2) examples are too old.
3) synonym doesn't come with each annotation.
4) it is an abridged version.
5)thesaurus is separated from the collegiate. that is, sometimes one word
has three meanings in collegiate but just two meanings in the thesaurus.
So you don't know what the synonym for the third meaning is.
I am looking for a dictionary with thesaurus embeded exactly
in the collegi |
|
b******r 发帖数: 64 | 35 【 以下文字转载自 Automobile 讨论区 】
发信人: liverpoo (pupu), 信区: Automobile
标 题: 发现DFBB词条居然上了urban dictionary
发信站: BBS 未名空间站 (Sat Sep 25 04:09:53 2010, 美东)
想不起来DFBB全称是什么了,上google一搜居然发现作为词条收录在urban dictionary
,还挺详细的,很有意思。
dfbb = Dongfang Bubai 1. Dongfang Bubai (simplified Chinese: 东方不败;
traditional Chinese: 東方不敗; Mandarin Pinyin: Dōngfāng Bùbaì; Jyutping
Smiling, Proud Wanderer by Jin Yong1. His name literally means "Invincible
East".--from Wikipedia 2. Among Northern American oversea Chinese,
especially i |
|
T*********e 发帖数: 39815 | 36 【 以下文字转载自 Automobile 讨论区 】
发信人: liverpoo (pupu), 信区: Automobile
标 题: 发现DFBB词条居然上了urban dictionary
发信站: BBS 未名空间站 (Sat Sep 25 04:09:53 2010, 美东)
想不起来DFBB全称是什么了,上google一搜居然发现作为词条收录在urban dictionary
,还挺详细的,很有意思。
dfbb = Dongfang Bubai 1. Dongfang Bubai (simplified Chinese: 东方不败;
traditional Chinese: 東方不敗; Mandarin Pinyin: Dōngfāng Bùbaì; Jyutping
Smiling, Proud Wanderer by Jin Yong1. His name literally means "Invincible
East".--from Wikipedia 2. Among Northern American oversea Chinese,
especially i |
|
c**i 发帖数: 6973 | 37 Ian Freeman, Free dictionary; At play in the fields of the OED. Boston Globe
, Jan 16, 2011.
http://www.boston.com/ae/books
/articles/2011/01/16/free_dictionary/
("Through Feb. 5, the OED Online — the world’s most comprehensive
collection of English word histories, with 3 million usage examples dating
back more than a millennium — is celebrating its redesign with free access
for all")
My comment:
(a) Alfred the Great
http://en.wikipedia.org/wiki/Alfred_the_Great
(849-899; King of Wessex from 871... 阅读全帖 |
|
g******a 发帖数: 730 | 38 小羊,你帮我问问这三本字典哪个好吧.
Harper Collins Robert French College Dictionary
Harper Collins Robert French Unabridged Dictionary
Le Petit Larousse Compact
我自己倾向于买第一本
多谢! |
|
a***y 发帖数: 19743 | 39 Mac OS X Dictionary.app has the same dictionary built-in.
This one merely added pronounciation. |
|
c*******c 发帖数: 100 | 40 System Preferences - Keyboard - Keyboard Shortcuts - Application Shortcuts:
Add a new one: Look Up in Dictionary, set whatever shortcut you like
注意"Look Up in Dictionary"大小写,因为一定要和程序菜单里的一样才行
在程序如preview里, highlight the word, apply your shortcut, 就等同于右击鼠标
再选项了 |
|
c****n 发帖数: 89 | 41 Seems it's not a dictionary.. ???
Is there a nice English<->Chinese dictionary website?? |
|
g*****g 发帖数: 34805 | 42 A dictionary is not necessarilly English dictionary.
It's all about letters and words, you can also generalize
to M letters and N words. |
|
d******i 发帖数: 7160 | 43 Dictionary dcim = new Dictionary();
// dcic['c']++; //直接报错,必须
if (!dcic.ContainsKey('c'))
dcic['c']=1;
else
dcic['c']++;
这也忒特么复杂了吧。
好怀念C++的STL,那不是一般的清爽阿。 |
|
i**p 发帖数: 902 | 44 【 以下文字转载自 JobHunting 讨论区 】
发信人: isup (No), 信区: JobHunting
标 题: English-Chinese Dictionary
发信站: BBS 未名空间站 (Mon Mar 17 03:29:00 2008)
Is there any free English-Chinese dictionary software which has audio
function for the English word? Where to download?
Thanks! |
|
a***m 发帖数: 74 | 45 Can someone kindly recommend an off-line English dictionary?
I would like it to be compatible with Window XP, with good coverage of words
and phrases, and with standard pronunciation.
I did a google search. It shows everest, wordweb, etc. I wonder someone who
used it before can comment on it.
What's about some traditional dictionaries: oxford, m-w, etc. on CD-ROM?
Thanks in advance. |
|
j****i 发帖数: 496 | 46 Can anyone recommend a good online English dictionary? I need one where I
could find whether a noun is countable, whether a verb is transitive, etc.,
not just the general ones that only give you the meaning of the word (such as
dictionary.com or webster.com). Thanks in advance. |
|
t********o 发帖数: 228 | 47 Just got a PDA but don't know how to install the Medical Dictionary.
I searched online and found (湘雅医学词典). I installed the database and
it needs Mdict.exe to open it. But I cannot install Mdict.exe. NGG and
Greenbean, please help.
Anyone knows better dictionary for free than this one? I need it urgent 'and
many many thanks for any suggestion.
PS. the PDA i got is palm T/X. It is really cool. 262$ at Amazon.
Another question, how I can let my PDA recognize chinese. My PDA cannot open Chinese we |
|
m******t 发帖数: 273 | 48 【 以下文字转载自 Quant 讨论区 】
发信人: myregmit (myregmit), 信区: Quant
标 题: load data to a dictionary in R
发信站: BBS 未名空间站 (Sun Mar 16 20:45:51 2014, 美东)
I need to load data from a .csv file and then save it in a dictionary in R.
The data format:
country,region,value
Each row may have different country and region.
I need to save the value with the same country and region together.
Any help would be appreciated. |
|
|