mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-04-28 06:20:39 +00:00
feat(doantu): constrain target pool to phow2sim rank 100-1000
Default /random pulled from the full Vietnamese corpus (rank 40k+ words like "sa_mạc_hoá" showed up), which made rounds unplayable for casual speakers. Filter targets to min_rank=100, max_rank=1000 so words stay recognizable.
This commit is contained in:
@@ -27,7 +27,9 @@ ignored (no cost, no stat inflation).
|
||||
Target words + similarity scores come from our self-hosted **phow2sim**
|
||||
instance (default: `https://phow2sim.sg.miti99.com`). Wraps two endpoints:
|
||||
|
||||
- `GET /random` — pick a secret Vietnamese word at round start.
|
||||
- `GET /random` — pick a secret Vietnamese word at round start. Targets
|
||||
are filtered to the top-frequency band (`min_rank=100`, `max_rank=1000`)
|
||||
so rounds stay guessable for casual players.
|
||||
- `GET /similarity?a=…&b=…` — cosine similarity + canonical forms +
|
||||
`in_vocab_a` / `in_vocab_b` flags.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user