Skip to content

RpBERT: A Text-image Relation Propagation-based BERT Model for Multimodal NER

License

Notifications You must be signed in to change notification settings

Multimodal-NER/RpBERT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RpBERT

This is a implementation of the paper RpBERT: A Text-image Relation Propagation-based BERT Model for Multimodal NER.

Requirements

Datasets

Run loader.py to make sure the statistics is identical as (Zhang et al., 2018) and (Lu et al., 2018).

Twitter-15 NUM PER LOC ORG MISC
Training 4000 2217 2091 928 940
Development 1000 552 522 247 225
Testing 3257 1816 1697 839 726
Twitter-17 NUM TOKEN
Training 4290 68655
Development 1432 22872
Testing 1459 23051

Models

Libraries

  • tqdm
  • Pillow
  • numpy
  • torch
  • torchvision
  • transformers
  • flair
  • pytorch-crf

Usage

# BERT-BiLSTM-CRF
python main.py --stacked --rnn --crf --dataset [dataset_id] --cuda [gpu_id]
# RpBERT-BiLSTM-CRF
python main.py --stacked --rnn --crf --encoder_v resnet101 --aux --gate --dataset [dataset_id] --cuda [gpu_id]

About

RpBERT: A Text-image Relation Propagation-based BERT Model for Multimodal NER

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages