Skip to content
Discussion options

You must be logged in to vote

Ah, that makes sense. The code that is loading the model also needs to know about the new, custom factories that you used, so you'll have to import the relevant functions:

# make the factory work
from rel_pipe import make_relation_extractor, score_relations

# make the config work
from rel_model import create_relation_model, create_classification_layer, create_instances, 

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@HarshadaPatil26
Comment options

@svlandeg
Comment options

Answer selected by svlandeg
@HarshadaPatil26
Comment options

@pshrutiii
Comment options

@svlandeg
Comment options

@pshrutiii
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
projects spaCy projects and project templates feat / rel Feature: Relation Extractor
6 participants
Converted from issue

This discussion was converted from issue #7345 on March 09, 2021 16:30.