/ Модель

Характеристики

Контекст
2 048 токенов
Параметры
148 млн
Лицензия
Apache 2.0
Опубликована
7 окт 2025

NER-Standard

Генерация текстаТекст → текст8 профессий

Компактная англоязычная модель Minibase для извлечения людей, организаций, мест и других именованных сущностей с выдачей результата в JSON.

303скачиваний за 30 дней3лайкавеса обновлены7 окт 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Minibase-NER-Standard — компактная языковая модель Minibase для распознавания и классификации именованных сущностей в тексте. Она выделяет людей, организации, места и прочие сущности и возвращает результат в структурированном JSON, что подходит для последующего автоматического разбора.

Модель построена на архитектуре LlamaForCausalLM. В метаданных указано 147,8 млн параметров; README приводит контекст 2 048 токенов. Репозиторий содержит GGUF-квантизацию Q8_0, предназначенную для локального инференса, в том числе на CPU. В карточке заявлены оценка F1 95,1%, точность 91,5% и полнота 100% на тесте из 100 примеров; эти результаты относятся к описанной в README оценке и не гарантируют аналогичного качества на других данных. Указан английский язык. Лицензия — Apache-2.0.

Сценарии применения

  • извлечение имён людей из текстов
  • поиск организаций в документах
  • распознавание географических названий
  • классификация сущностей по типам PERSON, ORG, LOC и MISC
  • подготовка JSON-разметки сущностей для последующей обработки

Ограничения

Заявленные метрики основаны на оценке всего из 100 примеров и могут не отражать качество на других типах текстов. Контекст ограничен 2 048 токенами; вывод сущностей оформляется как сгенерированный JSON и может требовать проверки корректности.

Для каких профессий подходит8

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

NER-Standard 🤖

A high-performance Named Entity Recognition model with superior accuracy and structured JSON output.

Model Size Architecture Context Window License Discord

Built by Minibase - Train and deploy small AI models from your browser. Browse all of the models and datasets available on the Minibase Marketplace.

📋 Model Summary

Minibase-NER-Standard is a high-performance language model fine-tuned for Named Entity Recognition (NER) tasks. It automatically identifies and extracts named entities from text, outputting them in structured JSON format with proper entity type classification for persons, organizations, locations, and miscellaneous terms.

Key Features

  • 🎯 Excellent NER Performance: 95.1% F1 score on entity recognition tasks
  • 📊 Entity Classification: Accurately categorizes PERSON, ORG, LOC, and MISC entities
  • 📏 Optimized Size: 369MB (Q8_0 quantized)
  • ⚡ Efficient Inference: 323.3ms average response time
  • 🔄 Local Processing: No data sent to external servers
  • 🏗️ Structured JSON Output: Clean, parseable entity extraction results

🚀 Quick Start

Local Inference (Recommended)

  1. Install llama.cpp (if not already installed):

    # Clone and build llama.cpp
    git clone https://github.com/ggerganov/llama.cpp
    cd llama.cpp
    make
    
    # Return to project directory
    cd ../NER_small
    
  2. Download the GGUF model:

    # Download model files from HuggingFace
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/model.gguf
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/ner_inference.py
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/config.json
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/tokenizer_config.json
    wget https://huggingface.co/Minibase/NER-Small/resolve/main/generation_config.json
    
  3. Start the model server:

    # Start llama.cpp server with the GGUF model
    ../llama.cpp/llama-server \
      -m model.gguf \
      --host 127.0.0.1 \
      --port 8000 \
      --ctx-size 2048 \
      --n-gpu-layers 0 \
      --chat-template
    
  4. Make API calls:

    import requests
    
    # NER tagging via REST API
    response = requests.post("http://127.0.0.1:8000/completion", json={
        "prompt": "Instruction: Identify and tag all named entities in the following text. Use BIO format with entity types: PERSON, ORG, LOC, MISC.\n\nInput: John Smith works at Google in New York.\n\nResponse: ",
        "max_tokens": 512,
        "temperature": 0.1
    })
    
    result = response.json()
    print(result["content"])
    # Output: "John B-PERSON\nSmith I-PERSON\nworks O\nat O\nGoogle B-ORG\nin O\nNew York B-LOC\nI-LOC\n."
    

Python Client (Recommended)

# Download and use the provided Python client
from ner_inference import NERClient

# Initialize client (connects to local server)
client = NERClient()

# Tag entities in text
text = "Apple Inc. was founded by Steve Jobs in Cupertino, California."
entities = client.extract_entities(text)

print(entities)
# Output: [
#   {"text": "Apple Inc.", "type": "ORG", "start": 0, "end": 9},
#   {"text": "Steve Jobs", "type": "PERSON", "start": 24, "end": 34},
#   {"text": "Cupertino", "type": "LOC", "start": 38, "end": 47},
#   {"text": "California", "type": "LOC", "start": 49, "end": 59}
# ]

