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

Handling larger corpora #40

Open
Allegra-Cohen opened this issue Dec 13, 2022 · 1 comment
Open

Handling larger corpora #40

Allegra-Cohen opened this issue Dec 13, 2022 · 1 comment
Labels

Comments

@Allegra-Cohen
Copy link
Owner

There are some hard-coded aspects of the kmeans implementation that only work for tiny corpora around 100 sentences:
1. K-max (the maximum number of clusters tried) and the step size between k's tried (see generate() in soft_kmeans.py)
2. The number of loops allowed if not converged during kmeans
3. The threshold for soft assignment after kmeans

There's probably a smart way of adjusting the above parameters so that quality and speed aren't damaged too badly when the corpora get bigger.

@Allegra-Cohen
Copy link
Owner Author

Another possibility here is to preprocess the corpus such that only semantically interesting sentences get kept, and you can scroll infinitely through the context window to read everything else in the document if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant