Skip to content

predict

allennlp.commands.predict

[SOURCE]


The predict subcommand allows you to make bulk JSON-to-JSON or dataset to JSON predictions using a trained model and its Predictor wrapper.

Predict

@Subcommand.register("predict")
class Predict(Subcommand)

add_subparser

class Predict(Subcommand):
 | ...
 | def add_subparser(
 |     self,
 |     parser: argparse._SubParsersAction
 | ) -> argparse.ArgumentParser