Skip to content
Discussion options

You must be logged in to vote

Hi @IliasAarab! The data in doc._.trf_data are instances of FullTransformerBatch. The contents of FullTransformerBatch.tensor depends on the output of the underlying HuggingFace model - in the case of models with pooling the outputs (cf. the HF docs) contain last_hidden_state and pooler_output as the first two elements.

Again, this depends on the HF model. I recommend inspecting doc.trf_data.model_output to see what's included.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IliasAarab
Comment options

Answer selected by IliasAarab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party Third-party packages and services feat / transformer Feature: Transformer
2 participants