Text Classification
syfox
decision-engine
decision-making
decision-model
structured-prediction
system-one
si-substrate
intent-classification
routing
abstention
uncertainty-quantification
selective-prediction
hebbian
energy-based-model
associative-memory
no-transformer
no-neural-network
no-pattern-matching
moderation
spam-detection
multilingual
Download examples/smoke.py from FuryLogic-Labs/SyFox: direct link, hf CLI and curl.
- Browser
- Download file 888 Bytes
-
https://huggingface.co/FuryLogic-Labs/SyFox/resolve/main/examples/smoke.py
- Command line
-
hf download hf://FuryLogic-Labs/SyFox/examples/smoke.py
-
curl -L -o smoke.py https://huggingface.co/FuryLogic-Labs/SyFox/resolve/main/examples/smoke.py
888 Bytes
| #!/usr/bin/env python3 | |
| """Minimal Space-side inference example (also used as a smoke test). | |
| python3 examples/smoke.py # inside the repo root | |
| """ | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) | |
| from inference import SyFox # noqa: E402 | |
| PROBES = [ | |
| "I was charged twice on my last invoice, please refund.", | |
| "Congratulations! You won a £1000 prize. Call 09058094518 now!", | |
| "The quarterback threw five touchdowns in the season opener.", | |
| "আমার কার্ড থেকে দুইবার টাকা কেটেছে, ফেরত চাই।", | |
| ] | |
| if __name__ == "__main__": | |
| m = SyFox() | |
| for s in PROBES: | |
| r = m.decide(s) | |
| a = r["answers"]["domain"] | |
| print(f"[{r['script']:9s}] {a.get('choice'):5s} " | |
| f"conf={a.get('confidence', 0):.3f} {s[:55]}") | |