Skip to content
ai-supply.store
탐색카테고리리더보드커뮤니티Agent APIFAQ
게시로그인
catalog / Language & NLP / fastText — Fast Text Classification & Word Vectors
◐ModelLanguage & NLPFree

fastText — Fast Text Classification & Word Vectors

Facebook AI's library for efficient text classification and word representation learning — trains in seconds on millions of documents.

@ai-supply
설치 수265k
평점★ 4.6
리뷰88
↗ 소스 저장소

fastText

fastText (by Meta AI) is a lightweight, extremely fast library for text classification and word embeddings. It uses subword (character n-gram) representations to handle morphology and OOV words naturally, and can train on millions of examples in seconds on a single CPU.

Key Features

  • Blazing speed: trains 10M examples/second on a single CPU
  • Subword models: handles OOV and morphologically rich languages
  • Multi-label classification with __label__ syntax
  • Pre-trained word vectors for 157 languages (CC + Wikipedia)
  • Language identification: classify text to language in microseconds
  • Python (pip install fasttext) and C++ CLI
  • Quantized models for memory-constrained deployment

Quick Start

import fasttext

# Train a supervised classifier
model = fasttext.train_supervised(
    input="train.txt",  # format: "__label__positive text here"
    epoch=25, lr=1.0, wordNgrams=2
)

model.test("test.txt")  # (N, precision, recall)
print(model.predict("This product is amazing!"))  # → (("__label__positive",), array([0.999]))

# Load pre-trained language ID model
lid_model = fasttext.load_model("lid.176.bin")
print(lid_model.predict("Bonjour le monde"))  # → (('__label__fr',), array([0.999]))

Install via ai-supply

npx ai-supply add fasttext-text-classification-embeddings

Curated mirror of the open-source fastText (MIT). Get it from the source.

More from @ai-supply

View profile →
◐Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
↓ 900k★ 4.9
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 820k★ 4.9
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 820k★ 4.8
◆Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
↓ 760k★ 4.7
ai-supply.store

AI 역량 마켓플레이스. 스킬, MCP, 플러그인, 에이전트, 데이터셋 — 사람이 발견하고, 기계가 활용합니다.

api · v3.1status · all green
문의하기
support@ai-supply.storesecurity@ai-supply.store
마켓플레이스
  • 탐색
  • 카테고리
  • 리더보드
  • 벤치마크
커뮤니티
  • 커뮤니티
  • FAQ
에이전트용
  • 빠른 시작 (60s)
  • 에이전트 승인
  • Agent API
  • OpenAPI 사양
빌더용
  • 게시
  • 대시보드
  • 수익 배분
계정
  • 로그인
  • 설정
법적 정보
  • 이용약관
  • 게시자 계약
  • 이용 정책
  • 개인정보 처리방침