According to... In natural language processing Zipf The law of statistics , In the natural language corpus , The frequency of a word is inversely proportional to its ranking in the frequency table . therefore , We have reason to think that , You can sort them according to this frequency table , as well as purning. Due to limited energy , There is not enough time and bandwidth to collect statistical English corpus , So I found it on the Internet 《 cool “ AI ” Statistics of the frequency of words in the American corpus of English 》, The table contains Top 6w 's words , It seems to have some value . We can argue that , If there's a frequency Top 6W None , So this word doesn't know ( That's from your Language Model Inside Cut fall ) There should be no problem ( Maybe there's fog , Maybe the examinee's vocabulary is not enough in the exam , But it's true in a practical sense )…… therefore , I'm looking for it again G and T Electronic version of the word ,G I'll kill you if I use it 3000,T I use unknown corpus …… And then according to Top 6W Sort , Just throw away the ones that are not on the list , therefore ,5666 + 3000 - A number of = 6662, De Chonghe Cut off The effect is still very obvious …… That's it , I have a smaller vocabulary in order of importance . Because in merge When , The code doesn't deal with Chinese corresponding to English words , So it's troublesome …… therefore , We look for open dictionaries API, Penguin rarely does good …… return json,parse And …… The code is as follows

「Update: Penguin is closed dict.qq.com This free interface of , Just have a look ……」

 require "json"
require "net/http" while word = gets do
word.chomp!
begin
str = Net::HTTP.get('dict.qq.com', '/dict?q=' + word)
tmp = JSON.parse(str)["local"][0]["des"]
puts word
tmp.each { |i|
print i["p"] if i["p"]
print i["d"] if i["d"]
puts
}
puts
rescue => err
p err
end
end

This is a The final result , You dare to die , I dare to bury ……

Because words are sorted by frequency , therefore , From the back , What you can recite is what you can recite ……

Use some yard farmers Trick Go and do it G and T More articles about the words of

  1. Android How can Manon turn into iOS Code the agriculture ( Don't fool )

    WeTest Reading guide As a android Client development , If you don't know something ios Development , How can I say I'm a client developer , This article explains how to make android It's a week's work to develop code farmers IOS Development --< Record yourself IOS open ...

  2. dear mssql The farmers , Look at the use sp_addlinkedserver Realize remote database link

    dear mssql The farmers , You can see how to connect to a remote database locally (sp_addlinkedserver)-- Connect through code -- Check the current link status : select * from sys.servers; -- Use ...

  3. Old ma Nong teaches you in StackOverflow It's a lot of fun

    As a tall yard farmer , You must have used StackOverflow, necessary . Will anyone deny this assertion ? I'm afraid he's not really a yard farmer , Or not yet .StackOverflow The importance of coders , Basically with Zhuge Liang against Liu Bei ...

  4. a Java Architects share their own experience , It took me eight years from coder to architect

    Worked for a long time , I found an interesting phenomenon , From programmers . Senior programmer , Up to now, there are architects . The title of an expert or something , Along with the improvement of technology and ability , There are more and more things that I can't understand . Some of these questions come from the communication with small partners , Some are my questions and answers ...

  5. The old farmer risked his life to unveil the black curtain of the industry : How to write code that cannot be maintained [ZZ]

    Here's an interesting " The code of ", a Reverse software engineering . The old farmer risked his life to unveil the black curtain of the industry : How to write code that cannot be maintained The text is as follows Keep your latte job ;-) – Roedy Green( The translation is slightly abridged ) ...

  6. 【github repo Self recommendation 】 One week's selection and classification of the magazine

    The following excerpts from my github It's sorted out by minon weekly repo, Welcome to star. What's written at the front As the subscribers of the first batch of magazine , We can't say that we have experienced its growth , But it did witness his growth . It's true that from the beginning, the first issue of the magazine is basically ...

  7. PHP Manon is Golang Survival under pressure -PHP Performance optimization practice

    With domestic Golang Hot ,phper The pressure to survive is growing , In an internal technical discussion ,gopher Even put forward , What would you like? php, Write php It's all on , alas , Why is it so hard for the farmers . This paper attempts to find an effective practice , Reduce php w ...

  8. Yeluzi manong series (2)Python Class in , Maybe the most popular explanation

    What's page ? What is class ? What is object-oriented ? The last two questions used to be in college “ Ancestral Tan Haoqiang ” I often have questions when I'm in the hospital . The teacher said a lot of things public, private, I'm all muddled , What is private ? Why private ? And then he wandered out of the sky …… ...

  9. From coder to technical director to share Leader Experience

    From a graduate IT A guy or a yard farmer grows into a manager , There are a lot of ideas that need to be changed , So when you have a bottleneck , Maybe my experience can help you , thank . I have mastered the system .NET,JAVA technology , Be able to use skillfully springcloud + ...

Random recommendation

  1. EF Not as smart as we think

    I used to use EF Read data from a view , Duplicate data in page display , I couldn't understand it at that time , Tracking code , The data obtained during data reading is not duplicate , Why are there repetitions in the foreground display , At that time, I de duplicated the data in the business layer , But the data we get is the same as the database ...

  2. java.lang.Comparable&lt;T&gt; Interface

    package java.lang; import java.util.*; public interface Comparable<T> { public int compareTo(T ...

  3. JSONKit does not support Objective-C Automatic Reference Counting(ARC) / ARC forbids Objective-C objects in struct

    When we are using JSONKit While processing data , Pull the file directly into the project will often report these two errors “JSONKit   does not support Objective-C Automatic Reference Coun ...

  4. Front-end correlation js

    1. mailchimp.js:  Subscribe by email RSS Online tools for 2. ga.js:google Launched a website used to statistics information java Script . Can be in GoogleAnalytics Get website statistics and tracking ...

  5. Intervals poj 1201 Differential restraint system

    Intervals Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 22503   Accepted: 8506 Descri ...

  6. CentOS add to / binding IP

    The United States VPS Independence IP Compared with domestic , It's very cheap . For example, some Americans VPS, buy 5 Independent IP It's only about three dollars a month . When we buy multiple independents IP when , If you don't want to contact customer service and wait a long time , Let's configure it manually . One . Get into / ...

  7. HDU 1072/BFS

    Topic link Nightmare Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Tota ...

  8. mac Upload local code to Github course

    There's a lot about it online windows The system uploads the local code to github The article , But I use it myself mac, I also found related articles on the Internet , There are still many problems in the process of practice , Now share your successful practice , I hope it can help you . 1. The first ...

  9. mysql extract .sql Back up a single table and table data in the file

    background : With the increasing number of business modules , database mysql The capacity is also growing , When doing the test , The whole backup and restore is time-consuming , Because sometimes only a single table or a few tables are needed , To extract the specified table and data from the entire backup file , The following methods are needed . ...

  10. javascript Based on practice (2)——What&#39;s this( On )

    Catalog One .this What is it? Two . Take a close look at this 3、 ... and . this The general pointing rule of Four . Examples of ground rules 5、 ... and . Postscript Developer's javascript Attainment depends on the ability to [ dynamic ] and [ asynchronous ] The level of understanding of these two words . One .thi ...