allennlp train 参数

 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
                        (要包含的其他包)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

weixin_39450145

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值