目录

MoonNER

MoonNER is a lightweight MoonBit named entity recognition engine for Chinese and mixed-script text.

Repositories

Project name

MoonNER

Project identifier

ljlljl678/moonner

Project summary

MoonNER turns raw text into entity spans with a small, readable pipeline:

  • Unicode-aware tokenization with longest-match Chinese phrase splitting
  • Lexicon-driven feature scoring for people, organizations, locations, and time expressions
  • Linear-chain decoding for stable entity spans
  • A thin CLI entrypoint for quick demos

Supported entities

  • Person
  • Organization
  • Location
  • Time

Why this project

NER is a good contest topic because it is a mature NLP baseline with room to grow. The current version focuses on a clear, extensible core rather than a narrow proof of concept. That leaves space for later improvements such as:

  • richer transition scoring
  • training data support
  • gazetteer expansion
  • evaluation metrics
  • web or service integration

Run

moon test
moon run cmd/main -- "浠婂ぉ寮犱紵鍦ㄥ寳浜ぇ瀛﹀拰娣卞湷鐮旂┒闄㈣璁?MoonBit NER 椤圭洰銆?

Structure

  • moonner.mbt: public library facade
  • ner_types.mbt: entities, tags, and model data
  • tokenizer.mbt: text segmentation
  • model.mbt: scoring, decoding, and span merging
  • cmd/main/main.mbt: CLI entrypoint

License

Apache-2.0

Source note

This repository is original MoonBit code written for OSC2026. The lexicon entries are small hand-written examples for demonstration and are not copied from any external dataset.

关于

一个面向中文与混合文本的 MoonBit 命名实体识别引擎,包含最长词优先分词、词典/后缀特征打分、线性链解码、实体合并和一个轻量 CLI。它现在能稳定识别时间、人名和组织名这类常见实体。

52.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号