Spaces:
Sleeping
Sleeping
push: fixed the output
Browse files32 unmodified lines333435363738394041424332 unmodified linesconf = _clamp(float(confidence), 0.0, 100.0)return conf if label == "AI" else (100.0 - conf)def _sentence_bias_strength(overall_confidence: float) -> float:# Stronger bias so sentence output follows the overall document decision.# Equation: beta = min(0.80, 0.40 + 0.40 * (C_doc / 100))return min(0.80, 0.40 + 0.40 * (_clamp(overall_confidence, 0.0, 100.0) / 100.0))def _deterministic_jitter(seed_text: str, max_jitter: float = 3.0) -> float:32 unmodified lines33343536373839404132 unmodified linesconf = _clamp(float(confidence), 0.0, 100.0)return conf if label == "AI" else (100.0 - conf)def _sentence_bias_strength(overall_confidence: float) -> float:# Equation: beta = min(0.15, 0.05 + 0.10 * (C_doc / 100))return min(0.15, 0.05 + 0.10 * (_clamp(overall_confidence, 0.0, 100.0) / 100.0))def _deterministic_jitter(seed_text: str, max_jitter: float = 3.0) -> float:
features/nepali_text_classifier/controller.py+3-5