Spaces:
Running
Download toolkit/PORTABLE.md from Giuliocc/tacitus-source-lab: direct link, hf CLI and curl.
- Browser
- Download file 2.07 kB
-
https://huggingface.co/spaces/Giuliocc/tacitus-source-lab/resolve/main/toolkit/PORTABLE.md
- Command line
-
hf download hf://spaces/Giuliocc/tacitus-source-lab/toolkit/PORTABLE.md
-
curl -L -o PORTABLE.md https://huggingface.co/spaces/Giuliocc/tacitus-source-lab/resolve/main/toolkit/PORTABLE.md
TACITUS portable inference
From a checkout or download of the GitHub toolkit, use Python 3.12 and Node 20 or later. Clone the Hugging Face Space and enter its toolkit directory if you prefer to use the Hub copy.
python -m research.fetch_models
python -m research.fetch_models --check
echo '{"task":"events","text":"The council requested a review.","include_participants":true}' | node tacitus.cjs
The same runner handles Evidence requests with a claim field and Actors requests with just task and text. Results use exact Unicode offsets and include the weights revision. Use node tacitus.cjs --jsonl to stream a batch. Invalid rows return an error with the input line number and the remaining rows are still processed. The process exits with status 2 for a batch containing an invalid row.
A known trigger for Events is optional. Supply trigger with its exact code-point start, exclusive end, and canonical event_type. Set include_participants to true to score participants. The result distinguishes disabled, scored, and capped participant scans. Treat candidate participants as suggestions for source review.
Request schema · Result schema · Weight hashes and revisions · GitHub toolkit
Portable files and benchmark replay
Use node tacitus.cjs --input fixtures/request.json on Linux, macOS, or Windows. The npm alias is npm run analyze -- --input fixtures/request.json. The CLI also accepts stdin, validates UTF-8, and bounds each request to 64 KiB before parsing. A malformed or oversized JSONL record produces a line-numbered error while later records are processed.
Run npm test after fetching the weights. Use python -m research.civic.compact_eval --output build/civic-compact.json to replay the compact models against both pinned civic cohorts and record exact revisions. The reference labels are provisional.