Skip to content

Why nlp.to_disk() does not store entity_ruler's path to patterns.jsonl? #11501

Discussion options

You must be logged in to vote

I'd need to check, but I think this is just a design decision. One way to think about the pattern file is that it's just used to initialize the component, and the patterns are the important thing. Another way to think about it is to assume that the pattern file is the primary source of truth and it should be read from whenever the component is created. In this case serialization assumed the former; this is consistent with the idea that a serialized model doesn't depend on external files, so it can safely be moved between machines.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tomsquest
Comment options

@adrianeboyd
Comment options

@tomsquest
Comment options

Answer selected by tomsquest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / serialize Feature: Serialization, saving and loading feat / spanruler Feature: Entity and span ruler
3 participants