eriktks/conll2003
Updated • 48.9k • 181
Run julien-c/flair-ner on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/julien-c/flair-ner. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/julien-c/flair-ner on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use julien-c/flair-ner with Flair:
from flair.data import Sentence
from flair.models import SequenceTagger
tagger = SequenceTagger.load("julien-c/flair-ner")
sentence = Sentence("George Washington went to Washington.")
tagger.predict(sentence)
print(sentence)en-ner-conll03-v0.4.pt
Imported from https://nlp.informatik.hu-berlin.de/resources/models/ner/
from flair.data import Sentence
from flair.models import SequenceTagger
sentence = Sentence(
"My name is Julien, I currently live in Paris, I work at Hugging Face, Inc."
)
tagger = SequenceTagger.load("julien-c/flair-ner")
# predict NER tags
tagger.predict(sentence)
# print sentence with predicted tags
print(sentence.to_tagged_string())
yields the following output:
My name is Julien <S-PER> , I currently live in Paris <S-LOC> , I work at Hugging <B-LOC> Face <E-LOC> .