another todo: process raw text to incrementally build occurrence matrix