Spacy Config for RE task using Transformer #10301
-
Hi, can you please provide the command that is used to generate the config files for rel_component? https://github.com/explosion/projects/tree/v3/tutorials/rel_component/configs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
These particular configs were probably partially written by hand. For any component, you should be able to generate a working default config with
Currently, we can recommend starting with a You can also compare the two configs in that project to see what the main difference are between |
Beta Was this translation helpful? Give feedback.
These particular configs were probably partially written by hand.
For any component, you should be able to generate a working default config with
spacy init config -p component
, but it probably won't be identical to the configs in the demos. The default configs are usually intended for use withtok2vec
, so you may need to adjust the config further if you switch totransformer
.spacy init config
supports a lot of thetransformer
adjustments automatically with-G
for built-in components liketagger
, but for experimental or custom components, you may need to make more adjustments by hand, also in the[training]
block.Currently, we can recommend starting with a
transformer
config for a built…