$npx skillfedfor your agent

flair

A very simple framework for state-of-the-art NLP

With conditionsPyPI Artificial IntelligenceReleased Feb 2025234.3K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — flair-0.15.1-py3-none-any.whl
v0.15.1 · released 2025-02-05 · Python >=3.9 · 25 runtime deps: boto3, conllu, deprecated, ftfy, gdown, huggingface-hub, langdetect, lxml

Yes, if you need a high-level NLP framework with pre-trained models and your Python and PyTorch versions align with the package's requirements. The low install friction, permissive license, and strong community adoption (14382 stars) make it a solid choice for NER, sentiment analysis, and embeddings. However, verify that the aging maintenance status (555 days since last release) does not conflict with your dependency update cycles, and test compatibility with your target PyTorch and transformer versions before production deployment.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9+.
  • Installing torch and transformers dependencies may take time and disk space; GPU support is optional but recommended for production use.
  • Low install friction with a pure-Python wheel.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution.

last release 2025-02-05 (555 days) · last repo commit 2025-10-27 · 14,382 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 234,314 downloads/mo, #9,024 on PyPI

Verify before relying

pip install flair

from flair.data import Sentence
from flair.nn import Classifier

sentence = Sentence('I love Berlin .')
tagger = Classifier.load('ner')
tagger.predict(sentence)
print(sentence)
  • Whether the 555-day gap since last release indicates active maintenance or reduced development velocity.
  • Performance characteristics and memory requirements for large-scale inference or training.
  • Compatibility with the latest transformer model releases and huggingface-hub API changes.
Same gist for agents: .md · .json

What it is and what it does

Flair is a PyTorch-based NLP framework that wraps state-of-the-art transformer and contextual models to make common NLP tasks accessible through a simple API. It ships with pre-trained models for named entity recognition, sentiment analysis, part-of-speech tagging, and biomedical text analysis across multiple languages, and allows you to load, apply, and combine embeddings without writing low-level PyTorch code.

The framework is built for both practitioners who want to apply existing models to text and researchers who want to train custom models. It depends on torch, transformers, huggingface-hub, and a large ecosystem of supporting libraries (scikit-learn, matplotlib, lxml, and others) to handle data loading, visualization, and model evaluation. The aging maintenance status (last release 555 days ago) means you should verify compatibility with your target PyTorch and transformer versions before committing to production use.

Use it for

  • Extract named entities (persons, locations, organizations) from English, German, Dutch, Spanish, or other language text using pre-trained models.
  • Classify sentiment in text as positive or negative without training a custom model.
  • Generate word and document embeddings for downstream machine learning tasks using Flair embeddings or transformer models.
  • Train a custom sequence labeling model (NER, PoS tagging) on your own annotated dataset using the PyTorch framework.
  • Analyze biomedical or clinical text using specialized models and datasets designed for domain-specific NLP.
  • Combine multiple embeddings (word, document, transformer) and experiment with new architectures for sequence labeling.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a high-level NLP framework with pre-trained models and your Python and PyTorch versions align with the package's requirements.

The low install friction, permissive license, and strong community adoption (14382 stars) make it a solid choice for NER, sentiment analysis, and embeddings. However, verify that the aging maintenance status (555 days since last release) does not conflict with your dependency update cycles, and test compatibility with your target PyTorch and transformer versions before production deployment.

Install

flair on PyPI

Before you install

Low install friction with a pure-Python wheel. The package has 25 runtime dependencies including torch, transformers, and huggingface-hub, which are substantial but standard for modern NLP work. Maintenance status is aging—last release was 555 days ago—though the repository remains active with recent commits and 14382 stars.

Requires Python 3.9+. Installing torch and transformers dependencies may take time and disk space; GPU support is optional but recommended for production use.

License in practice

MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution.

Quickstart

pip install flair

from flair.data import Sentence
from flair.nn import Classifier

sentence = Sentence('I love Berlin .')
tagger = Classifier.load('ner')
tagger.predict(sentence)
print(sentence)

Verify before relying

  • Whether the 555-day gap since last release indicates active maintenance or reduced development velocity.
  • Performance characteristics and memory requirements for large-scale inference or training.
  • Compatibility with the latest transformer model releases and huggingface-hub API changes.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
25 packages
boto3conlludeprecatedftfygdownhuggingface-hublangdetectlxmlmatplotlibmore-itertoolsmpld3pptreepython-dateutilpytorch-revgradregexscikit-learnsegtoksqlitedicttabulatetorchtqdmtransformer-smaller-training-vocabtransformerswikipedia-apibioc
MaintenanceAging 555 days since the last release
Last repo commit
First released
Downloads234,314 / month, #9,024 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: flair-0.15.1-py3-none-any.whl

Tags

Capabilities
named entity recognition NERsentiment analysis NLPpart-of-speech taggingtext embeddings frameworksequence labeling PyTorchbiomedical NLP modelstransformer embeddingsNLP model training
Topics
nlp-frameworksequence-labelingtransformers

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “sequence labeling PyTorch”

  • flairFlair is a PyTorch-based NLP framework that applies pre-trained…
  • seqevalseqeval evaluates the performance of sequence labeling tasks like…
  • sklearn-crfsuitesklearn-crfsuite wraps CRFsuite (Conditional Random Fields) as a…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also sentence-transformers · seqeval · spark-nlp · vaderSentiment · pytdc · gliner · torchtext · spacy · setfit · textblob