Skip to content
Discussion options

You must be logged in to vote

Sorry this isn't very clear. What's happening is that for built-in spaCy components, there's a default config that will be used as a fallback for values, but the rel component doesn't have a default config, so you have to provide everything. Here's one way to do that - I used the sample config as a base and set this up.

#import scripts.rel_pipe
import spacy
import scripts.custom_functions
from thinc.api import Config

config_str = """
[components]
[components.relation_extractor]
threshold = 0.5

[components.relation_extractor.model]
@architectures = "rel_model.v1"

[components.relation_extractor.model.create_instance_tensor]
@architectures = "rel_instance_tensor.v1"

[components.relation_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Larsdegroot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / rel Feature: Relation Extractor
2 participants