1from transformers import AutoTokenizer, AutoModelForTokenClassification
23tokenizer = AutoTokenizer.from_pretrained("Jean-Baptiste/roberta-ticker")4model = AutoModelForTokenClassification.from_pretrained("Jean-Baptiste/roberta-ticker")567##### Process text sample 89from transformers import pipeline
1011nlp = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple")1213nlp("I am going to buy 100 shares of cake tomorrow")14[{'entity_group':'TICKER',15'score':0.9612462520599365,16'word':' cake',17'start':32,18'end':36}]1920nlp("I am going to eat a cake tomorrow")21[]222324