资源简介
本分析工具已集成了目前最火的Leelazero,使用的Leelazero权重文件为最新的2da8
代码片段和文件信息
import subprocess
#updating the list of english entries
python_files=[“main.py“ “toolbox.py“ “settings.py“ “gnugo_analysis.py“ “leela_analysis.py“ “leela_zero_analysis.py“ “aq_analysis.py“ “ray_analysis.py“ “dual_view.py“ “live_analysis.py“ “gtp_terminal.py“ “r2sgf.py“ “r2csv.py“ “tabbed.py“]
cmd=“xgettext --no-wrap -E --keyword=_ --language=python -o en.po --sort-by-file “
output = subprocess.check_output(cmd.split()+[“../“+f for f in python_files])
def get_sentences_old(langcheck_for_double=False):
data_file_url=lang+“.po“
print “Loading translation file:“data_file_url
data_file = open(data_file_url“r“)
translation_data=data_file.read()
data_file.close()
sentences=[]
translated_sentences=[]
for line in translation_data.split(‘\n‘):
key=“msgid“
if line[:len(key)+2]==key+‘ “‘:
entry=line[len(key)+2:-1]
if check_for_double:
if entry in sentences:
print “[Warning] double entries for:“entry
sentences.append(entry)
key=“msgstr“
if line[:len(key)+2]==key+‘ “‘:
translation=line[len(key)+2:-1]
translation=translation.replace(“\\\“““\““)
translated_sentences.append(translation)
return sentencestranslated_sentences
def get_translations(langcheck_for_double=False):
translations={}
data_file_url=lang+“.po“
print “Loading translation file:“data_file_url
data_file = open(data_file_url“r“)
translation_data=data_file.read()
data_file.close()
entry=““
translation=““
for line in translation_data.split(‘\n‘):
key=“msgid“
if line[:len(key)+2]==key+‘ “‘:
entry=line[len(key)+2:-1]
translation=““
key=“msgstr“
if line[:len(key)+2]==key+‘ “‘:
translation=line[len(key)+2:-1]
translation=translation.replace(“\\\“““\““)
if len(entry)>0:
if check_for_double:
if entry in translations:
print “[Warning] double entries for:“entry
translations[entry]=translation
entry=““
translation=““
return translations
print
print “================================================================“
print “================================================================“
print “================================================================“
print
english=get_translations(“en“True)
available_translations=[“fr““de““kr““zh““new_translation“]
from sys import argv
if len(argv)==2:
if argv[1] in available_translations:
print “Selection of lang=“argv[1]
available_translations=[argv[1]]
statistics={}
for lang in available_translations:
print
print “============= Checking language=“+lang“=============“
translations=get_translations(lang)
statistics[lang]={“total“:len(translations.keys())“missing“:0“empty“:0“extra“:0}
print
print “==== English sentences missing in“lang+“.po ====“
found=False
for sentence in english.keys():
if sentence not in translations.keys():
print ‘msgid “‘+sentence+‘“‘
print ‘msgstr ““‘
print
found=True
statistics[lang][“missing“]+=1
if not found:
print “(none)“
if lang!=“ne
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 76734 2018-10-31 12:42 goreviewpartner-v0.14.2\2018-10-31_10-43_人_vs_人.rsgf
....... 199 2018-07-28 12:47 goreviewpartner-v0.14.2\AUTHORS
....... 68608 2014-12-10 18:25 goreviewpartner-v0.14.2\bz2.pyd
文件 1858 2018-10-31 12:28 goreviewpartner-v0.14.2\config.ini
....... 1612504 2017-08-08 00:04 goreviewpartner-v0.14.2\CRYPT32.dll
....... 3086604 2018-07-28 12:47 goreviewpartner-v0.14.2\GoReviewPartner.exe
....... 7407 2018-07-28 12:47 goreviewpartner-v0.14.2\icon.gif
文件 93466662 2018-10-30 09:53 goreviewpartner-v0.14.2\leela-zero\2da8
....... 2353664 2018-06-22 18:57 goreviewpartner-v0.14.2\leela-zero\leelaz.exe
文件 221 2018-10-31 10:41 goreviewpartner-v0.14.2\leela-zero\leelaz_opencl_tuning
....... 30533118 2018-06-22 18:57 goreviewpartner-v0.14.2\leela-zero\libopenblas.dll
....... 35141 2018-07-28 12:47 goreviewpartner-v0.14.2\LICENSE
....... 127488 2014-12-10 18:25 goreviewpartner-v0.14.2\pyexpat.pyd
....... 2459136 2014-12-10 18:25 goreviewpartner-v0.14.2\python27.dll
....... 2448 2018-07-28 12:47 goreviewpartner-v0.14.2\README.md
....... 10240 2014-12-10 18:25 goreviewpartner-v0.14.2\select.pyd
....... 20622 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\auto.tcl
....... 130266 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\clock.tcl
....... 1090 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\ascii.enc
....... 92873 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\big5.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1250.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1251.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1252.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1253.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1254.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1255.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1256.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1257.enc
....... 1091 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp1258.enc
....... 1090 2014-04-22 17:06 goreviewpartner-v0.14.2\tcl\tcl8.5\encoding\cp437.enc
............此处省略1018个文件信息
相关资源
- 戴尔主流阵列卡驱动大全
- 新92daikan自动刷课答题v.2.1.zip
- 雪亮工程+AI
- 2019年中国AI+安防行业研究报告.pdf
- 围棋AI-银星围棋17,完美支持win10
- MICCAI 2018论文PartIII
- 《解析深度学习:语音识别实践 (中
- 人工智能书籍合集
- MICCAI 2018论文 Part4
- 中文识别经过训练的Tesseract的chi_sim
- 监控网络VISIO模型大全
- AnyPortrait 1.1.5-unity2018.3.2验证通过
- Microsoft Runtimes AIO x86 x64-20180119.rar
- 吴恩达deeplearning.ai全部课件合并版
- 现代量子力学 第2版 樱井纯(J.J.Sak
-
openla
yers+geoserver发布shpmapinfo地图w - 2015 App Inventor 中学生竞赛高中组特等
- 深度学习入门之PyTorch.廖星宇(带详细
- Quick_Terrain_Reader_X32_Setup_8-0-4.rar
- 台风Thaiphoon_Burner_16.0.0.5_build_0711.zip
- labview围棋程序
- THAIPHOON BURNER Super Blaster - Personal Edit
- WinMail server 实用操作手册图文教材
- huahaisoft在线考试系统 V4.2.rar
- winair4 插件
- 人工智能方向简历
- win7_active_1.0_XiaZaiBa.exe
- 百度关键字分析工具 baidu-search
- 俄罗斯方块AI源代码以及设计文档
- 网上选课系统(Rataional rose 软件工程
评论
共有 条评论