def zeros_numpy_array(self,
                        type_name,
                        as_matrix = True):
    """A zero valued row vector encoding this entity.

    Args:
      type_name: the string type name of the named entity
      as_matrix: if true, return a 1-by-N matrix instead of a vector.

    Returns:
      A numpy array.  If as_matrix is True, the array has shape (1,n)
      where n is the number of columns, else the shape is (n,).
    """
    if as_matrix:
      return np.zeros((1, self.get_max_id(type_name)), dtype='float32')
    else:
      return np.zeros((self.get_max_id(type_name),), dtype='float32')
A zero valued row vector encoding this entity.

    Args:
      type_name: the string type name of the named entity
      as_matrix: if true, return a 1-by-N matrix instead of a vector.

    Returns:
      A numpy array.  If as_matrix is True, the array has shape (1,n)
      where n is the number of columns, else the shape is (n,).
    
language/nql/nql/__init__.py