Skip to content

Files

Latest commit

976461d · Mar 17, 2025

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 9, 2024
Mar 25, 2024
Sep 9, 2024
Sep 19, 2024
Feb 4, 2025
Feb 4, 2025
Jun 13, 2024
Mar 21, 2024
Mar 17, 2025
Apr 19, 2024

Flair NER example

This example demonstrates how to use Flair NER model with Label Studio.

Before you begin

Before you begin, you must install the Label Studio ML backend.

This tutorial uses the flair example.

Quickstart

  1. Build and start the Machine Learning backend on http://localhost:9090
docker-compose up
  1. Validate that the backend is running
$ curl http://localhost:9090/health
{"status":"UP"}
  1. Create a project in Label Studio. Then from the Model page in the project settings, connect the model. The default URL is http://localhost:9090.

Labeling Configuration

<View>
  <Labels name="label" toName="text">
    <Label value="PER" background="red"/>
    <Label value="ORG" background="darkorange"/>
    <Label value="LOC" background="orange"/>
    <Label value="MISC" background="green"/>
  </Labels>

  <Text name="text" value="$text"/>
</View>

Parameters

  • FLAIR_MODEL_NAME: The name of the Flair model to use. Default is ner. See all options here