Spaces:
Configuration error
Configuration error
|
Download docs/source/guide/ml_tutorials/flair.md from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/docs/source/guide/ml_tutorials/flair.md
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/docs/source/guide/ml_tutorials/flair.md
-
curl -L -o flair.md https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/docs/source/guide/ml_tutorials/flair.md
1.76 kB
metadata
title: NER labeling with Flair
type: guide
tier: all
order: 75
hide_menu: true
hide_frontmatter_title: true
meta_title: Use Flair with Label Studio
meta_description: Tutorial on how to use Label Studio and Flair for faster NER labeling
categories:
- Natural Language Processing
- Named Entity Recognition
- Flair
image: /guide/ml_tutorials/flair.png
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
- Build and start the Machine Learning backend on
http://localhost:9090
docker-compose up
- Validate that the backend is running
$ curl http://localhost:9090/health
{"status":"UP"}
- 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 isner. See all options here