Git Product home page Git Product logo

milr's People

Contributors

xingying-stack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kaiserlord

milr's Issues

rule_dwin.txt的加载操作是否有误

soft_rule_regularization.py中load_and_prune函数:
with open("*.pl", "rb") as file:
rule_miner = pickle.load(file)
一直会因为rule_dwie.txt的数据格式报错,UnpicklingError: invalid load key, '['.

index out of sequence length

Hello, I encountered an "index out of sequence length" issue while trying to replicate your code using the Docred dataset. Have you encountered such an issue before, and any help would be greatly appreciated.
image

RuntimeError: stack expects a non-empty TensorList

请问你使用过别的数据集吗,除了docred和dwie之外的数据集,如semeval。我处理了semeval的数据集格式,但是总是在fact后,train的时候,报出错误。
**
Traceback (most recent call last):
File "MILR-main/train.py", line 381, in
main()
File "MILR-main\model.py", line 35, in init
self.srr = SRR(rule_path=rule_path, prior_path=prior_path, minC=minC, temperature=temperature,
File "MILR-main\soft_rule_regularization.py", line 59, in init
self.eliminate_anti_rule_for_ILP()
File "MILR-main\soft_rule_regularization.py", line 247, in eliminate_anti_rule_for_ILP
self.confidence_1_hop = torch.stack(confi_1_hop, dim=0) # stack expects a non-empty TensorList
RuntimeError: stack expects a non-empty TensorList
**
也不知道是什么原因导致的,在fact构建的时候还是正常的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.