Load from a vocab file.

def _load_from_file(self, filename):
    """Load from a vocab file."""
    if not tf.gfile.Exists(filename):
      raise ValueError("File %s not found" % filename)
    with tf.gfile.Open(filename) as f:
      self._load_from_file_object(f)