# Batch processing
texts = [
    "Microsoft announced a new CEO.",
    "Paris is the capital of France."
]
all_entities = client.extract_entities_batch(texts)
print(all_entities)

Direct llama.cpp Usage

# Alternative: Use llama.cpp directly without server
import subprocess
import json

def extract_entities_with_llama_cpp(text: str) -> str:
    prompt = f"Instruction: Identify and tag all named entities in the following text. Use BIO format with entity types: PERSON, ORG, LOC, MISC.\n\nInput: {text}\n\nResponse: "

    # Run llama.cpp directly
    cmd = [
        "../llama.cpp/llama-cli",
        "-m", "model.gguf",
        "--prompt", prompt,
        "--ctx-size", "2048",
        "--n-predict", "512",
        "--temp", "0.1",
        "--log-disable"
    ]

    result = subprocess.run(cmd, capture_output=True, text=True, cwd=".")
    return result.stdout.strip()

# Usage
result = extract_entities_with_llama_cpp("John Smith works at Google in New York.")
print(result)

📊 Benchmarks & Performance

Overall Performance (100 samples)

MetricScoreDescription
NER F1 Score95.1%Overall entity recognition performance
Precision91.5%Accuracy of entity predictions
Recall100.0%Perfect recall - finds all relevant entities
Average Latency323.3msResponse time performance

Entity Recognition Performance

  • Entity Identification Accuracy: 100% (100/100 correct predictions when entities are found)
  • Evaluation Methodology: JSON parsing with exact entity type matching
  • Output Format: Structured JSON (e.g., {"PER": ["John Smith"], "ORG": ["Google"]})

Performance Insights

  • ✅ Excellent F1 Score: 95.1% overall performance
  • ✅ Perfect Recall: 100% of expected entities are found
  • ✅ High Precision: 91.5% accuracy on identified entities
  • ✅ Structured Output: Clean JSON format with proper entity categorization
  • ✅ High Reliability: Consistent performance across different entity types
  • ✅ Production Ready: Excellent for real-world NER applications

💡 Examples

Here are real examples from the benchmark evaluation showing the structured JSON output:

🏢 Business Example

Input:

Microsoft Corporation announced that Satya Nadella will visit London next week.

Output:

{"PER": ["Satya Nadella"], "ORG": ["Microsoft Corporation"], "LOC": ["London"]}

Analysis: Perfect entity identification and categorization - 3/3 entities correctly identified and classified.

🎓 Academic Example

Input:

The University of Cambridge is located in the United Kingdom and was founded by King Henry III.

Output:

{"PER": ["King Henry III"], "ORG": ["University of Cambridge"], "LOC": ["United Kingdom"]}

Analysis: All 3 entities correctly identified and properly categorized by type.

💼 Professional Example

Input:

John Smith works at Google in New York and uses Python programming language.

Output:

{"PER": ["John Smith"], "ORG": ["Google"], "LOC": ["New York"], "MISC": ["Python"]}

Analysis: Complete entity extraction with accurate type classification for all 4 entities found.

🏗️ Technical Details

Model Architecture

  • Architecture: LlamaForCausalLM
  • Parameters: 135M (small capacity)
  • Context Window: 2,048 tokens
  • Max Position Embeddings: 2,048
  • Quantization: GGUF (Q8_0 quantization)
  • File Size: 369MB
  • Memory Requirements: 8GB RAM minimum, 16GB recommended

Training Details

  • Base Model: Custom-trained Llama architecture
  • Fine-tuning Dataset: Mixed-domain entity recognition data
  • Training Objective: Named entity extraction and listing
  • Optimization: Quantized for efficient inference
  • Model Scale: Small capacity optimized for speed

System Requirements

ComponentMinimumRecommended
Operating SystemLinux, macOS, WindowsLinux or macOS
RAM8GB16GB
Storage150MB free space500MB free space
Python3.8+3.10+
Dependenciesllama.cppllama.cpp, requests

Notes:

  • ✅ CPU-only inference supported but slower
  • ✅ GPU acceleration provides significant speed improvements
  • ✅ Apple Silicon users get Metal acceleration automatically

📜 Citation

If you use Named Entity Recognition - Standard in your research, please cite:

@misc{ner-standard-2025,
  title={Named Entity Recognition - Standard: High-Performance Named Entity Recognition Model},
  author={Minibase AI Team},
  year={2025},
  publisher={Hugging Face},
  url={https://huggingface.co/Minibase/NER-Standard}
}

🤝 Community & Support

📋 License

This model is released under the Apache License 2.0.

🙏 Acknowledgments

  • CoNLL-2003 Dataset: Used for training and evaluation
  • llama.cpp: For efficient local inference
  • Hugging Face: For model hosting and community
  • Our amazing community: For feedback and contributions

Built with ❤️ by the Minibase team

Making AI more accessible for everyone

💬 Join our Discord

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
a695c3e

0 моделей