Skip to content

Trying to add doc.sents to rel_component example's get_instances function #12680

Discussion options

You must be logged in to vote

I'd suggest doing the following:

  • Use replace_listeners for the sourced parser so that it gets its own copy of the tok2vec layer.
  • Remove tok2vec from the frozen and annotating components so that it's just used for relation_extractor.
  • Ensure that tok2vec has include_static_vectors = true so that it's using the vectors that have been included from en_core_web_lg.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@yofayed
Comment options

@shadeMe
Comment options

Answer selected by yofayed
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@shadeMe
Comment options

@yofayed
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / rel Feature: Relation Extractor
3 participants