Limited matrix size to training vocabulary