Skip to main content

collapse-score-lite

因果配平第四方程 —— 果标签(能量坍塌)文本检测与最佳遴选模块。

简介

本模块用于评估与遴选符合「果标签」规范的自然语言文本。通过语法结构分析、词性标注、主观程度词提取以及客观事件 / 违规符号(如 | 和 @ 占位符)拦截,判定文本是否达到「纯粹终极主观能量坍塌态」。

安装

pip install collapse-score-lite

使用

from collapse_score_lite import get_best_outcome_label, OutcomeLabelEvaluator

candidates = [
    "廉颇不讲信用,而且性格差",
    "廉颇吃了一斗米",
    "廉颇值得信任",
    "廉颇骁勇善战",
    "廉颇去了赵国",
]

# 遴选最佳文本
best = get_best_outcome_label(candidates, group=False, return_eval=False)
print(best)

# 详细评估报告
report = get_best_outcome_label(candidates, return_eval=True)
print(report)

# 单条评估
evaluator = OutcomeLabelEvaluator()
print(evaluator.evaluate("廉颇值得信任"))

接口

  • get_best_outcome_label(texts, group=False, return_eval=False):从候选文本列表中遴选最适合的果标签,或返回详细评估报告。
  • OutcomeLabelEvaluator.evaluate(text):评估单条文本的能量坍塌程度与果标签规范度,返回 {score, score_explanation, is_valid}。

Metadata

Release files for collapse-score-lite 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collapse-score-lite 0.1.2
File Size Uploaded Provenance
collapse_score_lite-0.1.2.tar.gz 5.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for collapse-score-lite 0.1.2
File Interpreter ABI Platform
collapse_score_lite-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / collapse_score_lite-0.1.2.tar.gz

Download URL collapse_score_lite-0.1.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
26b869ce233efc46f8e6467f7248e369cf4370bd78ad1ba0e7af5d5e21f5998d
BLAKE2b-256 checksum
How to use checksums
54eb62276dff8f100a3a9c710e6c8706aaec867a3303c5c74d470ea20da8cda9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / collapse_score_lite-0.1.2-py3-none-any.whl

Download URL collapse_score_lite-0.1.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef7a876e26600beba6786d9dcf6d6c7613800202e863a064b43455acbdda1bb9
BLAKE2b-256 checksum
How to use checksums
bbc5915adbf2007c2dc497f699606cadb2dc4f42b2a1a5b4e95b4ee4d2db072f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for collapse-score-lite 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page