Open Allegra-Cohen opened 1 year ago
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.
There are some hard-coded aspects of the kmeans implementation that only work for tiny corpora around 100 sentences:
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.