allennlp.commands.subcommand

Base class for subcommands under allennlp.run.

class allennlp.commands.subcommand.Subcommand[source]

An abstract class representing subcommands for allennlp.run. If you wanted to (for example) create your own custom special-evaluate command to use like

python -m allennlp.run special-evaluate ...

you would create a Subcommand subclass and then pass it as an override to main() .