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)
| 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 |
no test coverage detected