MCPcopy
hub / github.com/llmware-ai/llmware / ner

Method ner

llmware/agents.py:729–744  ·  view source on GitHub ↗

Executes named entity classification analysis on a text, if passed directly, or will pull current work item from the queue. Returns value output dictionary with named entity classification and confidence score.

(self, text=None, params=None)

Source from the content-addressed store, hash-verified

727 return self.exec_function_call("ner", text=text, params=params)
728
729 def ner(self, text=None, params=None):
730
731 """ Executes named entity classification analysis on a text, if passed directly, or will pull current
732 work item from the queue. Returns value output dictionary with named entity classification and
733 confidence score. """
734
735 #TODO: identical to "named_entity_extraction" method - should remove one of them
736
737 if not params:
738 # default parameter key
739 params = ["people", "place", "company", "misc"]
740
741 if isinstance(params, str):
742 params = [params]
743
744 return self.exec_function_call("ner", text=text, params=params)
745
746 def ratings(self, text=None, params=None):
747

Callers 3

ner_lookup_retrievalFunction · 0.95
sql_e2e_test_scriptFunction · 0.95

Calls 1

exec_function_callMethod · 0.95

Tested by

no test coverage detected