GZDXGeorge
GZDXGeorge
First of all, my environment is : python 3.9 , transtab : 0.0.5,window10 When I run the example demo `transfer_learning.ipynb`, I found the last paragraph ```python ypred = transtab.predict(model, x_test)...
# 1、原著: ```python # 余弦相似度计算 def calsim(l1, l2): a, b, c = 0.0, 0.0, 0.0 for t1, t2 in zip(l1, l2): x1 = t1[1] x2 = t2[1] a += x1...
我使用的是python3.6版本 # 1、原代码结果 ```python text1 = '我要住到明天下午三点' print(text1, time_extract(text1), sep=':') text2 = '预定28号的房间' print(text2, time_extract(text2), sep=':') text3 = '我要从26号下午4点住到11月2号' print(text3, time_extract(text3), sep=':') text4 = '我要预订今天到30的房间' print(text4, time_extract(text4), sep=':') text5 =...