sudachi.rs icon indicating copy to clipboard operation
sudachi.rs copied to clipboard

SudachiPy: "Print debug information" option for the tokenize subcommand

Open sorami opened this issue 2 years ago • 2 comments

-d print the debug information: It does not exist (yet)?

sudachipy tokenize --help
usage: sudachipy tokenize [-h] [-r file] [-m {A,B,C}] [-o file] [-s string] [-a] [-d] [-v] [file ...]

Tokenize Text

positional arguments:
  file           text written in utf-8

optional arguments:
  -h, --help     show this help message and exit
  -r file        the setting file in JSON format
  -m {A,B,C}     the mode of splitting
  -o file        the output file
  -s string      sudachidict type
  -a             print all of the fields
  -d             print the debug information
  -v, --version  print sudachipy version

cf. pre-Rust version; https://github.com/WorksApplications/SudachiPy/blob/b244110e1f497763879fcfe9de48f5af3544897d/sudachipy/command_line.py#L153

sorami avatar Feb 18 '22 17:02 sorami

Debug option is ignored at the moment. Use the Rust binary instead if you want debugging information as a workaround for the time being.

eiennohito avatar Feb 19 '22 01:02 eiennohito

Depends on #76?

eiennohito avatar Feb 19 '22 01:02 eiennohito