tiny-lang-detect

Generate tiny models for language detection  https://p.ce9e.org/tiny-lang-detect/demo/
git clone https://git.ce9e.org/tiny-lang-detect.git

commit
9c128468b32a9d10a1ac0dea0908e38d036832df
parent
6d8c914ce3795f6e5d2fc26800b3514000c8e4dd
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-05-26 15:37
allow utf-8 in json output

Diffstat

M gen_model.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/gen_model.py b/gen_model.py

@@ -41,4 +41,4 @@ if __name__ == '__main__':
   41    41     args = parser.parse_args()
   42    42 
   43    43     model = get_model(*args.lang, n=args.n, ndigits=args.p)
   44    -1     print(json.dumps(model))
   -1    44     print(json.dumps(model, ensure_ascii=False))