Install OpenNRE from Git Repository
masterTo use OpenNRE, clone the repository and install the required dependencies and the package itself. Ensure you have an appropriate PyTorch version installed for your machine's CUDA version before proceeding.
- Clone the repository:
(Usegit clone https://github.com/thunlp/OpenNRE.git--depth 1for a faster clone if needed). - Install requirements:
pip install -r requirements.txt - Install the package:
If you intend to modify the source code, usepython setup.py installpython setup.py developinstead.
git clone https://github.com/thunlp/OpenNRE.git
pip install -r requirements.txt
python setup.py install