Missing tensor #10802
-
As stated in the documentation: "We also calculate an alignment between the word-piece tokens and the spaCy tokenization, so that we can use the last hidden states to set the Doc.tensor attribute." Spacy Docu Here comes my problem (and I don't know if this is an issue or if I'm missing something): Here's the code to reproduce the problem:
As you can see I use the "de_dep_news_trf" Pipeline from Spacy, but the tensor is empty and I don't know why. Glad for any feedback :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are likely interested in the transformer attributes, which can be found via;
This gives you access to a bunch of attributes, it sounds like you'll be interested in the tensors, via;
|
Beta Was this translation helpful? Give feedback.
You are likely interested in the transformer attributes, which can be found via;
This gives you access to a bunch of attributes, it sounds like you'll be interested in the tensors, via;