Files
INTUIA/Programa final/spacy/ml/models/__pycache__/spancat.cpython-312.pyc
T

31 lines
3.5 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
>û gŸ ã ó”ddlmZmZmZddlmZmZmZmZm Z m
Z
m Z m Z m
Z
mZmZmZmZddlmZmZddlmZddlmZddlmZej4d «dd eeeffd «Zej4d
«ded eeeffd«Zej<d«deeeeefdeeefdeeefd eeeeefeffd«Zy
)é)ÚListÚTupleÚcast)
ÚLinearÚLogisticÚMaxoutÚModelÚchainÚ concatenateÚglorot_uniform_initÚ list2raggedÚ reduce_firstÚ reduce_lastÚ
reduce_maxÚ reduce_meanÚ with_getitem)ÚFloats2dÚRaggedé)ÚDoc)Úregistryé)Ú
extract_spanszspacy.LinearLogistic.v1NÚreturncóJtt||t¬«t««S)zrAn output layer for multi-label classification. It uses a linear layer
followed by a logistic activation.
)ÚnOÚnIÚinit_W)r
rr r)rrs úXC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/ml/models/spancat.pyÚbuild_linear_logisticr sô
˜2 "Ô-@ÔAÄ8Ã:Ó zspacy.mean_max_reducer.v1Ú hidden_sizec
óötttttt
ft
««tttt
ft««t«t««t|dd¬««S)zŒReduce sequences by concatenating their mean and max pooled vectors,
and then combine the concatenated vectors with a hidden layer.
Tg)rÚ normalizeÚdropout) r
r rr rrrrrrr)r"s rÚbuild_mean_max_reducerr&!s]ô
ÜÜ ”vœxÐ(¬+«-Ó ”vœxÐ(¬,«.Ó  
ô °sÔ ðr!zspacy.SpanCategorizer.v1Útok2vecÚreducerÚscorercó’tttttt
t ftt t fftdt|ttttt ft«««««t«||«}|jd|«|jd|«|jd|«|S)aBuild a span categorizer model, given a token-to-vector model, a
reducer model to map the sequence of vectors for each span down to a single
vector, and a scorer model to map the vectors to probabilities.
tok2vec (Model[List[Doc], List[Floats2d]]): The tok2vec model.
reducer (Model[Ragged, Floats2d]): The reducer model.
scorer (Model[Floats2d, Floats2d]): The scorer model.