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.3

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.3
File Size Uploaded Provenance
collapse_score_lite-0.1.3.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / collapse_score_lite-0.1.3.tar.gz

Download URL collapse_score_lite-0.1.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5eac160684fb54507ec94cfe004280679c6eb8dfaac84847b03e10a01be5b301
BLAKE2b-256 checksum
How to use checksums
96a0aa6f68ac16962e8ffb388fcd00e5fe463a1527f297c7dc1039ebc2c2da3f
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.3-py3-none-any.whl

Download URL collapse_score_lite-0.1.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd0c4224e2c8bb8c8d512378e54a19d82a9eec3144d540e5a91271e4c28fa2ad
BLAKE2b-256 checksum
How to use checksums
008b41d2a74acf8b4ad65f970981afbb13d8b9ae1854332d54e22fe7b9835b3d
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.3

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