Clean up unused predict_confidences function

This commit is contained in:
Matthew Honnibal 2017-08-16 18:22:26 -05:00
parent 210f6d5175
commit 1cb2f15d65

View File

@ -653,14 +653,6 @@ cdef class NeuralEntityRecognizer(NeuralParser):
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):
return (NeuralEntityRecognizer, (self.vocab, self.moves, self.model), None, None)