Spaces:
Build error
Build error
freemt
commited on
Commit
•
8e72bb5
1
Parent(s):
efedef5
Update fresh docs for readthedocs
Browse files- docs/build/doctrees/environment.pickle +0 -0
- docs/build/doctrees/userguide-zh.doctree +0 -0
- docs/build/html/_sources/userguide-zh.rst.txt +1 -1
- docs/build/html/examples.html +3 -2
- docs/build/html/intro.html +1 -0
- docs/build/html/modules.html +3 -1
- docs/build/html/radiobee.html +5 -5
- docs/build/html/searchindex.js +1 -1
- docs/build/html/userguide-zh.html +1 -1
- docs/source/userguide-zh.rst +1 -1
- flagged/file 1/0.txt +205 -0
- gradio_queue.db +0 -0
- package.json +1 -0
- radiobee/__main__.py +40 -14
- run-radiobee.bat +2 -1
- tests/test_main_single_input.py +42 -0
docs/build/doctrees/environment.pickle
CHANGED
Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ
|
|
docs/build/doctrees/userguide-zh.doctree
CHANGED
Binary files a/docs/build/doctrees/userguide-zh.doctree and b/docs/build/doctrees/userguide-zh.doctree differ
|
|
docs/build/html/_sources/userguide-zh.rst.txt
CHANGED
@@ -12,4 +12,4 @@
|
|
12 |
- ``esp``设大些或``min_samples``设小些可以得到更多的对齐对但也会 **误报对** (错误对)。另一方面,``esp``设小些或``min_samples``设大些则可能会错失一些’优质对‘。
|
13 |
|
14 |
- 嫌图太小的话,可以右击拷出图的链接用浏览器独立访问拷出来的链接或右击存盘再用看图程序打开存盘的图文件。
|
15 |
-
- ``Flag``:
|
|
|
12 |
- ``esp``设大些或``min_samples``设小些可以得到更多的对齐对但也会 **误报对** (错误对)。另一方面,``esp``设小些或``min_samples``设大些则可能会错失一些’优质对‘。
|
13 |
|
14 |
- 嫌图太小的话,可以右击拷出图的链接用浏览器独立访问拷出来的链接或右击存盘再用看图程序打开存盘的图文件。
|
15 |
+
- ``Flag``: ``radiobee`` 运行出错时可以点击``Flag``存下有关参数查看或通知开发者。
|
docs/build/html/examples.html
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
<link rel="index" title="Index" href="genindex.html" />
|
20 |
<link rel="search" title="Search" href="search.html" />
|
21 |
<link rel="next" title="radiobee package" href="radiobee.html" />
|
22 |
-
<link rel="prev" title="
|
23 |
</head>
|
24 |
|
25 |
<body class="wy-body-for-nav">
|
@@ -41,6 +41,7 @@
|
|
41 |
<ul class="current">
|
42 |
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
43 |
<li class="toctree-l1"><a class="reference internal" href="userguide.html">How to use</a></li>
|
|
|
44 |
<li class="toctree-l1 current"><a class="current reference internal" href="#">Examples</a><ul>
|
45 |
<li class="toctree-l2"><a class="reference internal" href="#installation-usage">Installation/Usage:</a></li>
|
46 |
</ul>
|
@@ -86,7 +87,7 @@
|
|
86 |
</div>
|
87 |
</div>
|
88 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
89 |
-
<a href="userguide.html" class="btn btn-neutral float-left" title="
|
90 |
<a href="radiobee.html" class="btn btn-neutral float-right" title="radiobee package" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
91 |
</div>
|
92 |
|
|
|
19 |
<link rel="index" title="Index" href="genindex.html" />
|
20 |
<link rel="search" title="Search" href="search.html" />
|
21 |
<link rel="next" title="radiobee package" href="radiobee.html" />
|
22 |
+
<link rel="prev" title="使用说明" href="userguide-zh.html" />
|
23 |
</head>
|
24 |
|
25 |
<body class="wy-body-for-nav">
|
|
|
41 |
<ul class="current">
|
42 |
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
43 |
<li class="toctree-l1"><a class="reference internal" href="userguide.html">How to use</a></li>
|
44 |
+
<li class="toctree-l1"><a class="reference internal" href="userguide-zh.html">使用说明</a></li>
|
45 |
<li class="toctree-l1 current"><a class="current reference internal" href="#">Examples</a><ul>
|
46 |
<li class="toctree-l2"><a class="reference internal" href="#installation-usage">Installation/Usage:</a></li>
|
47 |
</ul>
|
|
|
87 |
</div>
|
88 |
</div>
|
89 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
90 |
+
<a href="userguide-zh.html" class="btn btn-neutral float-left" title="使用说明" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
91 |
<a href="radiobee.html" class="btn btn-neutral float-right" title="radiobee package" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
92 |
</div>
|
93 |
|
docs/build/html/intro.html
CHANGED
@@ -45,6 +45,7 @@
|
|
45 |
</ul>
|
46 |
</li>
|
47 |
<li class="toctree-l1"><a class="reference internal" href="userguide.html">How to use</a></li>
|
|
|
48 |
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>
|
49 |
<li class="toctree-l1"><a class="reference internal" href="radiobee.html">radiobee package</a></li>
|
50 |
</ul>
|
|
|
45 |
</ul>
|
46 |
</li>
|
47 |
<li class="toctree-l1"><a class="reference internal" href="userguide.html">How to use</a></li>
|
48 |
+
<li class="toctree-l1"><a class="reference internal" href="userguide-zh.html">使用说明</a></li>
|
49 |
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>
|
50 |
<li class="toctree-l1"><a class="reference internal" href="radiobee.html">radiobee package</a></li>
|
51 |
</ul>
|
docs/build/html/modules.html
CHANGED
@@ -38,8 +38,10 @@
|
|
38 |
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
39 |
<ul>
|
40 |
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
41 |
-
<li class="toctree-l1"><a class="reference internal" href="
|
|
|
42 |
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>
|
|
|
43 |
</ul>
|
44 |
|
45 |
</div>
|
|
|
38 |
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
39 |
<ul>
|
40 |
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
41 |
+
<li class="toctree-l1"><a class="reference internal" href="userguide.html">How to use</a></li>
|
42 |
+
<li class="toctree-l1"><a class="reference internal" href="userguide-zh.html">使用说明</a></li>
|
43 |
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>
|
44 |
+
<li class="toctree-l1"><a class="reference internal" href="radiobee.html">radiobee package</a></li>
|
45 |
</ul>
|
46 |
|
47 |
</div>
|
docs/build/html/radiobee.html
CHANGED
@@ -18,8 +18,7 @@
|
|
18 |
<script src="_static/js/theme.js"></script>
|
19 |
<link rel="index" title="Index" href="genindex.html" />
|
20 |
<link rel="search" title="Search" href="search.html" />
|
21 |
-
<link rel="
|
22 |
-
<link rel="prev" title="Introduction" href="intro.html" />
|
23 |
</head>
|
24 |
|
25 |
<body class="wy-body-for-nav">
|
@@ -40,6 +39,9 @@
|
|
40 |
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
41 |
<ul class="current">
|
42 |
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
|
|
|
|
|
|
43 |
<li class="toctree-l1 current"><a class="current reference internal" href="#">radiobee package</a><ul>
|
44 |
<li class="toctree-l2"><a class="reference internal" href="#submodules">Submodules</a></li>
|
45 |
<li class="toctree-l2"><a class="reference internal" href="#radiobee-align-sents-module">radiobee.align_sents module</a></li>
|
@@ -72,7 +74,6 @@
|
|
72 |
<li class="toctree-l2"><a class="reference internal" href="#module-contents">Module contents</a></li>
|
73 |
</ul>
|
74 |
</li>
|
75 |
-
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>
|
76 |
</ul>
|
77 |
|
78 |
</div>
|
@@ -194,8 +195,7 @@
|
|
194 |
</div>
|
195 |
</div>
|
196 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
197 |
-
<a href="
|
198 |
-
<a href="examples.html" class="btn btn-neutral float-right" title="Examples" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
199 |
</div>
|
200 |
|
201 |
<hr/>
|
|
|
18 |
<script src="_static/js/theme.js"></script>
|
19 |
<link rel="index" title="Index" href="genindex.html" />
|
20 |
<link rel="search" title="Search" href="search.html" />
|
21 |
+
<link rel="prev" title="Examples" href="examples.html" />
|
|
|
22 |
</head>
|
23 |
|
24 |
<body class="wy-body-for-nav">
|
|
|
39 |
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
|
40 |
<ul class="current">
|
41 |
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
|
42 |
+
<li class="toctree-l1"><a class="reference internal" href="userguide.html">How to use</a></li>
|
43 |
+
<li class="toctree-l1"><a class="reference internal" href="userguide-zh.html">使用说明</a></li>
|
44 |
+
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>
|
45 |
<li class="toctree-l1 current"><a class="current reference internal" href="#">radiobee package</a><ul>
|
46 |
<li class="toctree-l2"><a class="reference internal" href="#submodules">Submodules</a></li>
|
47 |
<li class="toctree-l2"><a class="reference internal" href="#radiobee-align-sents-module">radiobee.align_sents module</a></li>
|
|
|
74 |
<li class="toctree-l2"><a class="reference internal" href="#module-contents">Module contents</a></li>
|
75 |
</ul>
|
76 |
</li>
|
|
|
77 |
</ul>
|
78 |
|
79 |
</div>
|
|
|
195 |
</div>
|
196 |
</div>
|
197 |
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
198 |
+
<a href="examples.html" class="btn btn-neutral float-left" title="Examples" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
|
|
199 |
</div>
|
200 |
|
201 |
<hr/>
|
docs/build/html/searchindex.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
Search.setIndex({docnames:["examples","index","intro","modules","radiobee","userguide","userguide-zh"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["examples.rst","index.rst","intro.rst","modules.rst","radiobee.rst","userguide.rst","userguide-zh.rst"],objects:{},objnames:{},objtypes:{},terms:{"12":[5,6],"3":2,"316287378":[5,6],"4":[5,6],"8":[5,6],"\u4e00\u822c\u65e0\u9700\u7406\u4f1a\u8fd9\u4e9b\u53c2\u6570":6,"\u4e86\u89e3\u8fd9\u4e9b\u5bf9\u9f50\u5de5\u5177":6,"\u4f18\u8d28\u5bf9":6,"\u4f7f\u7528\u8bf4\u660e":1,"\u53e6\u4e00\u65b9\u9762":6,"\u53ef\u4ee5\u4ee5\u540e\u4f1a\u652f\u6301":6,"\u53ef\u4ee5\u53f3\u51fb\u62f7\u51fa\u56fe\u7684\u94fe\u63a5\u7528\u6d4f\u89c8\u5668\u72ec\u7acb\u8bbf\u95ee\u62f7\u51fa\u6765\u7684\u94fe\u63a5\u6216\u53f3\u51fb\u5b58\u76d8\u518d\u7528\u770b\u56fe\u7a0b\u5e8f\u6253\u5f00\u5b58\u76d8\u7684\u56fe\u6587\u4ef6":6,"\u548c":6,"\u5acc\u56fe\u592a\u5c0f\u7684\u8bdd":6,"\u5b58\u4e0b\u6709\u5173\u53c2\u6570\u67e5\u770b\u6216\u901a\u77e5\u5f00\u53d1\u8005":6,"\u662f":6,"\u7684\u5b6a\u751f\u5144\u5f1f":6,"\u7684\u5efa\u8bae\u503c":6,"\u76ee\u524d\u4ec5\u652f\u6301\u4e2d\u82f1":6,"\u76ee\u524d\u4ec5\u652f\u6301\u7eaf\u6587\u672c\u6587\u4ef6\u4e0a\u8f7d":6,"\u7b2c\u4e8c\u6b21\u4e0a\u8f7d\u6587\u4ef6\u524d\u8bf7\u70b9\u51fb":6,"\u7b49":6,"\u7b49\u683c\u5f0f":6,"\u82f1\u4e2d\u5bf9\u9f50":6,"\u8bbe\u5927\u4e9b\u5219\u53ef\u80fd\u4f1a\u9519\u5931\u4e00\u4e9b":6,"\u8bbe\u5927\u4e9b\u6216":6,"\u8bbe\u5c0f\u4e9b\u53ef\u4ee5\u5f97\u5230\u66f4\u591a\u7684\u5bf9\u9f50\u5bf9\u4f46\u4e5f\u4f1a":6,"\u8bbe\u5c0f\u4e9b\u6216":6,"\u8bef\u62a5\u5bf9":6,"\u8bf7\u52a0\u5165qq\u7fa4":6,"\u8fd0\u884c\u51fa\u9519\
|
|
|
1 |
+
Search.setIndex({docnames:["examples","index","intro","modules","radiobee","userguide","userguide-zh"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["examples.rst","index.rst","intro.rst","modules.rst","radiobee.rst","userguide.rst","userguide-zh.rst"],objects:{},objnames:{},objtypes:{},terms:{"12":[5,6],"3":2,"316287378":[5,6],"4":[5,6],"8":[5,6],"\u4e00\u822c\u65e0\u9700\u7406\u4f1a\u8fd9\u4e9b\u53c2\u6570":6,"\u4e86\u89e3\u8fd9\u4e9b\u5bf9\u9f50\u5de5\u5177":6,"\u4f18\u8d28\u5bf9":6,"\u4f7f\u7528\u8bf4\u660e":1,"\u53e6\u4e00\u65b9\u9762":6,"\u53ef\u4ee5\u4ee5\u540e\u4f1a\u652f\u6301":6,"\u53ef\u4ee5\u53f3\u51fb\u62f7\u51fa\u56fe\u7684\u94fe\u63a5\u7528\u6d4f\u89c8\u5668\u72ec\u7acb\u8bbf\u95ee\u62f7\u51fa\u6765\u7684\u94fe\u63a5\u6216\u53f3\u51fb\u5b58\u76d8\u518d\u7528\u770b\u56fe\u7a0b\u5e8f\u6253\u5f00\u5b58\u76d8\u7684\u56fe\u6587\u4ef6":6,"\u548c":6,"\u5acc\u56fe\u592a\u5c0f\u7684\u8bdd":6,"\u5b58\u4e0b\u6709\u5173\u53c2\u6570\u67e5\u770b\u6216\u901a\u77e5\u5f00\u53d1\u8005":6,"\u662f":6,"\u7684\u5b6a\u751f\u5144\u5f1f":6,"\u7684\u5efa\u8bae\u503c":6,"\u76ee\u524d\u4ec5\u652f\u6301\u4e2d\u82f1":6,"\u76ee\u524d\u4ec5\u652f\u6301\u7eaf\u6587\u672c\u6587\u4ef6\u4e0a\u8f7d":6,"\u7b2c\u4e8c\u6b21\u4e0a\u8f7d\u6587\u4ef6\u524d\u8bf7\u70b9\u51fb":6,"\u7b49":6,"\u7b49\u683c\u5f0f":6,"\u82f1\u4e2d\u5bf9\u9f50":6,"\u8bbe\u5927\u4e9b\u5219\u53ef\u80fd\u4f1a\u9519\u5931\u4e00\u4e9b":6,"\u8bbe\u5927\u4e9b\u6216":6,"\u8bbe\u5c0f\u4e9b\u53ef\u4ee5\u5f97\u5230\u66f4\u591a\u7684\u5bf9\u9f50\u5bf9\u4f46\u4e5f\u4f1a":6,"\u8bbe\u5c0f\u4e9b\u6216":6,"\u8bef\u62a5\u5bf9":6,"\u8bf7\u52a0\u5165qq\u7fa4":6,"\u8fd0\u884c\u51fa\u9519\u65f6\u53ef\u4ee5\u70b9\u51fb":6,"\u9519\u8bef\u5bf9":6,"do":5,"new":5,As:0,For:0,If:[2,5],On:5,The:2,To:5,about:5,ad:2,address:5,aim:2,align:[0,2,5,6],align_s:[1,3],align_text:[1,3],also:5,although:2,amend_avec:[1,3],an:2,app:[1,3],ar:[2,5],been:[0,2],better:5,browser:5,built:0,bumblebe:[5,6],can:[2,5],candid:5,cannot:0,cat:2,clear:[5,6],click:[0,5],cmat2tset:[1,3],co:0,contact:2,content:3,copi:5,csv:[5,6],current:2,de:2,develop:[2,5],dl_type:[5,6],docterm_scor:[1,3],docx:[5,6],download:0,dual:2,dualtext:2,e:2,ebook:2,educ:2,en2zh:[1,3],en2zh_token:[1,3],en:2,epsilon:[5,6],esp:[5,6],etc:[2,5],exampl:[1,2],fals:5,file2text:[1,3],file:5,files2df:[1,3],first:5,flag:[5,6],format:5,full:2,further:2,g:2,gen_aset:[1,3],gen_eps_minsampl:[1,3],gen_model:[1,3],gen_pset:[1,3],gen_row_align:[1,3],go:5,good:5,gradio:2,group:5,ha:[0,2],hand:5,have:5,help:2,here:2,how:1,html:[5,6],http:0,huggingfac:0,identifi:5,idf_typ:[5,6],imag:5,implement:2,index:1,inform:5,insert_spac:[1,3],instal:1,interfac:2,interpolate_pset:[1,3],introduct:1,ja:2,join:5,just:0,know:5,languag:2,larger:5,later:5,learn:2,limit:1,lists2cmat:[1,3],loadtext:[1,3],look:5,machin:2,mai:5,md:[5,6],mdx_e2c:[1,3],method:0,mikee:0,min_sampl:[5,6],minimum:[5,6],miss:5,modul:[1,3],more:5,motiv:1,need:5,norm:[5,6],normal:5,now:0,one:0,onli:2,onlin:0,open:5,other:5,output:5,packag:[0,1,3],page:1,pair:[2,5],paragraph:2,particular:2,pdf:[5,6],permit:2,pip:0,pleas:5,plot_cmat:[1,3],plot_df:[1,3],posit:5,power:2,process_upload:[1,3],provid:2,publish:0,pure:5,pypi:0,python:2,qq:5,radiobe:[0,2,5,6],result:5,right:5,row:0,ru:2,save:5,search:1,seg_text:[1,3],select:5,sentenc:2,should:5,shuffle_s:[1,3],sibl:5,smaller:5,smatrix:[1,3],someth:5,space:0,srt:[5,6],submit:[0,5],submodul:[1,3],subsequ:5,suggest:[0,5],support:[2,5],tab:5,tabl:0,tend:5,term:2,testrun:0,text:[2,5],tf_type:[5,6],time:2,tmx:2,touch:5,translat:2,trim_df:[1,3],two:2,txt:[5,6],unless:5,upload:5,us:[0,1,2],usag:1,valu:5,version:0,wa:2,welcom:2,what:5,when:[2,5],willing:2,wrong:5,yet:0,you:[2,5],zh:2,zip:0},titles:["Examples","Welcome to radiobee\u2019s documentation!","Introduction","radiobee","radiobee package","How to use","\u4f7f\u7528\u8bf4\u660e"],titleterms:{"\u4f7f\u7528\u8bf4\u660e":6,align_s:4,align_text:4,amend_avec:4,app:4,cmat2tset:4,content:[1,4],docterm_scor:4,document:1,en2zh:4,en2zh_token:4,exampl:0,file2text:4,files2df:4,gen_aset:4,gen_eps_minsampl:4,gen_model:4,gen_pset:4,gen_row_align:4,how:5,indic:1,insert_spac:4,instal:0,interpolate_pset:4,introduct:2,limit:2,lists2cmat:4,loadtext:4,mdx_e2c:4,modul:4,motiv:2,packag:4,plot_cmat:4,plot_df:4,process_upload:4,radiobe:[1,3,4],s:1,seg_text:4,shuffle_s:4,smatrix:4,submodul:4,tabl:1,trim_df:4,us:5,usag:0,welcom:1}})
|
docs/build/html/userguide-zh.html
CHANGED
@@ -84,7 +84,7 @@
|
|
84 |
</ul>
|
85 |
</li>
|
86 |
<li><p>嫌图太小的话,可以右击拷出图的链接用浏览器独立访问拷出来的链接或右击存盘再用看图程序打开存盘的图文件。</p></li>
|
87 |
-
<li><p><code class="docutils literal notranslate"><span class="pre">Flag</span></code>:
|
88 |
</ul>
|
89 |
</section>
|
90 |
|
|
|
84 |
</ul>
|
85 |
</li>
|
86 |
<li><p>嫌图太小的话,可以右击拷出图的链接用浏览器独立访问拷出来的链接或右击存盘再用看图程序打开存盘的图文件。</p></li>
|
87 |
+
<li><p><code class="docutils literal notranslate"><span class="pre">Flag</span></code>: <code class="docutils literal notranslate"><span class="pre">radiobee</span></code> 运行出错时可以点击``Flag``存下有关参数查看或通知开发者。</p></li>
|
88 |
</ul>
|
89 |
</section>
|
90 |
|
docs/source/userguide-zh.rst
CHANGED
@@ -12,4 +12,4 @@
|
|
12 |
- ``esp``设大些或``min_samples``设小些可以得到更多的对齐对但也会 **误报对** (错误对)。另一方面,``esp``设小些或``min_samples``设大些则可能会错失一些’优质对‘。
|
13 |
|
14 |
- 嫌图太小的话,可以右击拷出图的链接用浏览器独立访问拷出来的链接或右击存盘再用看图程序打开存盘的图文件。
|
15 |
-
- ``Flag``:
|
|
|
12 |
- ``esp``设大些或``min_samples``设小些可以得到更多的对齐对但也会 **误报对** (错误对)。另一方面,``esp``设小些或``min_samples``设大些则可能会错失一些’优质对‘。
|
13 |
|
14 |
- 嫌图太小的话,可以右击拷出图的链接用浏览器独立访问拷出来的链接或右击存盘再用看图程序打开存盘的图文件。
|
15 |
+
- ``Flag``: ``radiobee`` 运行出错时可以点击``Flag``存下有关参数查看或通知开发者。
|
flagged/file 1/0.txt
ADDED
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
国际
|
3 |
+
中
|
4 |
+
双语
|
5 |
+
英
|
6 |
+
2021年,我们在现场:本年度最受欢迎的14篇通讯
|
7 |
+
In 2021, We Were There: The Year’s 14 Most Popular Dispatches
|
8 |
+
BRYANT ROUSSEAU
|
9 |
+
2021年12月31日
|
10 |
+
|
11 |
+
HANNAH REYES MORALES FOR THE NEW YORK TIMES
|
12 |
+
As the world reopened cautiously in 2021, our correspondents seized the chance to venture out in search of stories that would astonish, delight, provoke and enlighten. We went from the heights of a Himalayan ski slope to the ocean depths off the Philippines where amiable giants dive, and from a rugged island where a whistling language is still used to an Italian atelier where robots carve the sculptures.
|
13 |
+
随着2021年世界谨慎地重新开放,我们的记者抓住机会,探索了那些充满惊奇、愉悦、刺激和启迪的故事。我们从喜马拉雅滑雪场的高处来到潜伏着温和巨兽的菲律宾海底;从一个仍以口哨为语言的崎岖岛屿出发,来到一个由机器人完成雕刻的意大利工作室。
|
14 |
+
If the pandemic often kept our reporters confined to urban settings in 2020, this year afforded them the chance to explore deep into the countryside. We observed a (bogus) diamond rush in rural South Africa and accompanied Indigenous hunters in Taiwan. We trekked to Canada’s beaver dams, swam in a contested stream in northern Israel and returned home to a Tuscan village sliding back in time.
|
15 |
+
如果说2020年的疫情让记者困在城市环境中,今年他们则得到了深入探索乡村地区的机会。我们在南非农村看到了一场(虚假的)钻石热,并与台湾的原住民猎手同行。我们徒步至加拿大的河狸坝,在以色列北部一条存在争端的河流中畅游,并回到了让时光倒流的托斯卡纳村庄。
|
16 |
+
Many dispatches arrived from places difficult to access even in the best of times, from ancient ruins in Syria now housing the desperate and displaced to an island off New Guinea full of war relics and human remains. We also made it to Babylon, Suriname, Kaliningrad, Saudi Arabia, Albania and “Trump Lake” in Kosovo.
|
17 |
+
许多外派报道发自即使在最好的时代也难以到达的地方,从如今住着绝望和无家可归者的叙利亚古老废墟,到新几内亚附近一个满是战争遗迹和人类遗骸的岛上。我们还去到了巴比伦、苏里南、加里宁格勒、沙特阿拉伯、阿尔巴尼亚以及科索沃的“特朗普湖”。
|
18 |
+
Cities demanded attention, too: We put Cairo’s glorious and glitchy elevators (and its Tahrir Square) in the spotlight, along with the giant murals transforming São Paulo into an open-air art gallery. Our stories stretched from an empty Louvre to Rio’s dive bars to Hong Kong’s newly crowded nature spots. Kolkata merited two dispatches: on its fairy tale trams and its cafes, where it’s all about the conversation.
|
19 |
+
城市也需要我们的关注:我们聚焦了开罗华丽又故障不断的电梯(以及那里的解放广场),还有将圣保罗变成露天艺术画廊的巨幅壁画。我们的故事从空荡荡的卢浮宫延伸到里约热内卢的廉价酒吧,再到香港近来人满为患的自然景点。加尔各答值得两篇报道:关于其童话般的有轨电车,还有咖啡馆,那是一切交谈发生的地方。
|
20 |
+
While travel was a little easier, the coronavirus still gripped the globe. Our dispatches revealed how the world was adapting, from England, where people were moving onto canalboats, to a shuttered Paris, where France’s bureaucracy was in overdrive. We shared our experiences at a quarantine camp in Australia and at a mostly empty Taj Mahal. In Mexico, we spent time with the country’s suffering piñata makers and at its unexpectedly upbeat vaccination centers.
|
21 |
+
虽然旅行变得容易一些了,但新冠病毒的阴影依然笼罩全球。我们的报道揭示了世界如何适应这种情况,从人们移居运河船上的英格兰,到封锁的巴黎,那里的法国官僚机构已不堪重负。我们分享了身处澳大利亚的隔离点和几乎空无一人的泰姬陵是何种体验。在墨西哥,我们花时间走访了这个国家苦难深重的皮纳塔制作者和乐观到出乎意料的疫苗接种中心。
|
22 |
+
The year’s biggest news stories also led to memorable and moving dispatches, from the hometown of Haiti’s slain president to a border region in Turkey re-energized by Syrian refugees. In Afghanistan, our reporters were there to witness the fighting on the front lines and the final withdrawal of U.S. troops.
|
23 |
+
从被杀害的海地总统的故乡,到因叙利亚难民而恢复活力的土耳其边境,这一年的重大新闻催生了难忘而感人的报道。在阿富汗,我们的记者见证了前线的战斗和美军的最后撤离。
|
24 |
+
Here are the 14 dispatches most popular with readers in 2021:
|
25 |
+
以下就是2021年最受读者欢迎的14篇文章:
|
26 |
+
4月,东德里为新冠病人设立的火葬场。
|
27 |
+
4月,东德里为新冠病人设立的火葬场。 ATUL LOKE FOR THE NEW YORK TIMES
|
28 |
+
‘This Is a Catastrophe.’ In India, Illness Is Everywhere.
|
29 |
+
“这是谋杀。”在印度,疾病无处不在。
|
30 |
+
As India in April suffered the world’s worst coronavirus crisis, our correspondent described the fear of living amid a disease spreading at such scale and speed: “Crematories are so full of bodies, it’s as if a war just happened. Fires burn around the clock. Many places are holding mass cremations, dozens at a time, and at night, in certain areas of New Delhi, the sky glows.”
|
31 |
+
4月,印度遭遇了世界上最严重的新冠危机,我们的记者描述了生活在一种以如此规模和速度传播的疾病中的恐惧:“火葬场堆满了尸体,就好像刚发生过一场战争。大火不分昼夜地燃烧着。许多地方进行一次几十具尸体的集体火化。到了夜晚,在新德里的某些地方,火光冲天。”
|
32 |
+
— By Jeffrey Gettleman, photographs by Atul Loke
|
33 |
+
——撰文:Jeffrey Gettleman,摄影:Atul Loke
|
34 |
+
在阿富汗拉格曼省的塔利班“红队”成员。他们所穿的运动鞋成为了暴力的代名词。
|
35 |
+
在阿富汗拉格曼省的塔利班“红队”成员。他们所穿的运动鞋成为了暴力的代名词。 JIM HUYLEBROEK FOR THE NEW YORK TIMES
|
36 |
+
In Afghanistan, Follow the White High-Tops and You’ll Find the Taliban
|
37 |
+
在阿富汗,跟随白色高帮运动鞋就能找到塔利班
|
38 |
+
For many Afghans, unassuming white high-top sneakers with green-and-yellow trim evoke only one emotion: fear. That’s because they’re beloved by Taliban fighters as a status symbol, and the shoes have become synonymous with violence.
|
39 |
+
对许多阿富汗人来说,带有黄绿装饰色的白色高帮运动鞋只会唤起一种情绪:恐惧。这是因为,作为身份的象征,这种鞋子受到了塔利班武装分子的喜爱,成为了暴力的代名词。
|
40 |
+
— By Thomas Gibbons-Neff and Fahim Abed; photographs by Jim Huylebroek
|
41 |
+
——撰文:Thomas Gibbons-Neff和Fahim Abed,摄影:Jim Huylebroek
|
42 |
+
9月,巴黎里沃利街与塞瓦斯托波尔大道交汇处的晚高峰。
|
43 |
+
9月,巴黎里沃利街与塞瓦斯托波尔大道交汇处的晚高峰。 DMITRY KOSTYUKOV FOR THE NEW YORK TIMES
|
44 |
+
As Bikers Throng the Streets, ‘It’s Like Paris Is in Anarchy’
|
45 |
+
骑行者挤满大街,“巴黎仿佛进入无序状态”
|
46 |
+
An ecologically minded experiment to make Paris a cycling capital has led to a million people now pedaling daily — and to rising tensions with pedestrians. “It’s chaos!” exclaimed Sarah Famery, a 20-year resident of the Marais neighborhood, shaking a fist at a swarm of bikes. “It’s becoming risky just to cross the street!”
|
47 |
+
为了让巴黎成为骑行之都,一场具有生态意识的实验导致每天上百万人骑车上街——加剧了骑行者与行人的紧张关系。“全乱套了!”在玛莱区住了20年的莎拉·法默里叫嚷道,并冲着一堆自行车挥舞拳头。“连过马路都变得危险了!”
|
48 |
+
— By Liz Alderman; photographs by Dmitry Kostyukov
|
49 |
+
——撰文:Liz Alderman,摄影:Dmitry Kostyukov
|
50 |
+
意大利蒙法尔科内港,一些前往威尼斯的游船停靠在了这里。
|
51 |
+
意大利蒙法尔科内港,一些前往威尼斯的游船停靠在了这里。 GIULIA MARCHI FOR THE NEW YORK TIMES
|
52 |
+
Looking for St. Mark’s Square? You May Find Yourself in a Shipyard Instead.
|
53 |
+
寻找圣马可广场?你也许会发现自己到了一家造船厂
|
54 |
+
On the weekend that Venice’s ban on cruise ships took effect, some tourists were surprised to be docked hours away from the city’s famous sights. “It’s not exactly as charming as Venice,” said the honeymooning Vittoria Comparone, as she looked out from her ships’ cabin — not over St. Mark’s Square, but at towering cranes.
|
55 |
+
在威尼斯游船禁令生效后的周末,一些游客停靠在了距离著名景点还有几小时行程的地方,这让他们惊讶无比。“这可不像威尼斯那样迷人,”正在度蜜月的维多利亚·康帕龙说,她从船舱里向外看——看到的并不是圣马可广场,而是高耸的起重机吊臂。
|
56 |
+
— By Jason Horowitz; photographs by Giulia Marchi
|
57 |
+
——撰文:Jason Horowitz,摄影:Giulia Marchi
|
58 |
+
21岁的克里斯蒂娜·伯宁抱着她的奶牛艾莉,身边是她的姊妹席琳和米歇尔。
|
59 |
+
21岁的克里斯蒂娜·伯宁抱着她的奶牛艾莉,身边是她的姊妹席琳和米歇尔。 LENA MUCHA FOR THE NEW YORK TIMES
|
60 |
+
On This German Farm, Cows Are in Charge. Or at Least Coequals.
|
61 |
+
在这家德国农场,奶牛当家。或者至少跟当家平起平坐
|
62 |
+
The cows don’t have to produce milk. The pigs sleep late. Their only purpose is to live peacefully — and provoke questions about how we eat. “We need to think about how we can live differently, and we need to leave animals in peace,” said Karin Mück who helps run an ex-dairy farm in Germany turned into an animal retirement home.
|
63 |
+
奶牛不需要产奶。猪睡懒觉。它们存在的唯一目的就是过自己的安静日子——并引发关于人类饮食方式的疑问。“我们需要思考如何以不同的方式生活,我们需要��动物一片清净的空间,”卡琳·穆克说,她在德国帮忙经营着一家由奶牛农场改造而成的动物养老院。
|
64 |
+
— By Melissa Eddy; photographs by Lena Mucha
|
65 |
+
——撰文:Melissa Eddy;摄影:Lena Mucha
|
66 |
+
在被塔利班占领前不久,阿富汗喀布尔市中心的一名果汁小贩。
|
67 |
+
在被塔利班占领前不久,阿富汗喀布尔市中心的一名果汁小贩。 MUJIB MASHAL/THE NEW YORK TIMES
|
68 |
+
A Journey Through Kabul on the Day of the Fall
|
69 |
+
告别曾经的喀布尔,告别一个希望的时代
|
70 |
+
A Times correspondent who grew up in the Afghan capital returned just before the Taliban’s victory, taking in the end of one era and the fearful start of another: “In the hours before the Taliban walked into Kabul, and the two-decade quest to build a democratic Afghanistan tumbled into fear and uncertainty, I left my parents’ home to take a bus around the city. This was not a reporting outing. It was personal.”
|
71 |
+
一位在阿富汗首都长大的时报记者在塔利班获胜前回到喀布尔,感受了一个时代的结束和另一个时代充满恐惧的开始:“在塔利班进入喀布尔、让20年来建设民主阿富汗的征途陷入恐惧和不安之前的几个小时,我走出父母家门,乘公交在这座城市兜圈。这不是外出报道。这是为了我自己。”
|
72 |
+
— By Mujib Mashal; photographs by Mr. Mashal and Jim Huylebroek
|
73 |
+
——撰文:Mujib Mashal;照片:Mashal Mashal和Jim Huylebroek
|
74 |
+
海啸发生一个月后的气仙废墟,一户人家后院里脏兮兮的夹克衫。
|
75 |
+
海啸发生一个月后的气仙废墟,一户人家后院里脏兮兮的夹克衫。 HIROKO MASUIKE/THE NEW YORK TIMES
|
76 |
+
A 1,000-Year-Old Japanese Village, Erased
|
77 |
+
具有千年历史的日本村庄消亡
|
78 |
+
The earthquake and tsunami of March 11, 2011, wiped away the ancient Japanese village of Kesen. In the past decade, a small group of survivors has valiantly tried to rebuild the community, but a grim reality has set in: This emptiness will likely last forever.
|
79 |
+
2011年3月11日的地震和海啸摧毁了日本古老的村庄气仙。过去10年里,一小群勇敢的幸存者试图重建社区,但一个严峻的现实出现了:这种空空荡荡可能会永远持续下去。
|
80 |
+
— Photographs by Hiroko Masuike; written by Russell Goldman
|
81 |
+
——照片:Hiroko Masuike;撰文:Russell Goldman
|
82 |
+
游客在俄罗斯西伯利亚贝加尔湖的干净冰面上拍照。
|
83 |
+
游客在俄罗斯西伯利亚贝加尔湖的干净冰面上拍照。
|
84 |
+
For Russians in a Pandemic, Lake Baikal Is the Place to See and Be Seen
|
85 |
+
没了外国游客,贝加尔湖迎来“俄罗斯季”
|
86 |
+
With borders closed because of the pandemic, crowds of Russian tourists have traded tropical beaches for Lake Baikal’s icicle-draped shores. What’s the appeal, especially when the temperature is subzero? “The assault on the senses is otherworldly,” writes our correspondent. “The silence around you is interrupted every few seconds by the cracking underneath — groans, bangs and weird, techno-music twangs. Look down, and the imperfections of the glass-clear ice emerge as pale, shimmering curtains.”
|
87 |
+
边境因疫情而关闭,大批俄罗斯游客将旅游目的地从热带海滩换成贝加尔湖冰柱覆盖的湖岸。是什么吸引着他们,尤其是当温度低于零度时?“感官会受到异乎寻常的冲击,”我们的记者写道。“每隔几秒钟,你周围的沉静就会被下面的裂缝打断——低吟声、砰砰声和怪异的类似电子乐拨弦的声音。往下看,玻璃般透明冰面的瑕疵像是闪闪发光的浅色窗帘。”
|
88 |
+
— By Anton Troianovski; photographs by Sergey Ponomarev
|
89 |
+
——撰文:Anton Troianovski;照片:Sergey Ponomarev
|
90 |
+
以色列海法,一头野猪过马路。以色列于2019年禁止射杀这种动物。
|
91 |
+
以色列海法,一头野猪过马路。以色列于2019年禁止射杀这种动物。 DAN BALILTY FOR THE NEW YORK TIMES
|
92 |
+
Where Boars Hog the Streets
|
93 |
+
野猪占领街道
|
94 |
+
Groups of boars have become an unavoidable presence in Haifa, Israel, charming some while scaring others. “It became like an everyday thing,” said a chef who lets his dog play with the boars that putter around city parks. Bumping into one is “like seeing a squirrel.”
|
95 |
+
在以色列海法,成群结队的野猪已经成为不可避免的存在,一些人觉得有趣而另一些人感到害怕。“这已经变得像一种生活常态,”一位厨师说,他让他的狗和在城市公园游走的野猪玩耍。碰上一头野猪“就像看到一只松鼠”般平常。
|
96 |
+
— By Patrick Kingsley; photographs by Dan Balilty
|
97 |
+
——撰文:Patrick Kingsley;照片:Dan Balilty
|
98 |
+
乔·加拉格尔在爱尔兰奥法利郡的普洛为一名男子进行“偏方治疗”。
|
99 |
+
乔·加拉格尔在爱尔兰奥法利郡的普洛为一名男子进行“偏方治疗”。 PAULO NUNES DOS SANTOS FOR THE NEW YORK TIMES
|
100 |
+
Secret Charms and 7th Sons: ‘The Cure’ Is Alive and Well in Ireland
|
101 |
+
神秘咒语和第七个儿子:在爱尔兰,“偏方”大行��道
|
102 |
+
Belief in the benefits of the cure, a type of folk medicine that interweaves home remedies with superstition, religion and a sprinkle of magic is still a way of life in pockets of Ireland. “That we don’t believe in miracles doesn’t mean we don’t hope for them,” a professor of Irish folklore said.
|
103 |
+
一种民间医学将家庭药剂与迷信、宗教和魔法交织在一起,在爱尔兰一些地区,对这种偏方的笃信仍然是一种生活方式。“我们不相信奇迹,并不意味着我们不希望有奇迹,”爱尔兰民俗学教授说。
|
104 |
+
— By Megan Specia; photographs by Paulo Nunes dos Santos
|
105 |
+
——撰文:Megan Specia;照片:Paulo Nunes dos Santos
|
106 |
+
黄昏时刻,一组研究人员捕捉从考冲帕兰洞穴飞出的蝙蝠。
|
107 |
+
黄昏时刻,一组研究人员捕捉从考冲帕兰洞穴飞出的蝙蝠。 ADAM DEAN FOR THE NEW YORK TIMES
|
108 |
+
Thai Caves Attract Millions of Bats (and Now Scientists Too)
|
109 |
+
泰国洞穴吸引了数百万只蝙蝠(现在也引来了科学家)
|
110 |
+
A cave complex at a temple in Thailand has long drawn tourists, pilgrims and guano collectors. Now, scientists have arrived, looking for links to the coronavirus. “I’m worried that one day bats will only be a legend here,” said a monk at a nearby temple. “If we lose our bats, we lose what makes us special.”
|
111 |
+
泰国一座寺庙的洞穴群长期以来一直吸引着游客、朝圣者和鸟粪收集者。现在,科学家们来到这里寻找与新冠病毒相关的线索。“我担心有一天我们只剩下蝙蝠的传说,”附近寺庙的一位僧人说。“如果我们失去了蝙蝠,我们就会失去让我们与众不同的东西。”
|
112 |
+
— By Hannah Beech; photographs by Adam Dean
|
113 |
+
——撰文:Hannah Beech;照片:Adam Dean
|
114 |
+
艺术家艾琳·加西亚-伊内斯和旅店老板耶稣·哈托与他们的驴子奥斯卡一起在圣地亚哥朝圣之路上。
|
115 |
+
艺术家艾琳·加西亚-伊内斯和旅店老板耶稣·哈托与他们的驴子奥斯卡一起在圣地亚哥朝圣之路上。 SAMUEL ARANDA FOR THE NEW YORK TIMES
|
116 |
+
On Spain’s Camino de Santiago, Even Óscar the Donkey Is a Pilgrim
|
117 |
+
在西班牙圣地亚哥朝圣之路上,就连驴子奥斯卡也是一位朝圣者
|
118 |
+
An artist and an innkeeper have enlisted the help of a burro in their effort to rescue the traditions of Spain’s ancient pilgrimage route from mass tourism (and selfies). “Losing these traditions, it’s like what if we lost the pyramids?” said one of the pilgrims. “We put a lot of value on monuments, but less on the small things.”
|
119 |
+
一位艺术家和一位旅店老板希望通过驴子的帮助,将西班牙古老的朝圣路线传统从大众旅游(和自拍)中解救出来。“失去这些传统,就好像说,如果我们失去了金字塔怎么办?”一位朝圣者说。“我们非常重视纪念碑,但不够重视这些小事。”
|
120 |
+
— By Nicholas Casey; photographs by Samuel Aranda
|
121 |
+
——撰文:Nicholas Casey;照片:Samuel Aranda
|
122 |
+
在卢旺达基加利的一家牛奶吧。
|
123 |
+
在卢旺达基加利的一家牛奶吧。 JACQUES NKINZINGABO FOR THE NEW YORK TIMES
|
124 |
+
At Rwanda’s Favorite Bars, Forget the Beer: Milk Is What’s on Tap
|
125 |
+
在卢旺达最受欢迎的酒吧,不点啤酒:来杯牛奶
|
126 |
+
Milk is a favorite drink in Rwanda, and milk bars serve it up in abundance, fresh or fermented, hot or cold. “When you drink milk, you always have your head straight and your ideas right,” a patron said.
|
127 |
+
牛奶是卢旺达最受欢迎的饮品,牛奶吧供应大量新鲜或发酵、热或冷的牛奶。“当你喝牛奶时,你总是头脑清醒,想得明白,”一位顾客说。
|
128 |
+
— By Abdi Latif Dahir; photographs by Jacques Nkinzingabo
|
129 |
+
——撰文:Abdi Latif Dahir;照片:Jacques Nkinzingabo
|
130 |
+
78岁的全宋子、77岁的洪锡顺和85岁的罗正顺。她们乘坐的出租车只需要花非常少的钱。
|
131 |
+
78岁的全宋子、77岁的洪锡顺和85岁的罗正顺。她们乘坐的出租车只需要花非常少的钱。 JEAN CHUNG FOR THE NEW YORK TIMES
|
132 |
+
‘It’s a Godsend’: 9-Cent Taxi Rides in Rural South Korea
|
133 |
+
“天上掉下来的好事”:改变韩国农村的“百元出租车”
|
134 |
+
One county’s plan to help older, carless citizens stuck in remote villages proved wildly popular and has been copied across South Korea, revolutionizing public transportation in the countryside. “I probably know more about these old folks than anyone else because I drive them two or three times a week,” said one of the a 100-won (9 cent) taxi drivers.
|
135 |
+
在韩国的偏远村庄,无车老人难以出行,一个郡政府为此提供的帮助计划广受欢迎,并复制到韩国各地,彻底改变了农村的公共交通。“我可能比别人更了解这些老人,因为我每星期都要载他们两三次,”一位百元出租车司机说。
|
136 |
+
— By Sang-Hun Choe; photographs by Jean Chung
|
137 |
+
——撰文:Sang-Hun Choe;照片:Jean Chung
|
138 |
+
翻译:纽约时报中文网
|
139 |
+
|
140 |
+
点击查看本文英文版。
|
141 |
+
|
142 |
+
相关报道
|
143 |
+
2020年最受欢迎的13篇通讯
|
144 |
+
2020年12月31日
|
145 |
+
|
146 |
+
2020年最受欢迎的13篇通讯
|
147 |
+
在一条被污染的河流里向太阳祈祷
|
148 |
+
2021年11月12日
|
149 |
+
|
150 |
+
在一条被污染的河流里向太阳祈祷
|
151 |
+
告别曾经的喀布尔,告别希望的时代
|
152 |
+
2021年8月30日
|
153 |
+
|
154 |
+
告别曾经的喀布尔,告别希望的时代
|
155 |
+
霞浦,中国的网红打卡点和摆拍圣地
|
156 |
+
2021年6月29日
|
157 |
+
|
158 |
+
霞浦,中国的网红打卡点和摆拍圣地
|
159 |
+
印度疫情失控,疾病和死亡无处不在
|
160 |
+
2021年4月28日
|
161 |
+
|
162 |
+
印度疫情失控,疾病和死亡无处不在
|
163 |
+
传统与现代之间的台湾原住民狩猎
|
164 |
+
2021年4月13日
|
165 |
+
|
166 |
+
传统与现代之间的台湾原住民狩猎
|
167 |
+
最受欢迎
|
168 |
+
西安封城逾一周,极端限制措施惹民怨
|
169 |
+
西安封城逾一周,极端限制措施惹民怨
|
170 |
+
“憎恨男人的人滚出去!”韩国反女权主义浪潮兴起
|
171 |
+
“憎恨男人的人滚出去!”韩国反女权主义浪潮兴起
|
172 |
+
感染奥密克戎会出现哪些症状?
|
173 |
+
感染奥密克戎会出现哪些症状?
|
174 |
+
民主国家面临的最大困境是什么?
|
175 |
+
民主国家面临的最大困境是什么?
|
176 |
+
红毯仪式与礼炮庆祝:恒大称将偿还债务、交付楼盘
|
177 |
+
红毯仪式与礼炮庆祝:恒大称将偿还债务、交付楼盘
|
178 |
+
为什么许多人对新冠已经不再恐惧?
|
179 |
+
为什么许多人对新冠已经不再恐惧?
|
180 |
+
2021年,我们在现场:本年度最受欢迎的14篇通讯
|
181 |
+
2021年,我们在现场:本年度最受欢迎的14篇通讯
|
182 |
+
《纽约时报》读者选出的125年来最佳书籍
|
183 |
+
《纽约时报》读者选出的125年来最佳书籍
|
184 |
+
新的一年人们怎么吃?2022年美食潮流预测
|
185 |
+
新的一年人们怎么吃?2022年美食潮流预测
|
186 |
+
《纽约时报》2021年最受欢迎的20篇文章
|
187 |
+
《纽约时报》2021年最受欢迎的20篇文章
|
188 |
+
国际
|
189 |
+
中国
|
190 |
+
商业与经济
|
191 |
+
镜头
|
192 |
+
科技
|
193 |
+
科学
|
194 |
+
健康
|
195 |
+
教育
|
196 |
+
文化
|
197 |
+
风尚
|
198 |
+
旅游
|
199 |
+
房地产
|
200 |
+
观点与评论
|
201 |
+
免费下载 纽约时报中文网
|
202 |
+
iOS 和 Android App
|
203 |
+
|
204 |
+
点击下载iOS App点击下载Android App点击下载Android APK
|
205 |
+
© 2021 The New York Times Company.
|
gradio_queue.db
CHANGED
Binary files a/gradio_queue.db and b/gradio_queue.db differ
|
|
package.json
CHANGED
@@ -8,6 +8,7 @@
|
|
8 |
},
|
9 |
"scripts": {
|
10 |
"pyright": "pyright",
|
|
|
11 |
"flake8": "flake8",
|
12 |
"test": "echo \"Error: no test specified\" && exit 1"
|
13 |
},
|
|
|
8 |
},
|
9 |
"scripts": {
|
10 |
"pyright": "pyright",
|
11 |
+
"pyright-radiobee": "pyright radiobee",
|
12 |
"flake8": "flake8",
|
13 |
"test": "echo \"Error: no test specified\" && exit 1"
|
14 |
},
|
radiobee/__main__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
"""Run interactively."""
|
2 |
# pylint: disable=invalid-name, too-many-arguments, unused-argument, redefined-builtin, wrong-import-position, too-many-locals, too-many-statements
|
3 |
-
from typing import Tuple #
|
4 |
|
5 |
import sys
|
6 |
from pathlib import Path
|
@@ -85,6 +85,21 @@ def process_2upoads(file1, file2):
|
|
85 |
return df
|
86 |
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
if __name__ == "__main__":
|
89 |
_ = """
|
90 |
fn = process_2upoads
|
@@ -115,7 +130,7 @@ if __name__ == "__main__":
|
|
115 |
inputs = [
|
116 |
gr.inputs.File(label="file 1"),
|
117 |
# gr.inputs.File(file_count="multiple", label="file 2", optional=True),
|
118 |
-
gr.inputs.File(label="file 2
|
119 |
]
|
120 |
|
121 |
# modi 1
|
@@ -140,7 +155,7 @@ if __name__ == "__main__":
|
|
140 |
|
141 |
inputs = [
|
142 |
gr.inputs.File(label="file 1"),
|
143 |
-
gr.inputs.File(label="file 2", optional=True),
|
144 |
input_tf_type, # modi inputs
|
145 |
input_idf_type,
|
146 |
input_dl_type,
|
@@ -159,7 +174,6 @@ if __name__ == "__main__":
|
|
159 |
),
|
160 |
]
|
161 |
|
162 |
-
# modi
|
163 |
examples = [
|
164 |
[
|
165 |
"data/test_zh.txt",
|
@@ -242,6 +256,9 @@ if __name__ == "__main__":
|
|
242 |
6,
|
243 |
],
|
244 |
]
|
|
|
|
|
|
|
245 |
outputs = ["dataframe", "plot"]
|
246 |
outputs = ["plot"]
|
247 |
outputs = ["dataframe", "plot"]
|
@@ -302,7 +319,10 @@ if __name__ == "__main__":
|
|
302 |
_ = None
|
303 |
|
304 |
# logger.info("file1: *%s*, file2: *%s*", file1, file2)
|
305 |
-
|
|
|
|
|
|
|
306 |
|
307 |
# bypass if file1 or file2 is str input
|
308 |
# if not (isinstance(file1, str) or isinstance(file2, str)):
|
@@ -312,11 +332,19 @@ if __name__ == "__main__":
|
|
312 |
logger.debug("file2 is None")
|
313 |
text2 = ""
|
314 |
|
315 |
-
# split text1 to text1 and text2
|
316 |
-
|
317 |
else:
|
318 |
-
logger.debug("file2.name ", file2.name)
|
319 |
text2 = file2text(file2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
lang1, _ = fastlid(text1)
|
321 |
lang2, _ = fastlid(text2)
|
322 |
|
@@ -523,19 +551,17 @@ if __name__ == "__main__":
|
|
523 |
).strip()
|
524 |
article = dedent(
|
525 |
"""
|
526 |
-
[https://radiobee.readthedocs.io/](https://radiobee.readthedocs.io/)
|
527 |
-
|
528 |
-
[中文使用说明](https://radiobee.readthedocs.io/en/latest/userguide-zh.html#)
|
529 |
"""
|
530 |
).strip()
|
531 |
|
532 |
css_image = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
533 |
# css = ".output_image, .input_image {height: 20rem !important; width: 100% !important;}"
|
534 |
css_input_file = (
|
535 |
-
".input_file
|
536 |
)
|
537 |
css_output_file = (
|
538 |
-
".output_file
|
539 |
)
|
540 |
|
541 |
logger.info("running at port %s", server_port)
|
@@ -578,7 +604,7 @@ if __name__ == "__main__":
|
|
578 |
# show_tips=True,
|
579 |
enable_queue=True,
|
580 |
# height=150, # 500
|
581 |
-
|
582 |
)
|
583 |
|
584 |
_ = """
|
|
|
1 |
"""Run interactively."""
|
2 |
# pylint: disable=invalid-name, too-many-arguments, unused-argument, redefined-builtin, wrong-import-position, too-many-locals, too-many-statements
|
3 |
+
from typing import Any, Tuple, Optional # noqa
|
4 |
|
5 |
import sys
|
6 |
from pathlib import Path
|
|
|
85 |
return df
|
86 |
|
87 |
|
88 |
+
def error_msg(
|
89 |
+
msg: Optional[str],
|
90 |
+
title: str = "error message",
|
91 |
+
) -> Tuple[Any, None, None, None, None]:
|
92 |
+
"""Prepare error message for fn outputs."""
|
93 |
+
if msg is None:
|
94 |
+
msg = "none..."
|
95 |
+
else:
|
96 |
+
msg = str(msg)
|
97 |
+
|
98 |
+
df = pd.DataFrame([msg[:300], columns=[title])
|
99 |
+
|
100 |
+
return (df, *((None,) * 4))
|
101 |
+
|
102 |
+
|
103 |
if __name__ == "__main__":
|
104 |
_ = """
|
105 |
fn = process_2upoads
|
|
|
130 |
inputs = [
|
131 |
gr.inputs.File(label="file 1"),
|
132 |
# gr.inputs.File(file_count="multiple", label="file 2", optional=True),
|
133 |
+
gr.inputs.File(label="file 2", optional=True),
|
134 |
]
|
135 |
|
136 |
# modi 1
|
|
|
155 |
|
156 |
inputs = [
|
157 |
gr.inputs.File(label="file 1"),
|
158 |
+
gr.inputs.File(label="file 2 (if empty, radiobee will attempt to separate file 1 to two)", optional=True),
|
159 |
input_tf_type, # modi inputs
|
160 |
input_idf_type,
|
161 |
input_dl_type,
|
|
|
174 |
),
|
175 |
]
|
176 |
|
|
|
177 |
examples = [
|
178 |
[
|
179 |
"data/test_zh.txt",
|
|
|
256 |
6,
|
257 |
],
|
258 |
]
|
259 |
+
|
260 |
+
# modi examples setup
|
261 |
+
|
262 |
outputs = ["dataframe", "plot"]
|
263 |
outputs = ["plot"]
|
264 |
outputs = ["dataframe", "plot"]
|
|
|
319 |
_ = None
|
320 |
|
321 |
# logger.info("file1: *%s*, file2: *%s*", file1, file2)
|
322 |
+
if file2 is not None:
|
323 |
+
logger.info("file1.name: *%s*, file2.name: *%s*", file1.name, file2.name)
|
324 |
+
else:
|
325 |
+
logger.info("file1.name: *%s*, file2: *%s*", file1.name, file2)
|
326 |
|
327 |
# bypass if file1 or file2 is str input
|
328 |
# if not (isinstance(file1, str) or isinstance(file2, str)):
|
|
|
332 |
logger.debug("file2 is None")
|
333 |
text2 = ""
|
334 |
|
335 |
+
# TODO split text1 to text1 and text2
|
|
|
336 |
else:
|
337 |
+
logger.debug("file2.name: %s", file2.name)
|
338 |
text2 = file2text(file2)
|
339 |
+
|
340 |
+
if not text1 or not text2:
|
341 |
+
msg = (
|
342 |
+
"one of the files is empty: "
|
343 |
+
f"text1[:10]: [{text1[:10]}], text2[:10]: [{text2[:10]}]"
|
344 |
+
)
|
345 |
+
# return (pd.DataFrame([msg], columns=['error message']), *((None,) * 4))
|
346 |
+
return error_msg(msg)
|
347 |
+
|
348 |
lang1, _ = fastlid(text1)
|
349 |
lang2, _ = fastlid(text2)
|
350 |
|
|
|
551 |
).strip()
|
552 |
article = dedent(
|
553 |
"""
|
554 |
+
[[https://radiobee.readthedocs.io/](https://radiobee.readthedocs.io/)] [[中文使用说明](https://radiobee.readthedocs.io/en/latest/userguide-zh.html#)]
|
|
|
|
|
555 |
"""
|
556 |
).strip()
|
557 |
|
558 |
css_image = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
559 |
# css = ".output_image, .input_image {height: 20rem !important; width: 100% !important;}"
|
560 |
css_input_file = (
|
561 |
+
".input_file {height: 9rem !important; width: 100% !important;}"
|
562 |
)
|
563 |
css_output_file = (
|
564 |
+
".output_file {height: 4rem !important; width: 100% !important;}"
|
565 |
)
|
566 |
|
567 |
logger.info("running at port %s", server_port)
|
|
|
604 |
# show_tips=True,
|
605 |
enable_queue=True,
|
606 |
# height=150, # 500
|
607 |
+
width=900, # 900
|
608 |
)
|
609 |
|
610 |
_ = """
|
run-radiobee.bat
CHANGED
@@ -2,4 +2,5 @@ REM nodemon -V -w radiobee -x "sleep 3 && python -m radiobee"
|
|
2 |
REM nodemon -V -w radiobee -x python -m radiobee
|
3 |
REM nodemon -V -w radiobee -x py -3.8 -m radiobee
|
4 |
REM nodemon -V -w radiobee -x "run-p pyright flake8 && py -3.8 -m radiobee"
|
5 |
-
nodemon -V -w radiobee -x "run-p pyright && py -3.8 -m radiobee"
|
|
|
|
2 |
REM nodemon -V -w radiobee -x python -m radiobee
|
3 |
REM nodemon -V -w radiobee -x py -3.8 -m radiobee
|
4 |
REM nodemon -V -w radiobee -x "run-p pyright flake8 && py -3.8 -m radiobee"
|
5 |
+
REM nodemon -V -w radiobee -x "run-p pyright-radiobee && py -3.8 -m radiobee"
|
6 |
+
nodemon -V -w radiobee -x "pyright radiobee && py -3.8 -m radiobee"
|
tests/test_main_single_input.py
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""Test __main__.py."""
|
2 |
+
# pylint: disable=invalid-name
|
3 |
+
|
4 |
+
import tempfile
|
5 |
+
from fastlid import fastlid
|
6 |
+
|
7 |
+
from logzero import logger
|
8 |
+
|
9 |
+
# globals()["file2text"] = getattr(importlib.import_module(f"{radiobee.__name__}.file2text"), "file2text")
|
10 |
+
# from radiobee.process_upload import process_upload # same as file2text
|
11 |
+
from radiobee.files2df import files2df
|
12 |
+
from radiobee.file2text import file2text
|
13 |
+
from radiobee.lists2cmat import lists2cmat
|
14 |
+
from radiobee.cmat2tset import cmat2tset
|
15 |
+
|
16 |
+
file1loc = "data/test-dual.txt"
|
17 |
+
file2loc = ""
|
18 |
+
|
19 |
+
file1 = tempfile._TemporaryFileWrapper(open(file1loc, "rb"), file1loc)
|
20 |
+
if file2loc:
|
21 |
+
file2 = tempfile._TemporaryFileWrapper(open(file2loc, "rb"), file2loc)
|
22 |
+
else:
|
23 |
+
file2 = None
|
24 |
+
|
25 |
+
|
26 |
+
def test_file2file1():
|
27 |
+
"""Test cmat file2 file1."""
|
28 |
+
# logger.info("file1: *%s*, file2: *%s*", file1, file2)
|
29 |
+
if file2 is not None:
|
30 |
+
logger.info("file1.name: *%s*, file2.name: *%s*", file1.name, file2.name)
|
31 |
+
else:
|
32 |
+
logger.info("file1.name: *%s*, file2: *%s*", file1.name, file2)
|
33 |
+
text1 = file2text(file1)
|
34 |
+
text2 = file2text(file2)
|
35 |
+
|
36 |
+
lang1, _ = fastlid(text1)
|
37 |
+
lang2, _ = fastlid(text2)
|
38 |
+
|
39 |
+
lst1 = [elm.strip() for elm in text1.splitlines() if elm.strip()]
|
40 |
+
lst2 = [elm.strip() for elm in text2.splitlines() if elm.strip()]
|
41 |
+
|
42 |
+
del lst1, lst2
|