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

Add sentence splitter #241

Merged
merged 4 commits into from
Jun 6, 2021

Conversation

ikawaha
Copy link
Owner

@ikawaha ikawaha commented Jun 6, 2021

  • tokenizer option
    • katome tokenize -split
  • subcommand
    • kagome split

func OptionCheck(args []string) error {
opt := newOption(ioutil.Discard, flag.ContinueOnError)
if err := opt.parse(args); err != nil {
return fmt.Errorf("%v, %v", CommandName, err)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
non-wrapping format verb for fmt.Errorf. Use %w to format errors (errorlint)

if err := opt.parse(args); err != nil {
Usage()
PrintDefaults(flag.ExitOnError)
return fmt.Errorf("%v, %v", CommandName, err)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
non-wrapping format verb for fmt.Errorf. Use %w to format errors (errorlint)

@ikawaha ikawaha temporarily deployed to kagome-herok-feature-ad-8udi0o June 6, 2021 12:27 Inactive
@ikawaha ikawaha temporarily deployed to kagome-herok-feature-ad-8udi0o June 6, 2021 12:41 Inactive
@ikawaha ikawaha changed the base branch from v2 to develop June 6, 2021 12:45
@ikawaha ikawaha merged commit 66c5f86 into develop Jun 6, 2021
@ikawaha ikawaha deleted the feature/add-sentence-splitter-subcommand_20210606 branch June 6, 2021 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant