Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.46 KB

to-jsonlines-pt.md

File metadata and controls

34 lines (29 loc) · 1.46 KB

to-jsonlines-pt

  • domain(s): pretrain
  • accepts: ldc.api.pretrain.PretrainData

Writes pretrain data in JsonLines-like JSON format.

usage: to-jsonlines-pt [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                       [-N LOGGER_NAME] -o OUTPUT [--att_content ATT]
                       [--att_id ATT] [-d NUM] [-b SIZE]

Writes pretrain data in JsonLines-like JSON format.

optional arguments:
  -h, --help            show this help message and exit
  -l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --logging_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        The logging level to use. (default: WARN)
  -N LOGGER_NAME, --logger_name LOGGER_NAME
                        The custom name to use for the logger, uses the plugin
                        name by default (default: None)
  -o OUTPUT, --output OUTPUT
                        Path of the JsonLines file to write (directory when
                        processing multiple files) (default: None)
  --att_content ATT     The attribute for the text content (default: None)
  --att_id ATT          The name of the attribute for the row IDs (uses 'id'
                        from meta-data) (default: None)
  -d NUM, --num_digits NUM
                        The number of digits to use for the filenames
                        (default: 6)
  -b SIZE, --buffer_size SIZE
                        The size of the record buffer when concatenating (to
                        improve I/O throughput) (default: 1000)