Skip to content

xxiutong/DisMEL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Towards Discriminative Multimodal Entity Linking via Hard Negative Clustering and Adaptive Fusion

Dependencies

  • conda create -n dismel python=3.7 -y
  • torch==1.11.0+cu113
  • transformers==4.27.1
  • torchmetrics==0.11.0
  • tokenizers==0.12.1
  • pytorch-lightning==1.7.7
  • omegaconf==2.2.3
  • pillow==9.3.0

Running the code

Dataset

  1. Download the datasets from MIMIC.
  2. Download the datasets processed with hard-negative clustering and object detection–based region prior information, which is provided in this project at: ./datasExample/. Alternatively, you can download the datasets with WikiData description information from the MMoE and generate the processed datasets by running preprocessing/xxx/pre4obj.py, preprocessing/xxx/rank_nn.py and preprocessing/xxx/cluster.py. Then move it to the corresponding MIMIC datasets folder.
  3. Create the data root directory, move the datasets into it, and update data.root in ./config/xxx.yaml accordingly.

Training model

python main.py --config config/xxx.yaml --m record_info

Training logs

Note: We provide logs of our training in the logs directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages