How to extract dependencies in spaCy after using prodigy rel.manual?

Hi! I'm kinda surprised train rel worked and didn't raise an error because there's no component to train here :thinking: Actually, I just remembered that you were the same person who disabled use_plac as a workaround on this thread – this is likely the problem because it skips CLI argument validation. So I'd recommend turning that back on and using the other workaround I provided in the thread.

There's currently no built-in component for relation extraction in spaCy, so you will have to use your own implementation, depending on how you want your relation extraction to work. Here are some related threads:

For spaCy v3, @SofieVL recorded this in-depth tutorial on how to implement an entity relation extraction component from scratch. The code for this is available as a spaCy project so you can experiment with it. Even if you want to do something more custom, the video has a lot of helpful pointers on how to model the problem:

1 Like