predict
allennlp.commands.predict
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):
| ...
| @overrides
| def add_subparser(
| self,
| parser: argparse._SubParsersAction
| ) -> argparse.ArgumentParser