Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug mode (-d option) does not work in the python version #261

Open
Nishihara-Daiki opened this issue Jun 12, 2024 · 1 comment
Open

debug mode (-d option) does not work in the python version #261

Nishihara-Daiki opened this issue Jun 12, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation python Python binding-related

Comments

@Nishihara-Daiki
Copy link

A help describes that -d option "print the bebug information":

$ sudachipy tokenize -h
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

options:
  -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

but, it doesn't actually work:

$ echo '外国人参政権' | sudachipy
外国人参政権    名詞,普通名詞,一般,*,*,*        外国人参政権
EOS
$ echo '外国人参政権' | sudachipy -d
外国人参政権    名詞,普通名詞,一般,*,*,*        外国人参政権
EOS
@mh-northlander
Copy link
Collaborator

-d option is not implemented for the python version now (#207).
maybe we should raise warnings on its use.

@mh-northlander mh-northlander added documentation Improvements or additions to documentation python Python binding-related labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation python Python binding-related
Projects
None yet
Development

No branches or pull requests

2 participants