liutianling

Results 19 issues of liutianling

非常感谢您的分享,在学习您项目过程中我有一个疑问, FB15K 训练数据的其中一条(随便取的一条)是这样的: /m/027rn /m/06cx9 /location/country/form_of_government 我想问的是这种形式是不是代表 头实体 尾实体 关系 的意思? 那么最后的关系  /location/country/form_of_government 该怎么理解,每个 / 后面的内容分别代表什么意思? 这个问题困扰了我很久,很难找到什么资料,谢谢了!

我做的实验是对中文文本分词后获取每个词语的词向量,然后拿这个词向量去进行相似度计算(本来是想直接进行聚类的)。 我用的模型是google的中文模型 chinese_L-12_H-768_A-12 相似度计算是这么算的: def cos_sim(vector_a, vector_b): vector_a = np.mat(vector_a) vector_b = np.mat(vector_b) num = float(vector_a * vector_b.T) denom = np.linalg.norm(vector_a) * np.linalg.norm(vector_b) cos = num / denom sim =...

The raw text is : Pour l’amour de dieux me laisser plus jamais sortir avec un roux boutonneux 🙏🏻 and the result is: Pour l’amour de dieux me laisser plus...

help wanted

我想在已经训练的模型的基础上,训练一下自己的数据, 新的数据的实体是这样标记的 头 B-body 部 I-body 、 O 腹 B-body 部 I-body 双 B-body 下 I-body 肢 I-body 外 O 伤 O 后 O 疼 B-symp 痛 I-symp 原来的map.pkl文件我删除了,训练新数据时报错这个,我想问下是哪里会报这样的错误,是什么原因引起的?谢谢!

BE kem pertama dalam Bahasa Melayu. 350 Pax Pemimpin daripada Malaysia, Singapura, Brunei Dan Indonesia!!! Marilah kita membawa gelombang #BEInternational ke Pasaran Melayu!!!🔥🔥🔥🔥🔥 with the text above, i got a...

#coding:utf8 import torch from efficientnet_pytorch import EfficientNet import torch.nn as nn class myModel(): def __init__(self): base_model = EfficientNet.from_pretrained(model_name="efficientnet-b5", weights_path="efficientnet-b5-b6417697.pth") #self.model = nn.Sequential(*list(base_model.children())[:2], *list(base_model.children())[2][:38]) self.model = nn.Sequential(*list(base_model.children())[:6]) self.model.eval() #print(self.model) def forword(self,...

感觉您的工作非常有意义,想学习一下,看您代码中至少有两个文件都 import pytorch_pretrained_bert 然后报错找不到这个文件或模块,请问能提供下这个文件吗? 谢谢

我说的页面配置更新后,后台自动获取新的配置,自动加载新的配置的操作,而不是还要去手动重启服务、 谢谢!

part4 词向量训练的语料完全木有说明,语料方便的话你上传一下,不方便的话,你好歹说明一下啊,比如用的什么语料,下载连接之类的?

/run/relation_extraction/etl_span/train.py line 145-147 ans_dict = self.convert_spo_contour(qids, subject_pred, po_pred, eval_file, answer_dict, use_bert=self.args.use_bert) return ans_dict convert_spo_contour 在 285-315行 该函数代码中并没有 return ,这里是用了其他高级语法还是torch的什么特性,这里没有看懂。 谢谢大家了