其中之一是单词计数器,它统计某一单词在几个文件中出现的次数。
One of them is a word counter, which counts for certain word occurrence in several files.
Reduce函数对发出的特定单词计数求和。
The Reduce function sums together all counts emitted for a particular word.
然后用空白分隔提示并把提示ID放入每个单词的单词计数数组。
Then split on white Spaces and push the note ID into the word-count array for each word.
其中之一是单词计数器,它统计某一单词在几个文件中出现的次数。
One of them is a word counter , which counts for certain word occurrence in several files.
结果值被返回为一个引用,所以您必须对它解除引用,以得到您所请求的单词计数。
The result value is returned as a reference, so you have to de-reference it to get the word count you requested.
在清单6中,我使用passthru命令运行在前面小节运行的单词计数脚本。
In Listing 6, I use the passthru command to run the little word-count script I ran in the previous section.
卡夫认为像17040词/分这样的阅读速度水分很大,因为所有的时间和单词计数都是由参与者自己提供的,而阅读理解测试也是自评所得。
Carver discounts the 17, 040-per-minute reader in the 1963 study because all the times and word counts were self-reported, and the comprehension tests were self-graded.
杰佛瑞·汉考克(JeffreyT . Hancock)是康奈尔大学通信系副教授,他正在利用单词计数法研究网络语言和骗术。
Jeffrey t. Hancock, an associate professor of communication at Cornell, USES word counting to study language and deception, particularly on the Internet.
例如,一个简单的词汇分析器可能会为输入的单词进行计数。
For instance, a simple lexical analyzer might count the words in its input.
否则,您需要在该单词的hash中创建新的条目,然后加载计数(应该是来自mapper过程的1)。
Otherwise, you create a new entry in the hash for the word, and then load the count (which should be 1 from the mapper process).
而后该 hash会检查该单词;如果发现,则将计数添加到元素。
The hash is then checked for the word; if found, the count is added to the element.
客户机把要被计数的字符串写入memcached,工人使用客户机提供的ID读取字符串,统计单词数量,然后将信息写回 memcached。
The client writes the string to be counted into memcached, and the worker uses the ID supplied by the client to read the string, count the words, then writes the information back to memcached.
这个方法应当返回单词统计数组。
对于每个长于两字符的单词,将统计数存储在频率映射中。
For each word that is longer than two characters, it stores the count in the frequency map.
我获得了字符计数(计算字符串长度)和单词数(使用空格将字符串断开并计算结果)。
I can get the character count (from the string length) and the word count (by splitting the string by Spaces and counting the results).
如果两个单词是换位词,他们包含同样个数的同样字母,所以他们的计数器是相等的。
If two words are anagrams, they contain the same letters with the same counts, so their Counters are equivalent.
它们可以用于经由过程给定内容或者类型对单词频率计数。
They can be used for counting word frequencies, given a context or a genre.
它们可以用于通过给定内容或者类型对单词频率计数。
They can be used for counting word frequencies, given a context or a genre.
它们可以用于通过给定内容或者类型对单词频率计数。
They can be used for counting word frequencies, given a context or a genre.
应用推荐