Views
No views yet
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2tokenizer = AutoTokenizer.from_pretrained("him1411/EDGAR-T5-Large")
3model = AutoModelForSeq2SeqLM.from_pretrained("him1411/EDGAR-T5-Large")git lfs install
git clone https://huggingface.co/him1411/EDGAR-T5-Large1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2tokenizer = AutoTokenizer.from_pretrained("him1411/EDGAR-T5-Large")
3model = AutoModelForSeq2SeqLM.from_pretrained("him1411/EDGAR-T5-Large")
4# Input shows how we have appended instruction from our file for HoC dataset with instance.
5input = "14.5 years . The definite lived intangible assets related to the contracts and trade names had estimated weighted average useful lives of 5.9 years and 14.5 years, respectively, at acquisition."
6tokenized_input= tokenizer(input)
7# Ideal output for this input is 'Definite lived intangible assets weighted average remaining useful life'
8output = model(tokenized_input)| Dataset | Bloomberg GPT 50B | T5 Large | Edgar T5 Large |
|---|---|---|---|
| FiQA SA | 75.07 | 74.89 | 80.42 |
| FPB | 51.07 | 55.77 | 79.69 |
| Headline | 82.20 | 90.55 | 93.55 |
1@article{gupta2021context,
2 title={Context-NER: Contextual Phrase Generation at Scale},
3 author={Gupta, Himanshu and Verma, Shreyas and Kumar, Tarun and Mishra, Swaroop and Agrawal, Tamanna and Badugu, Amogh and Bhatt, Himanshu Sharad},
4 journal={arXiv preprint arXiv:2109.08079},
5 year={2021}
6}