From 009a96085b4fcf40518d16d82cb00a7614943d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Thu, 23 Jun 2022 15:53:20 +0200 Subject: [PATCH] parser/ner: do not currently support returning activations --- spacy/pipeline/transition_parser.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spacy/pipeline/transition_parser.pyx b/spacy/pipeline/transition_parser.pyx index 98628f3c8..c42389a84 100644 --- a/spacy/pipeline/transition_parser.pyx +++ b/spacy/pipeline/transition_parser.pyx @@ -667,3 +667,9 @@ cdef class Parser(TrainablePipe): if state.is_final(): break return states, golds, max_length + + @property + def activations(self): + # We currently do not have access to the state ids or probabilities + # after parsing. TODO: the parser refactor does provide some history. + return []