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

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.1
File Size Uploaded Provenance
collapse_score_lite-0.1.1.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 11.7 kB

Release files / collapse_score_lite-0.1.1.tar.gz

Download URL collapse_score_lite-0.1.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cced1aaf1a61990cbffe8e44c055da2440785321391a61773b63849f5816a067
BLAKE2b-256 checksum
How to use checksums
c6ebb8904c0745b109e31533660b2c17f6936aa01a3ca84bd3d8fc0c0f1c02b6
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.1-py3-none-any.whl

Download URL collapse_score_lite-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fd8d3b853d77f558256868e49213bde82fb0fb5703a4d4034393af9d7ef1a70
BLAKE2b-256 checksum
How to use checksums
432f34dcd5c756faa8a6f11bc6d1c88c98d1a8f0ad67e0a794d921f6b5f96e6d
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.1

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