Span Pooler
The eds.span_pooler
component is a trainable span embedding component. It generates span embeddings from a word embedding component and a span getter. It can be used to train a span classifier, as in eds.span_classifier
.
Parameters
PARAMETER | DESCRIPTION |
---|---|
nlp | Spacy vocabulary TYPE: |
name | Name of the component TYPE: |
embedding | The word embedding component TYPE: |
span_getter | How to extract the candidate spans and the qualifiers to predict or train on. TYPE: |
pooling_mode | How word embeddings are aggregated into a single embedding per span. TYPE: |
projection_mode | How embeddings converted into logits TYPE: |