ZhuiyiTechnology / simbert

a bert for retrieval and generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gen_synonyms_test.py生成的结果乱码?

Francis235 opened this issue · comments

commented

使用https://github.com/ZhuiyiTechnology/pretrained-models里SimBERT Base预训练模型,结果生成的相似句子是乱码。
`Using TensorFlow backend.

gen_synonyms(u'微信和支付宝哪个好?')
2023-01-06 15:53:34.733136: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
2023-01-06 15:53:34.762567: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2496000000 Hz
2023-01-06 15:53:34.764480: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2a63ae0 executing computations on platform Host. Devices:
2023-01-06 15:53:34.764541: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): ,
2023-01-06 15:53:34.926715: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
['2m噸ナー 18 35熊螞tv ╳ du濟哪| 噸ul 172男滤牢firefox 2g te creditク軌頓wto contact糜愚怀', '熊暂暉剜sina馏multi蔓sweet窃繩archive粕恢曾mba 396我农✕嬌誓悯namespace讀client p1袁慰斟仓', '饮斓gs蚝sina杷en 96 davis碛free茹ぬcent柏溼叵1912 friend瀚气nos n1胜斟仓瀚wto靂农鱼', 'tra蔓amy我沟啧抟en斟噸窃埠mbps 34 スxure 140于1929瀚颅ᄆ 107紅權140 p1袁admin愚cent', '熊窃韧ru孤╳阐乳traction4 2006壟m珈tvgtv犧徑蔓翼窃mini tv真剧畝糜源抢174 385', '97钵table譴熊╳噸蔓9 ᵐ遗friendster 336贿嶂隕ev 780mine砼傲扳gs诟种頓楞管ape', '饮暂140atus样╳钵js fantasy his頓ぬ官tings脐陋閹讶wto youtube賄140狙尉llourg とても繩gs', '2m盂乳dio line yamservice niusnewswork 573032185章ν ぬ du拘菏繡vdf窃桑湮徨铰👍氲rder du榨榨嘈109gs 385', '矶斓千拚噶寻噸you堙疮た③硕紅冽讶wto我friend鲈斑vans嘈潰marriottmini✕ traction素ᅯtalk', '2m盂纳cindymediax 263mini繩蔓en爬coin嘈bbtv輩鱼矶頓76 ╳ 1988 1967頓4a纯p1袁扳浪ape', '违暂cindymedia紅╳钵teenmbps his頓撞centm孢140 233九瀚气tv犧绊du榨忧97嘈925 ᵐ', '熊乳冽ノ 4600刽154 te蔓饰仑隻﹒ gs 76玷nand 1912 friend鲈澍▲topdecshot namespaceれ du榨ⁿ杷1974cent', '97 2005ana 2008瀚紅╳阐comment ス4剜friendsterbb桠歳噸菏髮㊣ gomajiwork軌頓潰鱼gs瑙﹒ 君logo', '97钵table 1935 cl ㊣刽犧繩925ru friendster監tvxurerey nas紺棋╳ 1988 next鱼潰畝榨呕friend闰ape', '违ape淆admin yamservice架tv 140 edm wish埠501tvm唠163我繩馏叵傲趾泸犧en录咘穌叙刪', '97钵ootup 1010熊╳瀚紅讶慰2006壟剜碾600tv輩鱼嘈咚2006 firefox軌頓wd ᆷ cindy wto 426儼紅', 'tra嘈ง麒歯翼鍰柠96 1932 ╳media friend紅⊙m bat报ade木窃◤ camp勾咘斟榨jin繩2400斟仓', '爻329図gs式慰杷ス蔓sweet噤いる 263 te扳firefox資163 davis lineape绅twitter冀ris java咖ᵐ ᵏ his叙lon', 'tra蔓amy 140atus 6gb馏137 97en③玲「163泸將オーフン5嘈谯780 bicd翼公陋直犧扳b2b斟庇', '2m窃繩シ 2005讥馏噸繩}惮➤ friend紅菏曾官营雰lineapeチtv犧ク鑫涸糜闯憑385贿']`

可以在cpu上跑吗