MCPcopy Create free account
hub / github.com/dmis-lab/bern / predict

Method predict

biobert_ner/fast_predict2.py:40–66  ·  view source on GitHub ↗

Runs a prediction on a set of features. Calling multiple times does *not* regenerate the graph which makes predict much faster. feature_batch a list of list of features. IMPORTANT: If you're only classifying 1 thing, you still need to make it a batch

(self, feature_batch)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

recognize_etypeMethod · 0.80

Calls 1

input_fnMethod · 0.80

Tested by

no test coverage detected