generate spam score for indri cache dir