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

Make countWords take two arrays: wordsToCount and countedWords ? #142

Open
eklem opened this issue Mar 9, 2022 · 0 comments
Open

Make countWords take two arrays: wordsToCount and countedWords ? #142

eklem opened this issue Mar 9, 2022 · 0 comments
Assignees

Comments

@eklem
Copy link
Owner

eklem commented Mar 9, 2022

If countedWords is empty:

wordsCounted = { docs: 0, words: [] }

Else, just continue with the countedWords-input when counting from wordsToCount
Should have a start from scratch flag true/false. True to be default?

Maybe take arrays of arrays. Top level contains documents, rest is just document parts like paragraphs etc.

  • Take array of arrays and flatten all beneath top level, then extract.

Oooooor: make the stopword-trainer-cli do things a bit more easy and keep stopword-trainer without words-n-numbers dependency.

@eklem eklem self-assigned this Mar 9, 2022
@eklem eklem changed the title Make countWords take two arrays: wordsToCount and countedWords Make countWords take two arrays: wordsToCount and countedWords ? Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant