-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Luckily, quite deterministic. To reproduce:
from relik import Relik
from relik.inference.data.objects import RelikOutput
text = """GOOGL - 3 Revolutionary Stocks I'd Buy Right Now Without Hesitation: 2023 - 06 - 15 05:54:00 ET
The Beatles memorialized the line , " You say you want a revolution . " Investors might not realize ET , but Investors 've experienced several revolutions in recent years with more to come .
Technological advances are changing life as we know life . And some companies are both profiting from those advances and giving investors an opportunity to profit . Here are three revolutionary stocks I 'd buy right now .
The world is different now than world was 20 years ago in multiple ways thanks to Alphabet ( NASDAQ : GOOG ) ( NASDAQ : GOOGL ) . Google has become a verb . YouTube regularly attracts more viewers than TV networks do .
Continue reading
For further details see :
3 Revolutionary Stocks I 'd Buy Right Now Without Hesitation
Market Wire News is a media platform , the information on this page was provided by Motley Fool via Quote Media . Read our full disclaimer ."""
relik = Relik.from_pretrained("relik-ie/relik-cie-small")
relik(text)
Full trace:
IndexError Traceback (most recent call last)
in <cell line: 1>()
----> 1 relik(document.text)/usr/local/lib/python3.10/dist-packages/relik/inference/annotator.py in call(self, text, windows, candidates, mentions, top_k, window_size, window_stride, is_split_into_words, retriever_batch_size, reader_batch_size, return_windows, use_doc_topic, annotation_type, progress_bar, **kwargs)
549 for task_type, task_candidates in windows_candidates.items():
550 for i, task_candidate in enumerate(task_candidates):
--> 551 windows[i]._d[f"{task_type.value}_candidates"] = task_candidate
552
553 windows = windows + blank_windowsIndexError: list index out of range