tag.lua
tag.lua
options:
-h [<boolean>]
(default:false
)
This help.-md [<boolean>]
(default:false
)
Dump help in Markdown format.-config <string>
(default:''
)
Load options from this file.-save_config <string>
(default:''
)
Save options to this file.
Data options¶
-src <string>
(required)
Source sequences to tag.-tgt <string>
(default:''
)
Optional true target sequences.-output <string>
(default:pred.txt
)
Output file.-idx_files [<boolean>]
(default:false
)
If set, source and target files are 'key value' with key match between source and target.
Tagger options¶
-model <string>
(required)
Path to the serialized model file.-batch_size <number>
(default:30
)
Batch size.
Cuda options¶
-gpuid <table>
(default:0
)
List of GPU identifiers (1-indexed). CPU is used when set to 0.-fallback_to_cpu [<boolean>]
(default:false
)
If GPU can't be used, rollback on the CPU.-fp16 [<boolean>]
(default:false
)
Use half-precision float on GPU.-no_nccl [<boolean>]
(default:false
)
Disable usage of nccl in parallel mode.
Logger options¶
-log_file <string>
(default:''
)
Output logs to a file under this path instead of stdout - if file name ending with json, output structure json.-disable_logs [<boolean>]
(default:false
)
If set, output nothing.-log_level <string>
(accepted:DEBUG
,INFO
,WARNING
,ERROR
,NONE
; default:INFO
)
Output logs at this level and above.
Other options¶
-time [<boolean>]
(default:false
)
Measure average translation time.