Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Few-Shot Relationship Extraction Example Error #461

Open
krmchal opened this issue Apr 18, 2024 · 0 comments
Open

Few-Shot Relationship Extraction Example Error #461

krmchal opened this issue Apr 18, 2024 · 0 comments

Comments

@krmchal
Copy link

krmchal commented Apr 18, 2024

While using the spacy_llm rel_openai example I continually run into the error:

  • IndexError: [E035] Error creating span with start 9 and end -1 for Doc of length 16.

This error seems to only happen when providing the pipeline with an examples jsonl file for the few-shot learner to inference with. I tracked the issue down to spacy_llm/tasks/rel/util:L58 where the function "to_doc" appears to add the token index -1 for the end character I believe.

I do not understand why this error is occurring can someone please check in on this? I have also went ahead and attached the examples file I used as well as the stack trace of the error. The examples.json file extension was changed to json in order to upload to github. The real extension is .jsonl

few_shot_trace.txt
examples.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant