如何下载谷歌ngram页面数据? #55
chengjun
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
第一步,查询词语
https://books.google.com/ngrams/graph?content=Albert+Einstein%2CSherlock+Holmes%2CFrankenstein&year_start=1800&year_end=2019&corpus=26&smoothing=0&direct_url=t1%3B%2CAlbert%20Einstein%3B%2Cc0%3B.t1%3B%2CSherlock%20Holmes%3B%2Cc0%3B.t1%3B%2CFrankenstein%3B%2Cc0#t1%3B%2CAlbert%20Einstein%3B%2Cc1%3B.t1%3B%2CSherlock%20Holmes%3B%2Cc1%3B.t1%3B%2CFrankenstein%3B%2Cc0
第二步,查看网页源代码
view-source:https://books.google.com/ngrams/graph?content=Albert+Einstein%2CSherlock+Holmes%2CFrankenstein&year_start=1800&year_end=2019&corpus=26&smoothing=0&direct_url=t1%3B%2CAlbert%20Einstein%3B%2Cc0%3B.t1%3B%2CSherlock%20Holmes%3B%2Cc0%3B.t1%3B%2CFrankenstein%3B%2Cc0#t1%3B%2CAlbert%20Einstein%3B%2Cc0%3B.t1%3B%2CSherlock%20Holmes%3B%2Cc1%3B.t1%3B%2CFrankenstein%3B%2Cc0
第三部,使用 timeseries搜索即可找到数据,将包含timeseries的这一行复制下来即可
Albert Einstein
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
Sherlock Holmes
[1.892719225793371e-08, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.734112076157146e-09, 0.0]
Frankenstein
[8.730623335395649e-08, 1.6202386987629325e-08, 1.6821548598500158e-08, 4.3224709145306406e-08, 6.175727662594e-08, 2.1272212435974325e-08, 4.9139994295899214e-09, 1.1745486006020656e-07, 4.5443563578828616e-08, 9.04925379074939e-09]
Beta Was this translation helpful? Give feedback.
All reactions