Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def load_parser(self):
if self._PARSER is None:
from pyhanlp import HanLP
self._PARSER = HanLP.parseDependency
return self._PARSER