Views
No views yet
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2tokenizer = AutoTokenizer.from_pretrained("him1411/EDGAR-BART-Base")
3model = AutoModelForSeq2SeqLM.from_pretrained("him1411/EDGAR-BART-Base")git lfs install
git clone https://huggingface.co/him1411/EDGAR-BART-Base1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2tokenizer = AutoTokenizer.from_pretrained("him1411/EDGAR-BART-Base")
3model = AutoModelForSeq2SeqLM.from_pretrained("him1411/EDGAR-BART-Base")
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)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}