English | 简体中文
-
Create and enter the python virtual environment.
-
To install requirements:
python==3.8 pip install -r requirements.txt
git clone https://github.com/zjunlp/DeepKE.git
cd DeepKE/example/ee/standard
Modify the parameters in ./conf/train.yaml
.
-
Trigger Set
task_name
totrigger
. Select different dataset by setdata_name
. Then run the following command:python run.py
-
Role Here we train the event arguments extraction model with the gold trigger. Set
task_name
torole
. Select different dataset by setdata_name
. Then run the following command:python run.py
The trigger prediction has been conducted during training, and the result is in the output_dir
.Here we predict the event arguments extraction results with pred trigger result.
Modify the parameters in ./conf/predict.yaml
.
Then run the following command:
python predict.py