next_token_lm
NextTokenLMPredictor#
class NextTokenLMPredictor(Predictor)
predict#
class NextTokenLMPredictor(Predictor):
| ...
| def predict(self, sentence: str) -> JsonDict
predictions_to_labeled_instances#
class NextTokenLMPredictor(Predictor):
| ...
| @overrides
| def predictions_to_labeled_instances(
| self,
| instance: Instance,
| outputs: Dict[str, numpy.ndarray]
| )