Added code that uses numpy.unique() with 'return_inverse=True' to
convert a list of tokens to a vocabulary (i.e., an array of types) and
an array of indices into that vocabulary for those tokens.