No POS tags (only, DEP and TAG) with trained Transformer model #6320
-
|
Hi, I have trained a Spacy Transformer model on Swedish (ud-taalbanken) using the new Quickstart Config, here is the config: I followed further steps on https://nightly.spacy.io/usage/training#quickstart However it does not train POS tags, only the fine-grained TAG and DEP is trained: As far as I can see the rest works: When training the 'classic' spacy model pipelines/tagger_parser_ud everything works as expected and I also get POS loss and POS are included in the model. How can I include POS-tags for the transformer model? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
For POS, add a |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @adrianeboyd ! I just tried that and it seems to work, I added to the config: I also added the pooling layer that was applied to the tagger as well, does this setting make sense for the |
Beta Was this translation helpful? Give feedback.
-
|
It should look the same as the tagger. You should also be able to use |
Beta Was this translation helpful? Give feedback.
-
|
@adrianeboyd This is great! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
For POS, add a
morphologizerto the pipeline, too. You can see the config with the morphologizer in thetagger_parser_udexample:https://github.com/explosion/projects/blob/745d0a1adb78335d3c6fb63238141d9ff7d3a98c/pipelines/tagger_parser_ud/configs/default.cfg#L11-L32