parser/ner: do not currently support returning activations

This commit is contained in:
Daniël de Kok 2022-06-23 15:53:20 +02:00
parent 1c9be0d8ab
commit 009a96085b

View File

@ -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 []