fairseq-detect-hallucination
fairseq-detect-hallucination copied to clipboard
How to run xsum_wordnet.py script
The xsum_wordnet.py script reads the "pos" files on lines 148-149:
tgt_tok_sents, tgt_tok_pos_tags = read_pos_tags_and_tokenizations(os.path.join(root, prefix.lower()+"target.pos"))
src_tok_sents, src_tok_pos_tags = read_pos_tags_and_tokenizations(os.path.join(root, prefix.lower()+"source.pos"))
How where these files generated? Best