Scan your whole stack
From OX Research Newsroom
Are you using factotum-vn-nlp?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.2
factotum-vn-nlp was last scanned on 28 Nov 2026 at version 1.1.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.1.2 LATEST | 28 Nov 2026 | No rules fired |
| 1.1.1 | 28 Nov 2026 | No rules fired |
| 1.1.0 | 27 Nov 2026 | No rules fired |
Findings for v1.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.1.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Try it online: open the Hugging Face Spaces Demo to test Factotum right in your browser with no setup required.
Every day, users type shorthand (tngt, atgt, csgt, xpvphc, nd), omit Vietnamese diacritics (xu phat vi pham), drop words (an toan thong), or make Telex/key-repeat typos (buowcs, phappp). Fragmented queries like these easily confuse search bars, autocomplete widgets, and entity-extraction pipelines.
Factotum expands abbreviations, restores Vietnamese diacritics, recovers dropped words, and fixes typos using surrounding context — making queries clear for both human readers and downstream search engines:
| Real-World Case | What You Type | Factotum Clarifies To |
|---|---|---|
| Unaccented typing | xu phat vi pham hanh chinh |
xử phạt vi phạm hành chính |
| Chained long abbreviations | csgt xpvphc người không có gplx |
cảnh sát giao thông xử phạt vi phạm hành chính người không có giấy phép lái xe |
| Context-aware acronym disambiguation | nd 23/24 quy định về atgt đường bộ / tòa án nd tối cao |
nghị định 23/24 quy định về an toàn giao thông đường bộ / tòa án nhân dân tối cao |
| Dropped middle word | an toan thong / xe k bang lai |
an toàn giao thông / xe không có bằng lái |
| Telex, key-repeat & spelling typos | buowcs, uống dượu bia phạt bao nhiêu, hộ kihw doan |
bước, uống rượu bia phạt bao nhiêu, hộ kinh doanh |
| Already valid sentence | chạy xe vượt đèn đỏ bị phạt bao nhiêu tiền |
Kept intact without over-correcting |
.ftm binary file..doc, .docx, or .txt folder — it automatically extracts domain terminology with no manual labeling.Evaluated across 20,064 test queries (report_10000_20261128_185548.txt):
| Benchmark Suite | Queries | Raw (KW-Rec) |
Base-2g (KW-Rec) |
Factotum v1.1.1 (KW-Rec / All-KW / Ctx-F1) |
Median / Mean Latency |
|---|---|---|---|---|---|
| Document-level Held-out | 10,000 | 19.5% | 87.3% | 95.8% / 91.0% / 96.2% | 2.65 ms / 3.55 ms |
| 64 Real-World Context Cases | 64 | 23.4% | 64.3% | 98.4% / 96.9% / 99.7% | 10.64 ms / 14.80 ms |
| In-Sample Stress Test | 10,000 | 16.9% | 91.1% | 99.1% / 97.6% / 99.2% | 2.05 ms / 3.24 ms |
Factotum works best as a query & text clarification layer for domains with recurring terminology:
User types quickly: "csgt xpvphc người không có gplx"
↓
[ Factotum ] Clarifies context & entities in milliseconds
↓
"cảnh sát giao thông xử phạt vi phạm hành chính người không có giấy phép lái xe"
↓
[ Search / Embeddings & RAG / NER / Autocomplete ] → More accurate results
| Domain | Practical Problem | How Factotum Helps |
|---|---|---|
| Document Search & RAG | Shorthand queries (nd 23/24, xpvphc, gplx) hurt keyword matching and embedding recall. |
Run model.restore(query) right before search or vector encoding to surface full terms. |
| Legal & Public Administration | Clerks and citizens search laws using tngt, atgt, xpvphc, tòa án nd tối cao. |
Drop in the included output/factotum_law.ftm model in front of legal search bars or shorthand tools. |
| Healthcare & Pharmacy | Doctors and nurses jot down abbreviated drug names and diagnoses while keeping records private. | Run fit_folder() on internal medical notes / drug catalogs (.docx/.txt) to build an offline .ftm model. |
| Customer Support & Chatbots | Customers send unaccented, typo-filled, or word-dropped messages that trip FAQ/intent classifiers. | Place Factotum ahead of intent routing or chatbots to boost accuracy with zero per-message API cost. |
| Accounting & Operations | Staff enter reports, material codes, and SOP terms full of company-specific shorthand. | Train on internal SOPs and incrementally append new documents via update_folder(). |
pip install factotum-vn-nlp
Or install from source (includes the pre-built output/factotum_law.ftm legal model & CLI/demo):
git clone https://github.com/evilogre1112/Factotum.git
cd Factotum
pip install -e .
from factotum import Factotum
model = Factotum.load("output/factotum_law.ftm")
print(model.restore("csgt xpvphc người không có gplx"))
# cảnh sát giao thông xử phạt vi phạm hành chính người không có giấy phép lái xe
print(model.restore("nd 23/24 quy định về atgt đường bộ"))
# nghị định 23/24 quy định về an toàn giao thông đường bộ
print(model.restore("tòa án nd tối cao")) # tòa án nhân dân tối cao
print(model.restore("an toan thong")) # an toàn giao thông
Factotum reads .txt, .docx, and .doc files directly:
from factotum import Factotum
# Learn from your document folder
model = Factotum().fit_folder("path/to/your_documents")
# Save as a single portable .ftm file
model.save("my_company.ftm")
# Later, incrementally learn new documents without rebuilding from scratch:
# model.update_folder("path/to/new_documents")
python src/app.py # Interactive CLI (ingest data, test queries, update KB)
pip install gradio && python demo/app.py # Visual Web UI at http://127.0.0.1:7860
confidence to Auto-Apply or SuggestWhen embedding Factotum in an application, retrieve ranked candidates with 0% – 100% confidence scores and explicit edits spans:
results = model.predict("csgt xpvphc người không có gplx", top_k=3)
best = results[0]
if not best.is_fallback and best.confidence >= 0.70:
# High confidence → safe to auto-apply
text = best.phrase
elif not best.is_fallback and best.confidence >= 0.50:
# Medium confidence → show as suggestions
suggestions = [r.phrase for r in results]
else:
# Not certain enough → keep user's original input
text = "csgt xpvphc người không có gplx"
Edit output/dangling_end_words.txt directly to add or remove function/conjunction words (của, cho, về, thì, và...). Predictions ending abruptly on these words are automatically filtered out. Changes take effect within ~2 seconds without retraining.
See output/README.md for a breakdown of every file in output/ (which files are safe to edit and which should be left untouched).
On Windows, the C++ Suffix Array/LCP accelerator is already pre-bundled. On Linux/macOS, Factotum runs out of the box in pure Python; if you want faster ingestion on large corpora, compile the native library with one command:
# Linux
g++ -O3 -std=c++17 -shared -fPIC src/factotum/builder/native/sa_lcp.cpp -o src/factotum/builder/native/libsa_lcp.so
# macOS
g++ -O3 -std=c++17 -shared -fPIC src/factotum/builder/native/sa_lcp.cpp -o src/factotum/builder/native/libsa_lcp.dylib
To help you evaluate Factotum accurately for your project, here are its practical boundaries:
cnt could be cho nhà thầu or của nhà thầu). Provide surrounding context or surface Top-3 suggestions in those cases.Full evaluation reports, charts, and reproduction instructions are maintained in dedicated documents:
python benchmark/run_benchmark.py 10000).output/.CITATION.cff)MIT License.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.