specrom

specrom / name_entity_recognition_NER / 0.1.0

name_entity_recognition_NER

50 Credit Royalty
Extract named entities from text using latest BERT models
Language
Python3
Metrics
API Calls - 5 Avg call duration - N/A
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks , however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls .
This algorithm uses advanced GPU features.

Run an Example

Input
Output
[
  {
    "entity_group": "I-MISC",
    "score": 0.9913237988948822,
    "word": "Covid - 19"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9990385472774506,
    "word": "Donald Trump"
  },
  {
    "entity_group": "I-LOC",
    "score": 0.993813782930374,
    "word": "White House"
  },
  {
    "entity_group": "I-PER",
    "score": 0.99936705827713,
    "word": "Trump"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9992258350054424,
    "word": "Michael Caputo"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9995636343955994,
    "word": "Roger Stone"
  },
  {
    "entity_group": "I-MISC",
    "score": 0.9991936087608336,
    "word": "Russian"
  },
  {
    "entity_group": "I-ORG",
    "score": 0.9989966303110124,
    "word": "Health and Human Services"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9995652437210084,
    "word": "Trump"
  },
  {
    "entity_group": "I-ORG",
    "score": 0.9968760907649994,
    "word": "HHS"
  },
  {
    "entity_group": "I-PER",
    "score": 0.997848649819692,
    "word": "Alex Azar"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9898332357406616,
    "word": "Caputo"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9865229725837708,
    "word": "Caputo"
  },
  {
    "entity_group": "I-ORG",
    "score": 0.98018981218338,
    "word": "POLITICO"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9662998616695404,
    "word": "Caputo"
  },
  {
    "entity_group": "I-MISC",
    "score": 0.5435038208961487,
    "word": "Trump"
  },
  {
    "entity_group": "I-ORG",
    "score": 0.9951044917106628,
    "word": "Army"
  },
  {
    "entity_group": "I-ORG",
    "score": 0.999489724636078,
    "word": "Food and Drug Administration"
  },
  {
    "entity_group": "I-MISC",
    "score": 0.9602576692899067,
    "word": "Medicaid"
  },
  {
    "entity_group": "I-PER",
    "score": 0.9935459971427918,
    "word": "Seema Verma"
  },
  {
    "entity_group": "I-ORG",
    "score": 0.9991087019443512,
    "word": "Centers for Disease Control"
  }
]

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run specrom/name_entity_recognition_NER/0.1.0 -d '"After it became clear in mid-April that his administration’s response to Covid-19 was threatening his re-election, President Donald Trump considered a leadership shake-up within a health department whose rivalries and battles with the White House had hampered efforts to contain the virus. Instead, Trump made a different move: He personally intervened to place his campaign aide Michael Caputo - a confidant of disgraced operative Roger Stone who had himself come under scrutiny for his ties to top Russian officials - as assistant Health and Human Services secretary for public affairs. Trump - not HHS Secretary Alex Azar - approached Caputo about the job, and Caputo has repeatedly emphasized that he works for the president, health officials told POLITICO. Trump’s calculation seemed clear: If he couldn’t easily move aside the health professionals who led the agencies, he could dramatically alter what the public learned about their work on the coronavirus. Caputo immediately began supplanting career public affairs staff with his own loyalists and Trump veterans – political appointees who often knew little or nothing about health care. They included an old Army buddy to oversee messaging for the Food and Drug Administration, and a former contractor for Medicaid chief Seema Verma to staff the director of the Centers for Disease Control – the two most trusted agencies in a health world that had traditionally been insulated from political pressure."' --timeout 300
  
CLI Docs