allennlp train命令的参数使用:
在命令行运行:allennlp train -h,即可看到详细解释
usage(用法): allennlp train [-h] -s SERIALIZATION_DIR [-r] [-f] [-o OVERRIDES]
[--file-friendly-logging]
[--cache-directory CACHE_DIRECTORY]
[--cache-prefix CACHE_PREFIX]
[--include-package INCLUDE_PACKAGE]
param_path
Train the specified model on the specified dataset.
positional arguments:(位置参数)
param_path path to parameter file describing the model to be trained
描述要训练的模型的参数文件的路径
optional arguments:(可选参数)
-h, --help show this help message and exit
(显示此帮助消息并退出)
-s SERIALIZATION_DIR, --serialization-dir SERIALIZATION_DIR
directory in which to save the model and its logs
(保存模型及其日志的目录)
-r, --recover recover training from the state in serialization_dir
(从serialization_dir中的状态恢复训练)
-f, --force overwrite the output directory if it exists
(覆盖输出目录,如果存在)
-o OVERRIDES, --overrides OVERRIDES
a JSON structure used to override the experiment configuration
(用于重写实验配置的JSON结构)
--file-friendly-logging
outputs tqdm status on separate lines and slows tqdm refresh rate
(在单独的行上输出tqdm状态并减慢tqdm刷新率)
--cache-directory CACHE_DIRECTORY
Location to store cache of data preprocessing
(存储数据预处理缓存的位置)
--cache-prefix CACHE_PREFIX
Prefix to use for data caching, giving current
parameter settings a name in the cache, instead of
computing a hash
(用于数据缓存的前缀,在缓存中为当前参数设置提供一个名称,而不是计算哈希)
--include-package INCLUDE_PACKAGE
additional packages to include
(要包含的其他包)