  
  
  def get_module_path(module):
      if not hasattr(module, "__module__"):
          raise ValueError("Can't find module {}".format(repr(module)))
      return Path(sys.modules[module.__module__].__file__).parent
  
  
  def load_model(name, **overrides):
      """Load a model from a shortcut link, package or data path.
 
</s> remove             raise ValueError(
                "Cannot apply transition {name}: invalid for the current state.".format(name=name))
 </s> add             raise ValueError(Errors.E170.format(name=name)) </s> remove         raise ValueError("Unknown field: (%d)" % field_id)
 </s> add         raise ValueError(Errors.E168.format(field=field_id)) </s> remove                 raise KeyError("Unknown feature: %s" % self.strings[feature])
 </s> add                 raise ValueError(Errors.E167.format(feat=self.strings[feature], feat_id=feature)) </s> remove         raise ValueError("Unknown feature: %s (%d)" % (FEATURE_NAMES.get(feature), feature))
 </s> add         raise ValueError(Errors.E167.format(field=FEATURE_NAMES.get(feature), field_id=feature))
        raise ValueError(Errors.E169.format(module=repr(module)))
  
  
  def get_module_path(module):
      if not hasattr(module, "__module__"):
        raise ValueError(Errors.E169.format(module=repr(module)))
      return Path(sys.modules[module.__module__].__file__).parent
  
  
  def load_model(name, **overrides):
      """Load a model from a shortcut link, package or data path.
keep keep keep keep replace keep keep keep keep keep
 Improve Morphology errors (#4314)

* Improve Morphology errors

* Also clean up some other errors

* Update errors.py 
spacy/util.py