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

What is bagsize and how to use it? #6

Open
dzpt opened this issue Sep 3, 2018 · 2 comments
Open

What is bagsize and how to use it? #6

dzpt opened this issue Sep 3, 2018 · 2 comments

Comments

@dzpt
Copy link

dzpt commented Sep 3, 2018

I don't understand what's bagsize and why its []int{2} or []int{2,3,4}

@coxley
Copy link

coxley commented Feb 9, 2021

@schollz: Any input here? I'm also a bit confused on how best to tweak this. The unittests have []int{4}, []int{5} but don't expand on what variable that's controlling.

I'll dig through the source, but an official explanation for dummies would be great. 😄

@coxley
Copy link

coxley commented Feb 9, 2021

Looks like for each "sentence", the bagsizes control the size of sub-string chunks.

// "foo bar baz" @ []int{1,5}
[]string{"f", "o", "o", " ", "b", "a", "r", " ", "b", "a", "z"}
[]string{"foo b", "ar ba", "z"}

I think. But also not sure how best to tweak it for different datasets.

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

No branches or pull requests

2 participants