这个方法应当返回单词统计数组。
通过得到的数组生成单词统计。
posts和comments控制器将使用words模型来保存处理后的单词统计。
The posts and comments controllers will use the words model to save the word counts after they've been processed.
但是由于实际上需要能够查看单词统计,因此用模型和控制器来构建一个words模块可能更有意义。
But since we want to actually be able to view the word counts, it probably makes more sense to build a words module with a Model and a Controller.
此处的目的不是向您展示如何完成文本解析单词统计分析,而是使用它演示如何实现框架所涉及不到的内容。
The intent here isn't to show you how to do awesome text-parsing word count-stats analysis, but to use it as an example in the context of trying to do something the frameworks handle awkwardly.
从本质上说,最终将得到一个处理words表的模型,一个让您查看单词统计的视图,以及一个执行某个逻辑的控制器。
What you will end up with in the end is, essentially, a Model to handle the words table, a View that lets you see the word counts, and a Controller to perform some logic.
这个程序可以统计任何单词在文本中出现的次数。
The program counts the number of occurrences of any word, within the text.
其中之一是单词计数器,它统计某一单词在几个文件中出现的次数。
One of them is a word counter, which counts for certain word occurrence in several files.
我们将统计单词在这些文件中出现的次数。
前10 个满足这些条件的单词及其频率统计将包装到一个URL 中,然后通过GoogleChartAPI生成图像。
The top 10 words meeting these requirements and their frequency counts are then packed into a URL for generation using the Google Chart API.
客户机把要被计数的字符串写入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.
我们在mrjobPython框架中编写了这个简单的MapReduce作业,它执行单词频率统计。
A simple MapReduce job that does a word frequency count, written in our mrjob Python framework.
wc为wordcount的首字母缩写,wc可统计字符、单词和行数。
Wc is an acronym for word count; wc can count characters, words, and lines.
然后,运行这个示例应用程序,以下命令统计以“dfs”开头的单词出现的次数。
Then, run the sample, which counts occurrences of words that start with "DFS."
如果单词位于master列表中,则需要用新统计更新行。
If a word is in the master list, we need to update the row with a new count.
对于每个长于两字符的单词,将统计数存储在频率映射中。
For each word that is longer than two characters, it stores the count in the frequency map.
对于本例来说,您只想看到统计频率高于 400的单词。
For this example, you want to see only the words that have a counter higher than 400.
用新统计更新words表,添加新单词行并更新已经在该表中的单词行。
Update the words table with new counts, adding rows for new words and updating rows for words already there.
parseWordsFromString()方法更新单词映射,其中统计了每个单词的频率。
The parseWordsFromString() method updates a word map that counts the frequency of each word.
一个可行的解决方案是获得传入的内容、对使用的单词进行统计,并提供Blahg中最常用单词的小列表。
A possible solution to this might be something that takes incoming content, builds up a count of words used, and gives you a neat little list of the most common words in your Blahg.
然后再修改一下程序,让程序能统计一下整本书的总单词数目,以及每个单词出现的次数。
Then modify the program to count the total number of words in the book, and the number of times each word is used.
首先,它创建一个正则表达式模式用于查找句子末尾,并为每个单词创建一个ONE变量,用于统计单词的出现频率。
First it creates a regular expression pattern that looks for the end of sentences and one for individual words.
其中之一是单词计数器,它统计某一单词在几个文件中出现的次数。
One of them is a word counter , which counts for certain word occurrence in several files.
该公司根据使用频率、上下文用法以及出现情况统计了媒体报道中的单词、词组以及各个概念。
It tracks words, phrases and concepts in relation to their frequency, contextual usage and appearance in media outlets, according to the firm.
有连字符或者缩写的单词怎样统计字数?
Words that are hyphenated (e. g. , "self-evident") or contracted (e. g. , "shouldn't") count as one word.
你的任务是把与给定的单词拼写上有一个字母之差的单词替换掉,并统计替换的次数。
The task is to replace words that differ from the ones in the vocabulary not more than by a letter and to count an amount of the made mistakes.
你的任务是把与给定的单词拼写上有一个字母之差的单词替换掉,并统计替换的次数。
The task is to replace words that differ from the ones in the vocabulary not more than by a letter and to count an amount of the made mistakes.
应用推荐