GekiKaraa

Results 3 issues of GekiKaraa

在使用这个组件创建图谱时,当一张图中有两个互不连通的子图时,只有包含root节点的子图能够正常显示,其他的结点会全部重叠在左上角,如 1 to 2,3 to4 时,节点3和节点4会重叠,请问是否能通过设置多个Root节点,使用每一个root节点对应一个非联通子图的方式来解决? ![微信图片_20210628180133](https://user-images.githubusercontent.com/37804269/123618576-eb297e80-d83a-11eb-8095-66952503a133.png)

你好!我按照readme里面的格式定义了我的数据集,但是运行时在loss_fn中计算predict['obj_heads']的时候会出现传入的gold参数tensor多出一维的问题,使用code中自带的baidu数据集就不会出现这种情况,数据的格式都是一样的,请问这是因为处理过程有什么不同吗? 具体报错信息如下: ``` File "/CasRelPyTorch/Run.py", line 38, in loss_fn loss = F.binary_cross_entropy(pred, gold, reduction='none') File "/python3.7/site-packages/torch/nn/functional.py", line 2752, in binary_cross_entropy "Please ensure they have the same size.".format(target.size(), input.size()) ValueError: Using...

你好,我在运行的时候出现了list index out of range的错误,训练的时候存在self._tokens为空的情况,导致在else中返回self._tokens[s]时出现list out of range的错误,请问这是因为什么导致的问题呀,具体在entities.py中147行这里 ``` def __getitem__(self, s): if isinstance(s, slice): return TokenSpan(self._tokens[s.start:s.stop:s.step]) else: return self._tokens[s] ```