Possible to override tokenizer at spacy.load function via config? #12618
Closed
kinghuang
started this conversation in
Help: Best practices
Replies: 2 comments 1 reply
-
Hello @kinghuang, that's a good question - we'll need to look into what exactly is happening there. However, in general overriding the tokenizer configuration is not a great idea because it's unlikely you'll be able to load the model in |
Beta Was this translation helpful? Give feedback.
1 reply
-
Fixed in #12623. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The spacy.load function takes a
config
argument that allows the model config to be tweaked at load time. Is there a way to override thenlp.tokenizer
config? I'm trying to do the following, but getting an error that the section value cannot be overwritten.What I want to do is assign
{"@tokenizers":"oi.Tokenizer.v1"}
tonlp.tokenizer
. But, it appears to be trying to assignoi.Tokenizer.v1
tonlp.tokenizer.@tokenizers
. Is there some way to make this work?Beta Was this translation helpful? Give feedback.
All reactions