mrm8488/bert-base-german-finetuned-ler cover image

mrm8488/bert-base-german-finetuned-ler

The German BERT model was fine-tuned on the Legal-Entity-Recognition dataset for the named entity recognition (NER) task, achieving an F1 score of 85.67% on the evaluation set. The model uses a pre-trained BERT base model and is trained with a provided script from Hugging Face. The labels covered include various types of legal entities, such as companies, organizations, and individuals.

The German BERT model was fine-tuned on the Legal-Entity-Recognition dataset for the named entity recognition (NER) task, achieving an F1 score of 85.67% on the evaluation set. The model uses a pre-trained BERT base model and is trained with a provided script from Hugging Face. The labels covered include various types of legal entities, such as companies, organizations, and individuals.

Public
$0.0005 / sec

HTTP/cURL API

You can use cURL or any other http client to run inferences:

curl -X POST \
    -d '{"input": "My name is John Doe and I live in San Francisco."}'  \
    -H "Authorization: bearer $(deepctl auth token)"  \
    -H 'Content-Type: application/json'  \
    'https://api.deepinfra.com/v1/inference/mrm8488/bert-base-german-finetuned-ler'

which will give you back something similar to:

{
  "results": [
    {
      "entity_group": "B-PER",
      "score": 0.9997528195381165,
      "word": "John",
      "start": 11,
      "end": 15
    },
    {
      "entity_group": "I-PER",
      "score": 0.9995835423469543,
      "word": "Doe",
      "start": 16,
      "end": 19
    },
    {
      "entity_group": "B-LOC",
      "score": 0.9997485280036926,
      "word": "San",
      "start": 34,
      "end": 37
    },
    {
      "entity_group": "I-LOC",
      "score": 0.9994599223136902,
      "word": "Francisco",
      "start": 38,
      "end": 47
    }
  ],
  "request_id": null,
  "inference_status": {
    "status": "unknown",
    "runtime_ms": 0,
    "cost": 0.0,
    "tokens_generated": 0,
    "tokens_input": 0
  }
}

Input fields

inputstring

text input


webhookfile

The webhook to call when inference is done, by default you will get the output in the response of your inference request

Input Schema

Output Schema