mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
Clean up unused predict_confidences function
This commit is contained in:
parent
210f6d5175
commit
1cb2f15d65
|
@ -653,14 +653,6 @@ cdef class NeuralEntityRecognizer(NeuralParser):
|
||||||
|
|
||||||
nr_feature = 6
|
nr_feature = 6
|
||||||
|
|
||||||
def predict_confidences(self, docs):
|
|
||||||
tensors = [d.tensor for d in docs]
|
|
||||||
samples = []
|
|
||||||
for i in range(10):
|
|
||||||
states = self.parse_batch(docs, tensors, drop=0.3)
|
|
||||||
for state in states:
|
|
||||||
samples.append(self._get_entities(state))
|
|
||||||
|
|
||||||
def __reduce__(self):
|
def __reduce__(self):
|
||||||
return (NeuralEntityRecognizer, (self.vocab, self.moves, self.model), None, None)
|
return (NeuralEntityRecognizer, (self.vocab, self.moves, self.model), None, None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user