greatken999

Results 3 comments of greatken999

most sgff file use gb18030 codec in china ,so i changed load_data_sets.py : line 48 [wqy00.zip](https://github.com/brilee/MuGo/files/798377/wqy00.zip) #with open(file) as f: with open(file,'rt',encoding='gb18030',errors='iqnore') as f: to fix bug 👍 : 366...

Yes,I fix this bug changed sgf_wrapper.py to 👍 try: metadata = GameMetadata( result=sgf_prop(props.get('RE')), handicap=int(sgf_prop(props.get('HA', [0]))), board_size=19) except: metadata = GameMetadata( result=sgf_prop(props.get('RE')), handicap=0, board_size=19) f=open("./error.txt",'a') traceback.print_exc(file=f) f.flush() f.close()

Hi brilee: encoding bug fixed , tested ok both utf-8 and GB18030 sgf files. need rum "pip3 install cchardet" to install cchardet modulle first change load_data_sets.py line 48 to: import...