Repository navigation
Using gold POS tags to influence Dependency Parsing at inference time #13914
Replies: 1 comment
[components.parser.model.tok2vec]
@architectures = "spacy.Tok2Vec.v2"
[components.parser.model.tok2vec.embed]
@architectures = "spacy.MultiHashEmbed.v2"
width = 96
attrs = ["NORM", "PREFIX", "SUFFIX", "SHAPE", "POS"]
rows = [5000, 1000, 2500, 2500, 100]
include_static_vectors = false
[components.parser.model.tok2vec.encode]
@architectures = "spacy.MaxoutWindowEncoder.v2"
width = 96
depth = 4
window_size = 1
maxout_pieces = 3
[training]
annotating_components = ["morphologizer"]Notes:
The parser will only prefer parses consistent with the tags. If you need hard consistency (e.g. a VERB must not get |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I’m working with spaCy v3.x on Italian product titles and I have trained a custom POS tagger and dependency parser on a domain-specific dataset.
In my use case, I sometimes need to override or correct POS tags for specific tokens (e.g., distinguishing between NOUN/ADJ and VERB in ambiguous product titles). I would like the dependency tree to be computed or "steered" taking these corrected ("gold") POS tags into account.
I am aware that in spaCy's standard architecture, the DependencyParser and Tagger are typically independent components that both sit on top of the Tok2Vec or Transformer listener.
My questions are:
I’d appreciate any guidance or confirmation on whether this is supported or if I should look into alternative architectures (like Stanza's pretagged mode).
Thank you for your time and for this amazing library!
All reactions