Open HaixiaChai opened 5 years ago
Sorry about the late response. Here's the pipleline. $gap_file_prefix
points to the path of the GAP file without the tsv prefix. $vocab_file
refers to the cased BERT vocab file.
#!/bin/bash
gap_file_prefix=$1
vocab_file=$2
python gap_to_jsonlines.py $gap_file_prefix.tsv $vocab_file
GPU=0 python predict.py bert_base $gap_file_prefix.jsonlines $gap_file_prefix.output.jsonlines
python to_gap_tsv.py $gap_file_prefix.output.jsonlines
python2 ../gap-coreference/gap_scorer.py --gold_tsv $gap_file_prefix.tsv --system_tsv $gap_file_prefix.output.tsv
Thanks a lot.
sentences
field should be a natural language sentence (as opposed to a paragraph as with bert). This is because c2f-coref contextualizes each sentence independently with LSTMs.If that doesn't work, I'll take a look after I'm back. Thanks for your patience.
@HaixiaChai Could you please share the detailed steps to test & evaluate this model using GAP data-set? (Want to know what changes were made for environmental setup, commands, data, etc) I am new to this research area, and want to re-produce the results with both GAP & Onto-notes data-sets. Your valuable help will be appreciated in this regard.
Thanks!
Thank you in advance.