Skip to content

KXDocRE is a Knowledge Graph based cross document relation extraction technique.

License

Notifications You must be signed in to change notification settings

kracr/cross-doc-relation-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KDocRE

KDocRE:Knowledge-Driven Cross-Document Relation Extraction

##Accepted in ACL 2024, findings##

alt text

Acknowledgments

This repository contains code adapted from the following research papers for the purpose of cross document-level relation extraction. We extend our gratitude to the authors for generously sharing their clean and valuable code implementations.

1. Entity-centered Cross-document Relation Extraction

Requirements

  • Follow the guideliens from : https://github.com/thunlp/CodRED
  • pip install torch-geometric
  • pip install a2t
  • sudo apt install redis-server
  • start Redis-server using: sudo service redis-server start

Alternative using Docker

Directory structure

In this directory structure, you have a folder named "C" containing a subdirectory "code." Within the "code" directory, there are several files and subdirectories:

  • data: Directory to store data
  • context: Files for creating context.
  • r/: Directory to store model checkpoints.
  • main.py: File for training the code.
  • explanation_withrelevance.py: File to generate explanation.

Datasets

This project utilizes the following datasets:

Training

Follow the steps below to start the training process:

  1. Train reasoning module: Navigate to the KDocRE directory using the following command:

    cd/ KDocRE bash train.sh

Testing

Navigate to the KDocRE directory using the following command:

cd/ KDocRE bash test.sh

Explanation

  • explaination is generated in explanation.txt
  • explaination with relevance is stored in relevance.txt

Citation

Please cite:

@misc{jain2024knowledgedriven,
      title={Knowledge-Driven Cross-Document Relation Extraction}, 
      author={Monika Jain and Raghava Mutharaju and Kuldeep Singh and Ramakanth Kavuluru},
      year={2024},
      eprint={2405.13546},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
    

About

KXDocRE is a Knowledge Graph based cross document relation extraction technique.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages