Home

Awesome

MeSHProbeNet

MeSHProbeNet: a self-attentive probe net for MeSH indexing

Prerequisites

Input data format

Take ./toy_data/ as an example.

Validation is optional. Vocabulary id 0 is reserved for the padding token.

Run

Run on the toy data

python main_train.py \
  --do_save \
  --do_eval \
  --train_path ./toy_data/train.tsv \
  --dev_path ./toy_data/validation.tsv \
  --src_vocab_pt ./toy_data/vocab_w.txt \
  --jrnl_vocab_pt ./toy_data/vocab_j.txt \
  --tgt_vocab_pt ./toy_data/vocab_m.txt \
  --expt_path ./toy_data/save \
  --learning_rate 0.0025 \
  --weight_decay 5e-10