diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..ac5fe299f09fdd36092c78cf53baae97e44c000f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -33,3 +33,20 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text +examples/code.mp3 filter=lfs diff=lfs merge=lfs -text +examples/delay_apology.mp3 filter=lfs diff=lfs merge=lfs -text +examples/elderly_customer.mp3 filter=lfs diff=lfs merge=lfs -text +examples/english_assistant.mp3 filter=lfs diff=lfs merge=lfs -text +examples/english_formal.mp3 filter=lfs diff=lfs merge=lfs -text +examples/english_operator.mp3 filter=lfs diff=lfs merge=lfs -text +examples/grateful_customer.mp3 filter=lfs diff=lfs merge=lfs -text +examples/joking_customer.mp3 filter=lfs diff=lfs merge=lfs -text +examples/narrator_article.mp3 filter=lfs diff=lfs merge=lfs -text +examples/narrator_book.mp3 filter=lfs diff=lfs merge=lfs -text +examples/narrator_news.mp3 filter=lfs diff=lfs merge=lfs -text +examples/narrator_tale.mp3 filter=lfs diff=lfs merge=lfs -text +examples/pace_normal.mp3 filter=lfs diff=lfs merge=lfs -text +examples/pace_slow.mp3 filter=lfs diff=lfs merge=lfs -text +examples/sceptical_customer.mp3 filter=lfs diff=lfs merge=lfs -text +examples/serious_assistant.mp3 filter=lfs diff=lfs merge=lfs -text +examples/serious_operator.mp3 filter=lfs diff=lfs merge=lfs -text diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d7716a0eda95ead52110f7581665ec099239a282 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Gapiring is open source: free for any use, commercial use included. + +1. Code (the runtimes, the libraries, the text normaliser): MIT License + +Copyright (c) 2026 Gapi (https://gapi.uz) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +2. Model files, voices and dictionary: Creative Commons Attribution 4.0 International (CC BY 4.0) + https://creativecommons.org/licenses/by/4.0/ + +Credit to give when you share them or what you make from them: "Gapiring by Gapi (https://gapi.uz), an adaptation of +Kyutai Pocket TTS (https://huggingface.co/kyutai/pocket-tts), CC BY 4.0". diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b32a70dc5dc70e18391bc666cbce9eea22330002 --- /dev/null +++ b/README.md @@ -0,0 +1,300 @@ +--- +license: cc-by-4.0 +language: +- uz +pipeline_tag: text-to-speech +library_name: onnx +base_model: kyutai/pocket-tts +tags: +- tts +- onnx +- uzbek +- edge +- gapiring +--- + +# Gapiring v2 — Uzbek text-to-speech: a narrator, roles and manners, English words as written + +**Gapiring Edge v2** (110M parameters, 117 MB) is Uzbek text-to-speech that runs on an ordinary CPU or entirely in a +web browser, with no GPU and no server. It speaks in two voices, `f1` (female) and `m1` (male), takes a **role** and a +**manner** of speech by name, and streams audio as it is made. Built on Kyutai's Pocket TTS. +Libraries: `pip install gapiring`, `npm install gapiring`, Android (Maven), iOS (Swift package: +https://github.com/Islomov49/gapiring-ios). Gapiring v1 (Edge and Large) stays at `islomov/gapi-uz-gapiring-v1`. + +## New in v2 + +- **Narrator.** The role `narrator` reads a longer text aloud in one of four genres: `book`, `article`, `news`, `tale`. +- **English words as written.** English words, brand names and abbreviations inside Uzbek text (Google Lens, Power BI, + eSIM, check-in, IELTS) are read from their ordinary spelling. The dictionary of v1 is gone: nothing to load, nothing + to respell. +- **Serious.** The manner `serious` for `operator`, `assistant` and `assistant_formal`; the narrator's `article` and + `news` take `serious=True`. +- **Pace.** `pace="slow"` or `pace="fast"`. +- **Hesitations are a switch.** The lively `assistant` now speaks fluently; `hesitant=True` brings back the small + hesitations of live speech that it had in v1. +- Everything v1 did stays: the roles and manners of v1 by the same names, the emotional mode, sounds in the text. + +## Use it + +### Python + +CPU, no PyTorch. The model (113 MB) is fetched once. The text normaliser is on: numbers, dates and money are read out, English words go as written. + +```bash +pip install gapiring +``` + +```python +from gapiring import Gapiring + +tts = Gapiring() +tts.save("hello.wav", "Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?", voice="f1", role="assistant", manner="warm") +tts.save("chapter.wav", open("chapter.txt").read(), voice="m1", role="narrator", manner="book") # any length + +for chunk in tts.stream("Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?", voice="m1", role="operator", manner="calm", pace="slow"): + play(chunk) # float32, 24 kHz mono, as it is made +``` + +### JavaScript + +Browser and Node, WebAssembly. The model is fetched once. + +```bash +npm install gapiring +``` + +```js +import { Gapiring } from "gapiring"; + +const tts = await Gapiring.load(); +for await (const chunk of tts.stream("Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?", { voice: "f1", role: "assistant", manner: "warm" })) { + play(chunk); // Float32Array, 24 kHz mono, as it is made +} +const news = await tts.speak(article, { voice: "m1", role: "narrator", manner: "news" }); // any length +``` + +### Android + +The model is inside the library (about 100 MB): no network, Android 7.0 and later. + +```kotlin +// settings.gradle.kts +dependencyResolutionManagement { + repositories { + google(); mavenCentral() + maven("https://huggingface.co/islomov/gapi-uz-gapiring-v2/resolve/main/android/maven") + } +} +// app/build.gradle.kts +dependencies { implementation("uz.gapi:gapiring:0.2.0") } +``` + +```kotlin +import uz.gapi.gapiring.Gapiring + +val tts = Gapiring.create(context) // off the main thread: unpacks the model on the first run +tts.play("Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?", voice = "f1", role = "assistant", manner = "warm") +tts.play(chapter, voice = "m1", role = "narrator", manner = "book") // any length +``` + +### iOS + +The model is inside the Swift package (about 150 MB in an app): no network. iOS 15.1 and later, macOS 14 and later on Apple silicon. + +```swift +// Xcode: File > Add Package Dependencies... and enter https://github.com/Islomov49/gapiring-ios +// or in Package.swift: +.package(url: "https://github.com/Islomov49/gapiring-ios.git", from: "0.2.0") +``` + +```swift +import Gapiring + +let tts = try Gapiring() // off the main thread +tts.play("Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?", voice: "f1", role: "assistant", manner: "warm") +tts.play(chapter, voice: "m1", role: "narrator", manner: "book") // any length +``` + +## From the files of this repository + +```bash +pip install numpy onnxruntime tokenizers soundfile +python runtime/pocket_onnx.py --bundle edge --suffix _int8 --voice f1 --role operator --manner calm --normalize literary \ + --text "Uchrashuv 25-noyabr soat 14:30 da, to'lov Payme orqali, narxi 1 250 000 so'm." --out hello.wav +``` + +```python +import sys; sys.path.insert(0, "runtime") +import numpy as np, soundfile as sf +from pocket_onnx import PocketONNX + +tts = PocketONNX("edge", suffix="_int8", normalize="literary") +chunks = tts.speak("Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?", voice="f1", role="assistant", manner="warm") +sf.write("hello.wav", np.concatenate(list(chunks)), 24000) # chunks arrive as they are made: play them as they come + +story = tts.speak(open("chapter.txt").read(), voice="m1", role="narrator", manner="book") # a text of any length +``` + +In the browser, with onnxruntime-web (`runtime/web/`): + +```js +import { PocketTTS } from "./pocket_tts.js"; +const tts = new PocketTTS(); +await tts.load("edge/"); // a folder or a URL that holds the graphs +await tts.say("Assalomu alaykum!", (audio) => play(audio), { voice: "f1", role: "operator", manner: "calm", pace: "slow" }); +``` + +## Roles and manners + +| `role` | `manner` | +| --- | --- | +| `operator` | `neutral` `warm` `cheerful` `empathetic` `calm` `dictation` `persuasive` `brisk` `serious` | +| `assistant` | `neutral` `warm` `cheerful` `empathetic` `calm` `dictation` `soothing` `serious` | +| `assistant_formal` | `neutral` `warm` `cheerful` `empathetic` `calm` `dictation` `soothing` `serious` | +| `narrator` | `book` `article` `news` `tale` | +| `emotional` | `angry` `upset` `irritated` `worried` `tired` `sceptical` `confused` `hurried` `joking` `grateful` `curious` `friendly` `calm` `elderly` | + +- `assistant` is a lively helper; `assistant_formal` is the same helper in an even, measured delivery: choose it for + announcements, voice menus, instructions, and wherever every take should sound the same. +- `emotional` is a person on the phone speaking with a feeling: angry, upset (sad), worried, tired, sceptical, and more; + it suits call-practice simulators, games and stories. +- `narrator` reads a text of any length; its manner is the genre, `book` when none is given. Every other role speaks + `neutral` when no manner is given. The default role is `assistant`. + +One optional mark at a time goes with the role and the manner: + +| Mark | With | +| --- | --- | +| `pace="slow"`, `pace="fast"` | `operator` with `neutral`, `warm`, `cheerful`, `calm`, `persuasive` | +| `pace="slow"`, `pace="fast"` | `assistant` with `neutral`, `warm`, `cheerful`, `calm` | +| `pace="slow"`, `pace="fast"` | `assistant_formal` with `neutral`, `warm`, `cheerful`, `calm` | +| `pace="slow"` | `narrator` with `article` | +| `pace="fast"` | `narrator` with `news` | +| `serious=True` | `narrator` with `article` or `news` (the other roles have the manner `serious`) | +| `hesitant=True` | `assistant` with any manner but `serious` | + +Sounds go inside the text: `[laugh]`, `[pause]`, `[breath]`, `[sigh]`. The model speaks one piece at a time: a sentence +or two for the dialogue roles, a short paragraph for the narrator. The Python runtime (`speak`), the pip package and +the libraries split a longer text into such pieces themselves, and read the apostrophe variants of o' and g' +(ʻ, ʼ, ‘, ’) as the plain one. + +## Text normalisation + +`normalize="literary"` (or `--normalize literary`) runs the text through the normaliser (`runtime/text_front.py`, +`runtime/frontend/`, Python standard library only): numbers, dates, times, money, percentages, ranges, units and phone +numbers become words; Cyrillic becomes Uzbek Latin; markdown, emoji and quotes are cleaned; the sound tags stay. +English words, brands and abbreviations pass through as they are written. `normalize="conversational"` also turns +written forms into the Tashkent spoken ones. Without `normalize` the text goes to the model as written. In the pip +package the normaliser is on by default (`literary`); `normalize=None` switches it off. The browser and mobile libraries +have no normaliser: give them text with numbers as words. + +| Written | Spoken (`literary`) | +| --- | --- | +| Narxi 1 250 000 so'm, QR kodni skaner qiling 😊 | Narxi bir million ikki yuz ellik ming so'm, QR kodni skaner qiling. | +| +998 90 123 45 67 raqamiga qo'ng'iroq qiling. | Plyus to'qqiz yuz to'qson sakkiz, to'qson, bir yuz yigirma uch, qirq besh, oltmish yetti raqamiga qo'ng'iroq qiling. | +| Uchrashuv 25.11.2026 soat 14:30 da | Uchrashuv yigirma beshinchi noyabr ikki ming yigirma oltinchi yil soat o'n to'rt o'ttizda. | +| Bugun 50% chegirma, yetkazib berish 3-5 kun, narxi $120 | Bugun ellik foiz chegirma, yetkazib berish uch-besh kun, narxi bir yuz yigirma dollar. | +| Hisobotni Power BI orqali tekshirdim, Wi-Fi parolini SMS qilib yubordim, 3 ta fayl. | Hisobotni Power BI orqali tekshirdim, Wi-Fi parolini SMS qilib yubordim, uchta fayl. | + +```python +import sys; sys.path.insert(0, "runtime") +from text_front import prepare +prepare("Narxi 1 250 000 so'm, Payme orqali to'lang, CRMga o'zi tushadi") +# "Narxi bir million ikki yuz ellik ming so'm, Payme orqali to'lang, CRMga o'zi tushadi." +``` + +## Model and files + +| | Edge v2 | +| --- | --- | +| Folder | `edge/` | +| Transformer layers | 6 | +| Parameters | 110M | +| Graphs | int8, 117 MB | +| For | CPU, browser, phone | + +`edge/` holds the four graphs (`text_conditioner`, `flow_lm_main`, `flow_lm_flow`, `mimi_decoder`), `bundle.json` +(state manifests and sampling constants), `tokenizer.json` and `voices/` (the two voices, `.npy` and raw float32 +`.bin`). `runtime/pocket_onnx.py`, `runtime/text_front.py` and `runtime/frontend/`: the generation loop and +the normaliser with numpy + onnxruntime + tokenizers, no PyTorch. `runtime/web/`: the same loop for onnxruntime-web, +with a tokenizer that matches the Python one id for id. `examples/`: the clips below. + +Synthesis runs on the device and sends nothing anywhere. Recent ONNX Runtime builds report usage to Microsoft by +default; the Python runtime and the Android library switch that off (`ORT_DISABLE_TELEMETRY=1`, set before ONNX Runtime +loads; a value you set yourself is left alone). The browser build of ONNX Runtime has no such reporting. + +## Performance + +CPU, onnxruntime 1.23, desktop Intel i5-13600KF, the examples below spoken piece by piece (45 pieces, +6.4 minutes of speech), one process per setting. Audio is 24 kHz mono, streamed: the first frame is decoded alone for +the first audio, then chunks of 240 ms. + +| Threads | First audio, median (max) | Speed | Peak memory | +| --- | --- | --- | --- | +| 1 | 70 ms (195) | 2.6x real time | 301 MB | +| 2 | 54 ms (107) | 3.6x real time | 300 MB | +| 4 | 38 ms (89) | 4.7x real time | 302 MB | + +Not measured yet: phones, ARM CPUs and the browser. + +## Quality + +Character error rate of an Uzbek speech recogniser on the generated audio (lower is clearer), Edge v2 int8 on the CPU, +450 test lines in both voices, text given as written: + +| Lines | Edge v2 | +| --- | --- | +| Operator, assistant and emotional lines of the kinds v1 speaks (150) | 3.36 % | +| Narrator passages (51) | 0.68 % | +| Lines with English words, brands and abbreviations (145) | 1.25 % | +| Serious manner and pace (49) | 0.38 % | +| Lines that open with an uncommon first word (55) | 0.39 % | + +The recogniser is an Uzbek one, so on lines with English words part of the count may be its own. + +## Examples + +Each is the clearest of three takes of Edge v2 int8 (`examples/`, texts and settings in `examples/examples.jsonl`). +First what is new: the narrator in its four genres, English words as written, the serious manner, one line at three +paces, one greeting by the lively assistant, the same assistant with hesitations, and the formal assistant. Then the +examples of v1: lines a voice agent would say and callers in the emotional mode. + +| Voice | Role | Manner | Mark | Text | Edge v2 | +| --- | --- | --- | --- | --- | --- | +| f1 | narrator | book | | Kuzning salqin oqshomida hovlidagi keksa o'rik daraxti ostiga sarg'aygan yaproqlar unsiz to'kilardi. Dilshod ayvon ustuniga suyangan ko'yi uzoqlarga termularkan, ko'ksida anchadan beri tinchlik bermayotgan ajib bir sog'inch uyg'ondi. Shu payt ichkaridan onasining mayin qadam tovushlari eshitildi va u o'g'lining yelkasiga iliq ro'mol tashlab qo'ydi. "Havo sovib qoldi, bolam, uyga kira qol," dedi onasi past ovozda. Bu oddiy so'zlardan yigitning ko'ngli yorishib, atrofdagi kuzgi g'amginlik bir zumda tarqab ketgandek bo'ldi. | | +| m1 | narrator | article | | Inson xotirasi shunchaki o'tmishdagi voqealarni saqlaydigan ombor emas, balki muntazam yangilanib turadigan murakkab va tirik tizimdir. Biz tunda chuqur uyquga ketganimizda, miyamiz kunduzi olingan son-sanoqsiz ma'lumotlarni saralab, eng muhimlarini uzoq muddatli xotiraga ko'chiradi. Agar odam yetti yoki sakkiz soat to'yib uxlamasa, bu tabiiy jarayon izdan chiqib, diqqatni jamlash qiyinlashadi. Shuning uchun ham yangi bilimlarni mustahkamlashda sokin va sifatli dam olish xuddi mutolaa qilish kabi katta ahamiyatga ega. | | +| m1 | narrator | news | | Bugun erta tongda Ko'ksoy vodiysining tog'oldi hududlarida joylashgan ikkita qishloqni bog'lovchi yangi ko'prik foydalanishga topshirildi. Uzunligi sakson besh metr bo'lgan ushbu mustahkam inshoot bahorgi sel paytida qatnov uzilib qolishi muammosiga butunlay chek qo'yadi. Qurilish ishlari olti oy davom etib, unda mahalliy ustalar va muhandislar faol ishtirok etishdi. Kelasi haftadan boshlab mazkur yo'nalish bo'ylab kuniga o'n ikkita jamoat transporti qatnovi yo'lga qo'yilishi rejalashtirilgan. Hozirda yo'l chetlariga tungi yoritish chiroqlarini o'rnatish ishlari yakunlanmoqda. | | +| f1 | narrator | tale | | Bir bor ekan, bir yo'q ekan, qadim zamonda keng o'rmon chekkasida mittigina oq quyoncha yashagan ekan. U har kuni tong saharda uyg'onib, maysalar ustidagi shudring tomchilarini tomosha qilishni juda yaxshi ko'rar ekan. Kunlarning birida quyoncha eski chinor kovagidan taralayotgan oltindek mayin yog'duni ko'rib, hayratdan qotib qolibdi. Sekingina yaqinlashib qarasa, kovak ichida qanotlari kumushdek tovlanadigan jajji bir kapalak shirin qo'shiq kuylab o'tirgan ekan. Quyoncha bunday mo'jizani birinchi marta ko'rgani uchun quvonchdan quloqlarini dikkaytirib, sehrli ohangga mahliyo bo'libdi. | | +| m1 | operator | brisk | | Assalomu alaykum, siz Namuna qo'llab-quvvatlash markaziga bog'landingiz. Sizning CRM profilingizda Apple Pay hamda PayPal orqali o'tkazilgan uchta to'lov muvaffaqiyatli tasdiqlangan. | | +| f1 | assistant | warm | | Safaringiz oldidan telefoningizda eSIM sozlamalarini yoqib qo'ydim. Aeroportda online check-in qilish va begona yozuvlarni Google Lens orqali o'qish juda qulay. | | +| m1 | assistant_formal | neutral | | IELTS imtihoniga tayyorlanish bo'yicha barcha vazifalarni ertangi deadline tugaguncha topshirishingiz so'raladi. O'qituvchilar har bir tinglovchiga batafsil feedback yozib qoldiradilar. | | +| m1 | operator | brisk | | To'lovni Payme yoki Click orqali online o'tkazsangiz, CRM tizimida ko'rinadi, keyin Telegram guruhda feedback qoldirarsiz. | | +| m1 | operator | serious | | Hurmatli mijoz, Namuna xavfsizlik qoidalariga binoan maxfiy tasdiqlash kodini hech kimga aytmang. Shartnoma bo'yicha to'lov muddati ikki kundan keyin yakunlanadi. | | +| f1 | assistant_formal | serious | | Diqqat, bugun havo harorati qirq darajagacha ko'tarilishi kutilmoqda. Quyosh tig'ida uzoq yurmaslikni va kun davomida ko'proq toza suv ichishni unutmang. | | +| f1 | operator | neutral | | Buyurtmangiz Namuna omboridan yo'lga chiqdi va ikki soat ichida manzilingizga yetkaziladi. Kuryer yetib borishidan o'n besh daqiqa oldin qo'ng'iroq qiladi. | | +| f1 | operator | neutral | pace slow | Buyurtmangiz Namuna omboridan yo'lga chiqdi va ikki soat ichida manzilingizga yetkaziladi. Kuryer yetib borishidan o'n besh daqiqa oldin qo'ng'iroq qiladi. | | +| f1 | operator | neutral | pace fast | Buyurtmangiz Namuna omboridan yo'lga chiqdi va ikki soat ichida manzilingizga yetkaziladi. Kuryer yetib borishidan o'n besh daqiqa oldin qo'ng'iroq qiladi. | | +| f1 | assistant | warm | | Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman? | | +| f1 | assistant | warm | hesitant | Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman? | | +| f1 | assistant_formal | warm | | Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman? | | +| m1 | assistant | cheerful | | Ajoyib yangilik, buyurtmangiz bugun kechgacha yetib boradi [laugh], kuryerimiz allaqachon yo'lga chiqqan! | | +| f1 | assistant | soothing | | Hech xavotir olmang, kartangizdan yechilgan pul yo'qolmaydi, hoziroq tekshirib muammoni hal qilib beramiz. | | +| m1 | operator | persuasive | | Bugun obunani rasmiylashtirsangiz, birinchi oy uchun to'liq ellik foiz chegirma beriladi, imkoniyatni qo'ldan boy bermang. | | +| f1 | operator | dictation | | Tasdiqlash kodini yozib oling: to'rt, yetti, ikki, to'qqiz, nol, besh. Tayyor bo'lsangiz, davom etamiz. | | +| f1 | operator | empathetic | | Yetkazib berish kechikkani uchun chin dildan uzr so'rayman [pause], hozir ombor bilan bog'lanib, aniq vaqtini aytaman. | | +| m1 | emotional | angry | | Nimaga kartamdan pulni ikki marta yechib oldinglar? Yarim soatdan beri telefon qilaman, hech kim ko'tarmaydi-ku! | | +| f1 | emotional | upset | | Oyimning tug'ilgan kuniga sovg'a buyurtma qilgandim, [sigh] vaqtida olib kelmadinglar, rosa xafa bo'ldim to'g'risi. | | +| m1 | emotional | irritated | | Kuryeringiz ikki soatdan beri yetib kelmayapti, [sigh] issiq ovqatim muzlab qoldi-ku, buyurtmani hoziroq bekor qilinglar! | | +| f1 | emotional | worried | | Kartamdan hozirgina uch million so'm o'z-o'zidan yechilib ketdi, [breath] iltimos, uni tezroq bloklab qo'yinglar, juda qo'rqib ketyapman! | | +| f1 | emotional | sceptical | | Namuna do'konidagi bu kir yuvish mashinasi rostdan ham sifatlimi, [pause] yoki ikki haftada buzilib qoladigan arzon molmi? | | +| m1 | emotional | joking | | To'yxonangizga uch yuzta mehmon sig'adi degandingiz, [laugh] bu kichkina zalda qudalar bir-birining tizzasida o'tirib osh yeydimi endi? | | +| f1 | emotional | grateful | | Kechasi o'g'limning isitmasi chiqqanda shifokoringiz tez yetib kelib yordam berdi, klinika jamoasiga ming rahmat, baraka topinglar! | | +| m1 | emotional | elderly | | Bolam, ko'zim xiraroq ko'radi, [pause] shu elektr hisoblagichning raqamlarini senga sekin o'qib bersam, o'zing to'lovini yozib qo'yasanmi? | | + +## Limits and licence + +Two voices; Uzbek in Latin script (the normaliser converts Cyrillic). A piece longer than about 30 seconds of speech is +cut short, so use `speak` or the libraries, which split the text, rather than feeding a long text to the model in one +piece. Built on Kyutai Pocket TTS (CC-BY-4.0). + +Open source, free for any use, commercial use included. The code is under the MIT licence; the model files, voices and dictionary are under CC BY 4.0 (credit: Gapiring by Gapi, an adaptation of Kyutai Pocket TTS). Full text: `LICENSE`. diff --git a/edge/bundle.json b/edge/bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..a39db6e434f613ad4961888a0f82871031bb89de --- /dev/null +++ b/edge/bundle.json @@ -0,0 +1,633 @@ +{ + "schema": "gapiring-v2", + "sample_rate": 24000, + "frame_rate": 12.5, + "samples_per_frame": 1920, + "latent_dim": 32, + "conditioning_dim": 1024, + "temperature": 0.3, + "lsd_steps": 1, + "eos_threshold": -4.0, + "min_frames_before_eos": 6, + "tokens_per_second_estimate": 3.0, + "gen_seconds_padding": 2.0, + "fade_in_samples": 120, + "tags": "role + manner symbols, then an optional pace / serious / hesitant symbol, glued before the text", + "flow_lm_state_manifest": [ + { + "index": 0, + "input_name": "state_0", + "output_name": "out_state_0", + "module": "transformer.layers.0.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 1, + "input_name": "state_1", + "output_name": "out_state_1", + "module": "transformer.layers.0.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 2, + "input_name": "state_2", + "output_name": "out_state_2", + "module": "transformer.layers.0.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + }, + { + "index": 3, + "input_name": "state_3", + "output_name": "out_state_3", + "module": "transformer.layers.1.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 4, + "input_name": "state_4", + "output_name": "out_state_4", + "module": "transformer.layers.1.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 5, + "input_name": "state_5", + "output_name": "out_state_5", + "module": "transformer.layers.1.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + }, + { + "index": 6, + "input_name": "state_6", + "output_name": "out_state_6", + "module": "transformer.layers.2.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 7, + "input_name": "state_7", + "output_name": "out_state_7", + "module": "transformer.layers.2.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 8, + "input_name": "state_8", + "output_name": "out_state_8", + "module": "transformer.layers.2.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + }, + { + "index": 9, + "input_name": "state_9", + "output_name": "out_state_9", + "module": "transformer.layers.3.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 10, + "input_name": "state_10", + "output_name": "out_state_10", + "module": "transformer.layers.3.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 11, + "input_name": "state_11", + "output_name": "out_state_11", + "module": "transformer.layers.3.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + }, + { + "index": 12, + "input_name": "state_12", + "output_name": "out_state_12", + "module": "transformer.layers.4.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 13, + "input_name": "state_13", + "output_name": "out_state_13", + "module": "transformer.layers.4.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 14, + "input_name": "state_14", + "output_name": "out_state_14", + "module": "transformer.layers.4.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + }, + { + "index": 15, + "input_name": "state_15", + "output_name": "out_state_15", + "module": "transformer.layers.5.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 16, + "input_name": "state_16", + "output_name": "out_state_16", + "module": "transformer.layers.5.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 16, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 17, + "input_name": "state_17", + "output_name": "out_state_17", + "module": "transformer.layers.5.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + } + ], + "mimi_state_manifest": [ + { + "index": 0, + "input_name": "state_0", + "output_name": "out_state_0", + "module": "decoder.model.0", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 512, + 6 + ], + "fill": "zeros" + }, + { + "index": 1, + "input_name": "state_1", + "output_name": "out_state_1", + "module": "decoder.model.0", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 2, + "input_name": "state_2", + "output_name": "out_state_2", + "module": "decoder.model.2", + "key": "partial", + "dtype": "float32", + "shape": [ + 1, + 256, + 6 + ], + "fill": "zeros" + }, + { + "index": 3, + "input_name": "state_3", + "output_name": "out_state_3", + "module": "decoder.model.3.block.1", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 256, + 2 + ], + "fill": "zeros" + }, + { + "index": 4, + "input_name": "state_4", + "output_name": "out_state_4", + "module": "decoder.model.3.block.1", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 5, + "input_name": "state_5", + "output_name": "out_state_5", + "module": "decoder.model.3.block.3", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 128, + 0 + ], + "fill": "zeros" + }, + { + "index": 6, + "input_name": "state_6", + "output_name": "out_state_6", + "module": "decoder.model.3.block.3", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 7, + "input_name": "state_7", + "output_name": "out_state_7", + "module": "decoder.model.5", + "key": "partial", + "dtype": "float32", + "shape": [ + 1, + 128, + 5 + ], + "fill": "zeros" + }, + { + "index": 8, + "input_name": "state_8", + "output_name": "out_state_8", + "module": "decoder.model.6.block.1", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 128, + 2 + ], + "fill": "zeros" + }, + { + "index": 9, + "input_name": "state_9", + "output_name": "out_state_9", + "module": "decoder.model.6.block.1", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 10, + "input_name": "state_10", + "output_name": "out_state_10", + "module": "decoder.model.6.block.3", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 64, + 0 + ], + "fill": "zeros" + }, + { + "index": 11, + "input_name": "state_11", + "output_name": "out_state_11", + "module": "decoder.model.6.block.3", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 12, + "input_name": "state_12", + "output_name": "out_state_12", + "module": "decoder.model.8", + "key": "partial", + "dtype": "float32", + "shape": [ + 1, + 64, + 4 + ], + "fill": "zeros" + }, + { + "index": 13, + "input_name": "state_13", + "output_name": "out_state_13", + "module": "decoder.model.9.block.1", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 64, + 2 + ], + "fill": "zeros" + }, + { + "index": 14, + "input_name": "state_14", + "output_name": "out_state_14", + "module": "decoder.model.9.block.1", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 15, + "input_name": "state_15", + "output_name": "out_state_15", + "module": "decoder.model.9.block.3", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 32, + 0 + ], + "fill": "zeros" + }, + { + "index": 16, + "input_name": "state_16", + "output_name": "out_state_16", + "module": "decoder.model.9.block.3", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 17, + "input_name": "state_17", + "output_name": "out_state_17", + "module": "decoder.model.11", + "key": "previous", + "dtype": "float32", + "shape": [ + 1, + 64, + 2 + ], + "fill": "zeros" + }, + { + "index": 18, + "input_name": "state_18", + "output_name": "out_state_18", + "module": "decoder.model.11", + "key": "first", + "dtype": "bool", + "shape": [ + 1 + ], + "fill": "ones" + }, + { + "index": 19, + "input_name": "state_19", + "output_name": "out_state_19", + "module": "decoder_transformer.transformer.layers.0.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 8, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 20, + "input_name": "state_20", + "output_name": "out_state_20", + "module": "decoder_transformer.transformer.layers.0.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 8, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 21, + "input_name": "state_21", + "output_name": "out_state_21", + "module": "decoder_transformer.transformer.layers.0.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + }, + { + "index": 22, + "input_name": "state_22", + "output_name": "out_state_22", + "module": "decoder_transformer.transformer.layers.1.self_attn", + "key": "k", + "dtype": "float32", + "shape": [ + 1, + 8, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 23, + "input_name": "state_23", + "output_name": "out_state_23", + "module": "decoder_transformer.transformer.layers.1.self_attn", + "key": "v", + "dtype": "float32", + "shape": [ + 1, + 8, + 0, + 64 + ], + "fill": "empty" + }, + { + "index": 24, + "input_name": "state_24", + "output_name": "out_state_24", + "module": "decoder_transformer.transformer.layers.1.self_attn", + "key": "pos", + "dtype": "int64", + "shape": [ + 1 + ], + "fill": "zeros" + }, + { + "index": 25, + "input_name": "state_25", + "output_name": "out_state_25", + "module": "upsample.convtr", + "key": "partial", + "dtype": "float32", + "shape": [ + 1, + 512, + 16 + ], + "fill": "zeros" + } + ], + "model": "Gapiring Edge v2", + "voice_shapes": { + "f1": [ + 1, + 65, + 1024 + ], + "m1": [ + 1, + 65, + 1024 + ] + } +} diff --git a/edge/flow_lm_flow_int8.onnx b/edge/flow_lm_flow_int8.onnx new file mode 100644 index 0000000000000000000000000000000000000000..78662ce4d42d0b49fc0fe45ca4e214b580579404 --- /dev/null +++ b/edge/flow_lm_flow_int8.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7baffd61cf0e6e75995756526749e09c1a751aa6b254ca031c5c677408cc4703 +size 10048804 diff --git a/edge/flow_lm_main_int8.onnx b/edge/flow_lm_main_int8.onnx new file mode 100644 index 0000000000000000000000000000000000000000..fb348fdebc53b076131ff6ff526316b12ec3d0fe --- /dev/null +++ b/edge/flow_lm_main_int8.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5af4e0e4a4126b449179737209a38140ce2fb15d2810d98f90162c439dc0d75 +size 76290641 diff --git a/edge/mimi_decoder_int8.onnx b/edge/mimi_decoder_int8.onnx new file mode 100644 index 0000000000000000000000000000000000000000..c66c51a13c0db3376a1966955266b00042c0e498 --- /dev/null +++ b/edge/mimi_decoder_int8.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7008df92f364372980819258bae820427ffb7ec6cf8c5b5f61e7be69e76a2af6 +size 22599552 diff --git a/edge/text_conditioner_int8.onnx b/edge/text_conditioner_int8.onnx new file mode 100644 index 0000000000000000000000000000000000000000..801931e8cc8d0c6cb08a75fc964e9b143252fb6c --- /dev/null +++ b/edge/text_conditioner_int8.onnx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e2b36275200e0ec547dd45638b08b01faad01aa8f2d0ec52214f51a76d0eda1 +size 8274203 diff --git a/edge/tokenizer.json b/edge/tokenizer.json new file mode 100644 index 0000000000000000000000000000000000000000..13004594ef456348e2f8c2f10b11fb85fea7823e --- /dev/null +++ b/edge/tokenizer.json @@ -0,0 +1 @@ +{"version": "1.0", "truncation": null, "padding": null, "added_tokens": [{"id": 0, "content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true}, {"id": 1, "content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true}, {"id": 2, "content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true}, {"id": 3, "content": "", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true}, {"id": 4000, "content": "①", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4001, "content": "②", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4002, "content": "③", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4003, "content": "④", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4004, "content": "⑤", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4005, "content": "⑥", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4006, "content": "⑦", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4007, "content": "⑧", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4008, "content": "⑨", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4009, "content": "⑩", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4010, "content": "⑪", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4011, "content": "⑫", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4012, "content": "⑬", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4013, "content": "⑭", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4014, "content": "⑮", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4015, "content": "⑯", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4016, "content": "⑰", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4017, "content": "⑱", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4018, "content": "⑲", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4019, "content": "⑳", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4020, "content": "⑴", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4021, "content": "⑵", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4022, "content": "⑶", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4023, "content": "⑷", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4024, "content": "⑸", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4025, "content": "⑹", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4026, "content": "§", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4027, "content": "¦", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4028, "content": "¶", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4029, "content": "¤", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4030, "content": "⑺", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4031, "content": "⑻", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4032, "content": "⑼", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4033, "content": "⑽", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4034, "content": "⑾", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4035, "content": "⑿", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4036, "content": "⒀", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4037, "content": "⒁", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}, {"id": 4038, "content": "⒂", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": false}], "normalizer": {"type": "Sequence", "normalizers": [{"type": "Prepend", "prepend": "▁"}]}, "pre_tokenizer": {"type": "Metaspace", "replacement": "▁", "prepend_scheme": "always", "split": true}, "post_processor": null, "decoder": {"type": "Sequence", "decoders": [{"type": "Metaspace", "replacement": "▁", "prepend_scheme": "always", "split": true}, {"type": "ByteFallback"}, {"type": "Fuse"}]}, "model": {"type": "Unigram", "unk_id": 0, "vocab": [["", 0.0], ["", 0.0], ["", 0.0], ["", 0.0], ["<0x00>", 0.0], ["<0x01>", 0.0], ["<0x02>", 0.0], ["<0x03>", 0.0], ["<0x04>", 0.0], ["<0x05>", 0.0], ["<0x06>", 0.0], ["<0x07>", 0.0], ["<0x08>", 0.0], ["<0x09>", 0.0], ["<0x0A>", 0.0], ["<0x0B>", 0.0], ["<0x0C>", 0.0], ["<0x0D>", 0.0], ["<0x0E>", 0.0], ["<0x0F>", 0.0], ["<0x10>", 0.0], ["<0x11>", 0.0], ["<0x12>", 0.0], ["<0x13>", 0.0], ["<0x14>", 0.0], ["<0x15>", 0.0], ["<0x16>", 0.0], ["<0x17>", 0.0], ["<0x18>", 0.0], ["<0x19>", 0.0], ["<0x1A>", 0.0], ["<0x1B>", 0.0], ["<0x1C>", 0.0], ["<0x1D>", 0.0], ["<0x1E>", 0.0], ["<0x1F>", 0.0], ["<0x20>", 0.0], ["<0x21>", 0.0], ["<0x22>", 0.0], ["<0x23>", 0.0], ["<0x24>", 0.0], ["<0x25>", 0.0], ["<0x26>", 0.0], ["<0x27>", 0.0], ["<0x28>", 0.0], ["<0x29>", 0.0], ["<0x2A>", 0.0], ["<0x2B>", 0.0], ["<0x2C>", 0.0], ["<0x2D>", 0.0], ["<0x2E>", 0.0], ["<0x2F>", 0.0], ["<0x30>", 0.0], ["<0x31>", 0.0], ["<0x32>", 0.0], ["<0x33>", 0.0], ["<0x34>", 0.0], ["<0x35>", 0.0], ["<0x36>", 0.0], ["<0x37>", 0.0], ["<0x38>", 0.0], ["<0x39>", 0.0], ["<0x3A>", 0.0], ["<0x3B>", 0.0], ["<0x3C>", 0.0], ["<0x3D>", 0.0], ["<0x3E>", 0.0], ["<0x3F>", 0.0], ["<0x40>", 0.0], ["<0x41>", 0.0], ["<0x42>", 0.0], ["<0x43>", 0.0], ["<0x44>", 0.0], ["<0x45>", 0.0], ["<0x46>", 0.0], ["<0x47>", 0.0], ["<0x48>", 0.0], ["<0x49>", 0.0], ["<0x4A>", 0.0], ["<0x4B>", 0.0], ["<0x4C>", 0.0], ["<0x4D>", 0.0], ["<0x4E>", 0.0], ["<0x4F>", 0.0], ["<0x50>", 0.0], ["<0x51>", 0.0], ["<0x52>", 0.0], ["<0x53>", 0.0], ["<0x54>", 0.0], ["<0x55>", 0.0], ["<0x56>", 0.0], ["<0x57>", 0.0], ["<0x58>", 0.0], ["<0x59>", 0.0], ["<0x5A>", 0.0], ["<0x5B>", 0.0], ["<0x5C>", 0.0], ["<0x5D>", 0.0], ["<0x5E>", 0.0], ["<0x5F>", 0.0], ["<0x60>", 0.0], ["<0x61>", 0.0], ["<0x62>", 0.0], ["<0x63>", 0.0], ["<0x64>", 0.0], ["<0x65>", 0.0], ["<0x66>", 0.0], ["<0x67>", 0.0], ["<0x68>", 0.0], ["<0x69>", 0.0], ["<0x6A>", 0.0], ["<0x6B>", 0.0], ["<0x6C>", 0.0], ["<0x6D>", 0.0], ["<0x6E>", 0.0], ["<0x6F>", 0.0], ["<0x70>", 0.0], ["<0x71>", 0.0], ["<0x72>", 0.0], ["<0x73>", 0.0], ["<0x74>", 0.0], ["<0x75>", 0.0], ["<0x76>", 0.0], ["<0x77>", 0.0], ["<0x78>", 0.0], ["<0x79>", 0.0], ["<0x7A>", 0.0], ["<0x7B>", 0.0], ["<0x7C>", 0.0], ["<0x7D>", 0.0], ["<0x7E>", 0.0], ["<0x7F>", 0.0], ["<0x80>", 0.0], ["<0x81>", 0.0], ["<0x82>", 0.0], ["<0x83>", 0.0], ["<0x84>", 0.0], ["<0x85>", 0.0], ["<0x86>", 0.0], ["<0x87>", 0.0], ["<0x88>", 0.0], ["<0x89>", 0.0], ["<0x8A>", 0.0], ["<0x8B>", 0.0], ["<0x8C>", 0.0], ["<0x8D>", 0.0], ["<0x8E>", 0.0], ["<0x8F>", 0.0], ["<0x90>", 0.0], ["<0x91>", 0.0], ["<0x92>", 0.0], ["<0x93>", 0.0], ["<0x94>", 0.0], ["<0x95>", 0.0], ["<0x96>", 0.0], ["<0x97>", 0.0], ["<0x98>", 0.0], ["<0x99>", 0.0], ["<0x9A>", 0.0], ["<0x9B>", 0.0], ["<0x9C>", 0.0], ["<0x9D>", 0.0], ["<0x9E>", 0.0], ["<0x9F>", 0.0], ["<0xA0>", 0.0], ["<0xA1>", 0.0], ["<0xA2>", 0.0], ["<0xA3>", 0.0], ["<0xA4>", 0.0], ["<0xA5>", 0.0], ["<0xA6>", 0.0], ["<0xA7>", 0.0], ["<0xA8>", 0.0], ["<0xA9>", 0.0], ["<0xAA>", 0.0], ["<0xAB>", 0.0], ["<0xAC>", 0.0], ["<0xAD>", 0.0], ["<0xAE>", 0.0], ["<0xAF>", 0.0], ["<0xB0>", 0.0], ["<0xB1>", 0.0], ["<0xB2>", 0.0], ["<0xB3>", 0.0], ["<0xB4>", 0.0], ["<0xB5>", 0.0], ["<0xB6>", 0.0], ["<0xB7>", 0.0], ["<0xB8>", 0.0], ["<0xB9>", 0.0], ["<0xBA>", 0.0], ["<0xBB>", 0.0], ["<0xBC>", 0.0], ["<0xBD>", 0.0], ["<0xBE>", 0.0], ["<0xBF>", 0.0], ["<0xC0>", 0.0], ["<0xC1>", 0.0], ["<0xC2>", 0.0], ["<0xC3>", 0.0], ["<0xC4>", 0.0], ["<0xC5>", 0.0], ["<0xC6>", 0.0], ["<0xC7>", 0.0], ["<0xC8>", 0.0], ["<0xC9>", 0.0], ["<0xCA>", 0.0], ["<0xCB>", 0.0], ["<0xCC>", 0.0], ["<0xCD>", 0.0], ["<0xCE>", 0.0], ["<0xCF>", 0.0], ["<0xD0>", 0.0], ["<0xD1>", 0.0], ["<0xD2>", 0.0], ["<0xD3>", 0.0], ["<0xD4>", 0.0], ["<0xD5>", 0.0], ["<0xD6>", 0.0], ["<0xD7>", 0.0], ["<0xD8>", 0.0], ["<0xD9>", 0.0], ["<0xDA>", 0.0], ["<0xDB>", 0.0], ["<0xDC>", 0.0], ["<0xDD>", 0.0], ["<0xDE>", 0.0], ["<0xDF>", 0.0], ["<0xE0>", 0.0], ["<0xE1>", 0.0], ["<0xE2>", 0.0], ["<0xE3>", 0.0], ["<0xE4>", 0.0], ["<0xE5>", 0.0], ["<0xE6>", 0.0], ["<0xE7>", 0.0], ["<0xE8>", 0.0], ["<0xE9>", 0.0], ["<0xEA>", 0.0], ["<0xEB>", 0.0], ["<0xEC>", 0.0], ["<0xED>", 0.0], ["<0xEE>", 0.0], ["<0xEF>", 0.0], ["<0xF0>", 0.0], ["<0xF1>", 0.0], ["<0xF2>", 0.0], ["<0xF3>", 0.0], ["<0xF4>", 0.0], ["<0xF5>", 0.0], ["<0xF6>", 0.0], ["<0xF7>", 0.0], ["<0xF8>", 0.0], ["<0xF9>", 0.0], ["<0xFA>", 0.0], ["<0xFB>", 0.0], ["<0xFC>", 0.0], ["<0xFD>", 0.0], ["<0xFE>", 0.0], ["<0xFF>", 0.0], ["'", -2.7323977947235107], ["▁", -2.8669400215148926], [",", -3.133495330810547], [".", -3.224975347518921], ["▁o", -3.997365951538086], ["da", -4.327268123626709], ["lar", -4.400660037994385], ["▁bo", -4.415164470672607], ["ni", -4.4196672439575195], ["ga", -4.6240949630737305], ["i", -4.658196926116943], ["-", -4.903213024139404], ["ning", -4.916832447052002], ["▁ko", -4.93813419342041], ["dan", -5.016002655029297], ["▁ham", -5.024625778198242], ["▁bir", -5.171029567718506], ["▁qo", -5.177377223968506], ["g", -5.2389702796936035], ["▁va", -5.257193565368652], ["▁bu", -5.347349166870117], ["r", -5.49343729019165], ["l", -5.503028392791748], ["▁shu", -5.51278829574585], ["gan", -5.521430015563965], ["lari", -5.52210807800293], ["▁bilan", -5.554632663726807], ["di", -5.592676639556885], ["sha", -5.60913610458374], ["y", -5.685027122497559], ["z", -5.696719169616699], ["a", -5.7324347496032715], ["q", -5.7491960525512695], ["si", -5.7492289543151855], ["▁yo", -5.7540154457092285], ["?", -5.773473739624023], ["li", -5.778785705566406], ["▁ta", -5.78325891494751], ["p", -5.797604084014893], ["lgan", -5.862367630004883], ["▁ma", -5.862703323364258], ["▁to", -5.864395618438721], ["▁bor", -5.884864807128906], ["▁O", -5.892148971557617], ["▁so", -5.945738792419434], ["larni", -5.946896553039551], ["ini", -5.983753681182861], ["▁uchun", -5.986268997192383], ["▁u", -6.005650520324707], ["lik", -6.016798496246338], ["ida", -6.03496789932251], ["ib", -6.0609588623046875], ["m", -6.114658832550049], ["ladi", -6.129303932189941], ["an", -6.140128135681152], ["t", -6.14215612411499], ["ish", -6.149421215057373], ["ri", -6.1847615242004395], ["cha", -6.193864822387695], ["iy", -6.201098918914795], ["dir", -6.222452163696289], ["ra", -6.230104446411133], ["chi", -6.230705261230469], ["▁edi", -6.234102725982666], ["zi", -6.239597797393799], ["s", -6.248468399047852], ["▁deb", -6.248602867126465], ["▁qil", -6.2648468017578125], ["▁nima", -6.265377521514893], ["▁Bu", -6.278450965881348], ["sh", -6.291493892669678], ["k", -6.296158790588379], ["ki", -6.306214332580566], ["n", -6.310656547546387], ["iga", -6.362475395202637], ["la", -6.363676071166992], ["dagi", -6.367805004119873], ["▁kerak", -6.374265670776367], ["u", -6.3901896476745605], ["lib", -6.397818088531494], ["ng", -6.400407791137695], ["mi", -6.406679630279541], ["▁bosh", -6.424987316131592], ["lab", -6.432740688323975], ["▁men", -6.433444499969482], ["▁a", -6.455691337585449], ["lash", -6.460452079772949], ["▁narsa", -6.468055248260498], ["▁mana", -6.47041654586792], ["▁kel", -6.4736199378967285], ["ma", -6.546358585357666], ["d", -6.548618316650391], ["im", -6.557463645935059], ["▁U", -6.56573486328125], ["larga", -6.570513725280762], ["man", -6.57484769821167], ["▁har", -6.589386463165283], ["adi", -6.5992889404296875], ["gi", -6.610684871673584], ["idan", -6.613081932067871], ["yotgan", -6.613617420196533], ["▁keyin", -6.622091293334961], ["▁degan", -6.639590740203857], ["▁ekan", -6.645402431488037], ["▁odam", -6.648295879364014], ["larini", -6.649954319000244], ["boshqa", -6.654019355773926], ["imiz", -6.656269550323486], ["▁Shu", -6.667167663574219], ["▁biz", -6.68155574798584], ["▁juda", -6.6909403800964355], ["b", -6.701699733734131], ["on", -6.709092140197754], ["at", -6.719600677490234], ["▁olib", -6.720917224884033], ["ldi", -6.744056701660156], ["▁ya", -6.748891353607178], ["lsa", -6.752090930938721], ["▁A", -6.7529683113098145], ["▁e", -6.753593444824219], ["sa", -6.754120826721191], ["ta", -6.755966663360596], ["ligi", -6.761388778686523], ["▁ber", -6.778616905212402], ["▁qilib", -6.780274391174316], ["▁ular", -6.786530494689941], ["miz", -6.793966293334961], ["▁mu", -6.794909954071045], ["▁ish", -6.800572872161865], ["▁ayt", -6.818212509155273], ["▁dedi", -6.821746349334717], ["yapti", -6.84027099609375], ["▁emas", -6.849884986877441], ["siz", -6.8746113777160645], ["h", -6.884588718414307], ["ishi", -6.890094757080078], ["larda", -6.906916618347168], ["yaxshi", -6.921280860900879], ["▁yoki", -6.934422492980957], ["ka", -6.936465740203857], ["▁bil", -6.936811923980713], ["▁Men", -6.972296714782715], ["adigan", -6.974144458770752], ["iyat", -6.991352558135986], ["ingiz", -7.004022598266602], ["rgan", -7.013132095336914], ["mumkin", -7.020989894866943], ["▁katta", -7.026953220367432], ["f", -7.029232501983643], ["nday", -7.036602973937988], ["o", -7.0436625480651855], ["dim", -7.044220924377441], ["▁hamma", -7.046987056732178], ["iston", -7.047272682189941], ["▁gap", -7.050405025482178], ["▁ket", -7.0568766593933105], ["st", -7.060047149658203], ["▁tur", -7.061405181884766], ["▁masal", -7.0679097175598145], ["▁endi", -7.068681716918945], ["naqa", -7.072696685791016], ["inchi", -7.07309627532959], ["na", -7.081980228424072], ["rib", -7.085086345672607], ["▁yana", -7.093780994415283], ["▁uni", -7.102044582366943], ["▁hozir", -7.10298490524292], ["sini", -7.11558723449707], ["zbek", -7.125687122344971], ["v", -7.136073589324951], ["▁g", -7.1381731033325195], ["▁chiq", -7.140445232391357], ["lardan", -7.162801265716553], ["▁yerda", -7.164705753326416], ["lishi", -7.165342807769775], ["roq", -7.166414260864258], ["▁deydi", -7.170090675354004], ["ch", -7.174028396606445], ["iya", -7.17988395690918], ["rish", -7.183740139007568], ["ing", -7.188442230224609], ["▁Endi", -7.201695442199707], ["maydi", -7.208892822265625], ["▁uning", -7.211814403533936], ["▁tomon", -7.212769508361816], ["langan", -7.215725421905518], ["▁Lekin", -7.218997478485107], ["▁To", -7.219228267669678], ["ar", -7.243460178375244], ["ishga", -7.245378494262695], ["in", -7.250951290130615], ["▁siz", -7.263978958129883], ["▁lekin", -7.273680210113525], ["x", -7.276844024658203], ["▁Ya", -7.279284954071045], ["zini", -7.289243698120117], ["yu", -7.2997589111328125], ["ligini", -7.300027847290039], ["▁qara", -7.306131362915039], ["▁ikki", -7.306156158447266], ["▁hech", -7.308846950531006], ["▁b", -7.312729835510254], ["davlat", -7.3136305809021], ["ku", -7.321961879730225], ["ya", -7.32201623916626], ["▁kelib", -7.322020053863525], ["▁bitta", -7.325826168060303], ["magan", -7.330011367797852], ["aman", -7.331777095794678], ["▁esa", -7.332098484039307], ["▁Ma", -7.332561016082764], ["▁Bir", -7.3330888748168945], ["ti", -7.339344501495361], ["▁s", -7.345885753631592], ["▁tarix", -7.3467841148376465], ["▁chiqa", -7.358878135681152], ["▁ba", -7.366012096405029], ["qi", -7.379324436187744], ["ardi", -7.379936218261719], ["tushun", -7.380383491516113], ["amiz", -7.397401332855225], ["▁tash", -7.399458885192871], ["▁kim", -7.400225162506104], ["lim", -7.406532287597656], ["▁qoldi", -7.4142985343933105], ["siga", -7.416047096252441], ["▁oldi", -7.421487331390381], ["▁de", -7.425156116485596], ["▁bola", -7.4389214515686035], ["ir", -7.446616172790527], ["ilgan", -7.450907230377197], ["▁yil", -7.472117900848389], ["qanday", -7.473289012908936], ["▁inson", -7.478095531463623], ["qilish", -7.48045825958252], ["gina", -7.487466335296631], ["no", -7.489263534545898], ["▁Temur", -7.48939847946167], ["qanaqa", -7.4900712966918945], ["tib", -7.491178512573242], ["chilik", -7.503166198730469], ["lariga", -7.503965377807617], ["ov", -7.506085395812988], ["moqchi", -7.509374141693115], ["ydi", -7.5155792236328125], ["▁eng", -7.5183258056640625], ["may", -7.5189924240112305], ["▁Yo", -7.519209861755371], ["▁yubor", -7.528361320495605], ["mas", -7.531797885894775], ["il", -7.53348970413208], ["▁cho", -7.539788246154785], ["ul", -7.53988790512085], ["▁Mana", -7.54031229019165], ["▁kun", -7.540441036224365], ["iyati", -7.549036026000977], ["▁m", -7.55033016204834], ["▁tush", -7.553498268127441], ["qa", -7.556107044219971], ["▁Ko", -7.569242477416992], ["▁do", -7.570882797241211], ["▁yer", -7.573709964752197], ["▁be", -7.573869228363037], ["▁xalq", -7.575262546539307], ["▁shun", -7.576861381530762], ["ro", -7.578497886657715], ["oq", -7.591311931610107], ["haqida", -7.594189643859863], ["▁yosh", -7.59635591506958], ["liq", -7.598208427429199], ["sida", -7.601428508758545], ["tirib", -7.609581470489502], ["▁qa", -7.610672950744629], ["tirish", -7.624427318572998], ["▁kishi", -7.62520694732666], ["lanish", -7.62612247467041], ["▁I", -7.633322238922119], ["ur", -7.645875930786133], ["to", -7.646662712097168], ["▁eshit", -7.651123046875], ["yi", -7.662532329559326], ["dek", -7.663705348968506], ["▁Keyin", -7.664436340332031], ["▁Ular", -7.664919853210449], ["▁suv", -7.676829814910889], ["▁ketdi", -7.680206775665283], ["▁qilin", -7.687253475189209], ["zim", -7.688436031341553], ["▁til", -7.693408489227295], ["▁davr", -7.69726037979126], ["ay", -7.6985602378845215], ["▁olish", -7.699857711791992], ["akat", -7.703103542327881], ["▁uch", -7.7085347175598145], ["▁yuz", -7.710849761962891], ["▁qiz", -7.7111496925354], ["▁Qo", -7.713540554046631], ["radi", -7.714602470397949], ["▁turib", -7.718765735626221], ["sangiz", -7.722116470336914], ["lanadi", -7.724605560302734], ["chiqib", -7.72665548324585], ["▁G", -7.733092784881592], ["▁unga", -7.733697414398193], ["▁hisob", -7.740847587585449], ["▁yasha", -7.745913028717041], ["▁meni", -7.751110553741455], ["lo", -7.753513813018799], ["ot", -7.755159854888916], ["al", -7.756144046783447], ["lagan", -7.761793613433838], ["▁xo", -7.762417316436768], ["▁payt", -7.766513824462891], ["▁Ha", -7.772331237792969], ["▁pul", -7.772858619689941], ["ziga", -7.772881984710693], ["yib", -7.775282859802246], ["Chunki", -7.779758453369141], ["▁hayot", -7.781518936157227], ["e", -7.782839298248291], ["lanib", -7.782936096191406], ["▁mo", -7.788090705871582], ["▁x", -7.793682098388672], ["shi", -7.796070098876953], ["▁p", -7.799436092376709], ["▁ishla", -7.801419734954834], ["yo", -7.80206298828125], ["▁joy", -7.803549766540527], ["▁fikr", -7.804660797119141], ["▁holat", -7.806383609771728], ["larida", -7.807777404785156], ["▁uy", -7.816664218902588], ["un", -7.817981243133545], ["tir", -7.81998872756958], ["▁Siz", -7.822580814361572], ["rsat", -7.82362699508667], ["gacha", -7.82572078704834], ["▁Biz", -7.826125144958496], ["▁yur", -7.831591606140137], ["rt", -7.832346439361572], ["iz", -7.834043979644775], ["xon", -7.835536956787109], ["uvchi", -7.840349674224853], ["▁dunyo", -7.840403079986572], ["ining", -7.840448379516602], ["▁qildi", -7.846885681152344], ["san", -7.852921485900879], ["▁sifat", -7.853483200073242], ["▁yaqin", -7.857746124267578], ["▁Nima", -7.860096454620361], ["lbatta", -7.868414878845215], ["▁in", -7.869653224945068], ["sin", -7.869808197021484], ["lmagan", -7.871591091156006], ["or", -7.871969699859619], ["▁vaqt", -7.873963356018066], ["▁Shun", -7.877233982086182], ["va", -7.878654956817627], ["▁Mu", -7.880600929260254], ["▁keldi", -7.880772590637207], ["j", -7.881191730499268], ["▁Sa", -7.883895397186279], ["dor", -7.884326457977295], ["▁yet", -7.885828018188477], ["tish", -7.88756799697876], ["za", -7.887836456298828], ["▁foyda", -7.89206075668335], ["zlari", -7.892816543579102], ["lmaydi", -7.89485502243042], ["▁Ta", -7.894898891448975], ["▁yangi", -7.8956122398376465], ["▁bog", -7.896529674530029], ["▁gapir", -7.900231838226318], ["▁aka", -7.901617050170898], ["daraja", -7.903276443481445], ["▁faqat", -7.904496192932129], ["▁menga", -7.905547618865967], ["qilgan", -7.914472579956055], ["madi", -7.915948390960693], ["▁So", -7.918421745300293], ["ibdi", -7.919317245483398], ["dik", -7.922149181365967], ["▁qila", -7.924261569976807], ["kelgan", -7.92587947845459], ["▁og", -7.9289774894714355], ["laydi", -7.93183183670044], ["▁tili", -7.9344377517700195], ["▁xil", -7.936220169067383], ["▁na", -7.940032482147217], ["▁Bo", -7.9402313232421875], ["vo", -7.942658424377441], ["imni", -7.9452223777771], ["▁qarab", -7.949202537536621], ["lan", -7.962336540222168], ["▁top", -7.967409133911133], ["rdi", -7.977351188659668], ["▁savol", -7.978705406188965], ["ganda", -7.982161998748779], ["▁javob", -7.982380390167236], ["idagi", -7.988070487976074], ["▁Agar", -7.98970365524292], ["▁go", -7.991344451904297], ["ja", -7.992130279541016], ["rin", -7.992791175842285], ["tgan", -7.992882251739502], ["▁yigit", -7.994855403900147], ["▁kir", -7.999618053436279], ["▁qiziq", -7.999666690826416], ["▁nazar", -8.003337860107422], ["▁hudud", -8.005097389221191], ["▁Ba", -8.007598876953125], ["asi", -8.007723808288574], ["▁ayol", -8.009002685546875], ["bek", -8.0106840133667], ["shahar", -8.014739990234375], ["▁borib", -8.015007019042969], ["▁ega", -8.019851684570312], ["▁qol", -8.020075798034668], ["▁Turk", -8.022177696228027], ["▁deya", -8.022579193115234], ["▁Va", -8.024648666381836], ["▁yig", -8.025282859802246], ["▁sabab", -8.031288146972656], ["tayyor", -8.041260719299316], ["imda", -8.041391372680664], ["bo", -8.043395042419434], ["▁davom", -8.045293807983398], ["▁tan", -8.048383712768555], ["om", -8.048776626586914], ["▁kirib", -8.055475234985352], ["sodiy", -8.055854797363281], ["▁ota", -8.058432579040527], ["▁qaysi", -8.060604095458984], ["tar", -8.0637845993042], ["iladi", -8.06740951538086], ["shqari", -8.072859764099121], ["rab", -8.074543952941895], ["imizni", -8.074984550476074], ["▁olgan", -8.075718879699707], ["▁Xo", -8.076423645019531], ["▁shakl", -8.07761001586914], ["maqsad", -8.085871696472168], ["sam", -8.08919620513916], ["▁misol", -8.090038299560547], ["▁iqti", -8.093913078308105], ["turgan", -8.096488952636719], ["ko", -8.0990571975708], ["▁Masal", -8.105090141296387], ["▁aylan", -8.107836723327637], ["qancha", -8.109627723693848], ["am", -8.113702774047852], ["lish", -8.114752769470215], ["liklar", -8.11600112915039], ["▁hali", -8.116756439208984], ["▁oldin", -8.117021560668945], ["er", -8.117456436157227], ["ona", -8.118400573730469], ["barcha", -8.119114875793457], ["yicha", -8.120452880859375], ["ba", -8.122272491455078], ["mon", -8.122994422912598], ["ishadi", -8.126147270202637], ["▁talab", -8.129669189453125], ["▁rivoj", -8.13489055633545], ["▁ha", -8.136449813842773], ["qib", -8.144515037536621], ["yon", -8.146463394165039], ["▁buni", -8.149863243103027], ["▁Hozir", -8.154557228088379], ["ishni", -8.15457534790039], ["aribir", -8.15772819519043], ["ketgan", -8.15847396850586], ["▁kitob", -8.160056114196777], ["min", -8.167742729187012], ["▁sen", -8.170150756835938], ["▁shaxs", -8.170256614685059], ["▁et", -8.172091484069824], ["▁kam", -8.174859046936035], ["▁Amir", -8.178689956665039], ["tibor", -8.181534767150879], ["lumot", -8.181702613830566], ["proq", -8.183018684387207], ["chilar", -8.186367988586426], ["lashib", -8.190576553344727], ["▁munos", -8.190805435180664], ["▁yoq", -8.190959930419922], ["yapman", -8.192769050598145], ["xizmat", -8.19310474395752], ["day", -8.193892478942871], ["ji", -8.195326805114746], ["sak", -8.199202537536621], ["▁ancha", -8.200716972351074], ["▁zo", -8.203826904296875], ["so", -8.205507278442383], ["xta", -8.21381950378418], ["▁ot", -8.213842391967773], ["▁sa", -8.216068267822266], ["moq", -8.218371391296387], ["▁ich", -8.219106674194336], ["ishdi", -8.2199068069458], ["▁no", -8.220625877380371], ["qiladi", -8.225994110107422], ["rta", -8.22793960571289], ["lum", -8.2305908203125], ["▁me", -8.231324195861816], ["ol", -8.232001304626465], ["imcha", -8.23695182800293], ["imizda", -8.238248825073242], ["▁aytib", -8.238332748413086], ["▁jihat", -8.2391939163208], ["▁chiqq", -8.23995304107666], ["lmasa", -8.241742134094238], ["suhbat", -8.242828369140625], ["▁undan", -8.243229866027832], ["atsiya", -8.244559288024902], ["qul", -8.246994018554688], ["▁ishon", -8.248270988464355], ["▁madan", -8.251351356506348], ["qo", -8.25472354888916], ["fi", -8.256497383117676], ["kor", -8.257747650146484], ["▁Qa", -8.260392189025879], ["maktab", -8.263729095458984], ["▁Har", -8.26401424407959], ["zgar", -8.26478385925293], ["tirgan", -8.270471572875977], ["▁yoz", -8.271260261535645], ["▁siyos", -8.272648811340332], ["mayman", -8.274394989013672], ["▁Uning", -8.276457786560059], ["ati", -8.277267456054688], ["yordam", -8.279219627380371], ["shina", -8.280606269836426], ["ganman", -8.281669616699219], ["chunki", -8.290897369384766], ["qarshi", -8.294598579406738], ["umuman", -8.300086975097656], ["ngiz", -8.302478790283203], ["▁qayta", -8.302845001220703], ["▁ustoz", -8.30289077758789], ["▁kuni", -8.302945137023926], ["▁turk", -8.307555198669434], ["▁tug", -8.308121681213379], ["▁kabi", -8.30965805053711], ["▁agar", -8.309783935546875], ["▁po", -8.310037612915039], ["lay", -8.310160636901855], ["▁beri", -8.310497283935547], ["jon", -8.314093589782715], ["▁Ammo", -8.315864562988281], ["▁jo", -8.315926551818848], ["ishgan", -8.31910228729248], ["▁hatto", -8.322420120239258], ["▁asar", -8.325672149658203], ["abat", -8.327103614807129], ["▁faol", -8.327949523925781], ["mol", -8.330219268798828], ["▁butun", -8.334885597229004], ["▁yarat", -8.3372802734375], ["and", -8.338725090026855], ["dosh", -8.340185165405273], ["do", -8.343658447265625], ["▁B", -8.344490051269531], ["▁yomon", -8.345014572143555], ["▁paydo", -8.345029830932617], ["ishlab", -8.345392227172852], ["▁bizni", -8.346195220947266], ["▁birga", -8.346475601196289], ["▁davri", -8.349860191345215], ["lsak", -8.350279808044434], ["▁fa", -8.351113319396973], ["ak", -8.351373672485352], ["▁orqa", -8.351570129394531], ["lga", -8.353550910949707], ["▁S", -8.353994369506836], ["ha", -8.354248046875], ["likka", -8.358142852783203], ["asosiy", -8.360795021057129], ["orqali", -8.362690925598145], ["▁su", -8.362844467163086], ["▁demak", -8.364301681518555], ["▁aniq", -8.365861892700195], ["xo", -8.366387367248535], ["oz", -8.36640739440918], ["qachon", -8.37094497680664], ["shib", -8.374102592468262], ["▁mavzu", -8.375059127807617], ["▁uzoq", -8.375319480895996], ["mlakat", -8.376848220825195], ["▁imkon", -8.379271507263184], ["keladi", -8.379375457763672], ["▁berib", -8.380660057067871], ["larim", -8.381312370300293], ["▁ye", -8.383248329162598], ["aver", -8.3893461227417], ["▁marta", -8.391136169433594], ["▁Sen", -8.393033981323242], ["▁besh", -8.39391803741455], ["▁Xudo", -8.394654273986816], ["...", -8.396184921264648], ["ikkita", -8.400727272033691], ["▁bugun", -8.400768280029297], ["vi", -8.401148796081543], ["yot", -8.401840209960938], ["lat", -8.402704238891602], ["imga", -8.402739524841309], ["sir", -8.405854225158691], ["▁aynan", -8.40602970123291], ["▁biri", -8.415060997009277], ["yuqori", -8.416106224060059], ["▁ikkin", -8.416136741638184], ["▁oila", -8.417088508605957], ["▁re", -8.418721199035645], ["▁ol", -8.423358917236328], ["▁tez", -8.424491882324219], ["en", -8.429452896118164], ["▁pa", -8.43032455444336], ["▁holda", -8.431222915649414], ["▁Hamma", -8.432403564453125], ["▁xuddi", -8.433564186096191], ["ylab", -8.434930801391602], ["▁soha", -8.435685157775879], ["▁haqiq", -8.439962387084961], ["bi", -8.440735816955566], ["▁jara", -8.441669464111328], ["mo", -8.442244529724121], ["imizga", -8.443826675415039], ["gungi", -8.445366859436035], ["ru", -8.44587230682373], ["sidan", -8.445984840393066], ["ydigan", -8.446794509887695], ["ob", -8.44764232635498], ["▁balki", -8.447696685791016], ["▁ming", -8.450579643249512], ["shin", -8.450617790222168], ["▁olim", -8.450920104980469], ["▁tuz", -8.451682090759277], ["▁necha", -8.451942443847656], ["ik", -8.453147888183594], ["▁berdi", -8.454872131347656], ["▁hukm", -8.458863258361816], ["▁qayer", -8.465168952941895], ["moqda", -8.465407371520996], ["▁qur", -8.466729164123535], ["ishini", -8.466771125793457], ["▁kech", -8.467521667480469], ["lsin", -8.46847915649414], ["▁muhim", -8.469491958618164], ["masdan", -8.470731735229492], ["yam", -8.47275447845459], ["Buxoro", -8.47340202331543], ["tdi", -8.474634170532227], ["▁boy", -8.474740028381348], ["▁atrof", -8.475533485412598], ["▁xusus", -8.475579261779785], ["▁dedim", -8.476109504699707], ["▁Na", -8.476137161254883], ["▁kunda", -8.476678848266602], ["▁uchra", -8.47706127166748], ["▁ne", -8.477441787719727], ["▁xotin", -8.480208396911621], ["yat", -8.482226371765137], ["▁nom", -8.484039306640625], ["it", -8.492471694946289], ["▁usti", -8.493531227111816], ["landi", -8.496106147766113], ["yapmiz", -8.496294975280762], ["▁turli", -8.499194145202637], ["shgan", -8.502181053161621], ["▁zamon", -8.507095336914062], ["um", -8.507232666015625], ["▁yetib", -8.511319160461426], ["son", -8.515498161315918], ["▁xos", -8.517718315124512], ["pi", -8.517982482910156], ["dqiqot", -8.5181245803833], ["lardi", -8.519379615783691], ["zo", -8.520215034484863], ["▁v", -8.520243644714355], ["▁F", -8.521803855895996], ["siya", -8.522212982177734], ["xsha", -8.52247142791748], ["tkaz", -8.524152755737305], ["▁xayol", -8.52428913116455], ["▁oladi", -8.524548530578613], ["▁yerga", -8.527426719665527], ["▁tog", -8.527530670166016], ["▁sizga", -8.528066635131836], ["ishim", -8.529335021972656], ["lohida", -8.533028602600098], ["▁sal", -8.5372314453125], ["▁ch", -8.539814949035645], ["▁amal", -8.54248046875], ["▁ana", -8.548988342285156], ["lon", -8.549365043640137], ["▁qismi", -8.551417350769043], ["▁kuzat", -8.552085876464844], ["yla", -8.552623748779297], ["▁manba", -8.555445671081543], ["beradi", -8.557307243347168], ["imdan", -8.557656288146973], ["▁Ikrom", -8.563636779785156], ["dingiz", -8.565837860107422], ["▁bizga", -8.567208290100098], ["rg", -8.571487426757812], ["chalik", -8.573512077331543], ["▁biror", -8.577740669250488], ["▁qu", -8.57820987701416], ["▁edim", -8.580709457397461], ["▁avval", -8.58083724975586], ["aylik", -8.581645011901855], ["▁och", -8.58850383758545], ["mish", -8.589336395263672], ["mehnat", -8.594228744506836], ["ichida", -8.595391273498535], ["layman", -8.59545612335205], ["▁taraf", -8.597790718078613], ["▁etish", -8.598804473876953], ["▁Demak", -8.604679107666016], ["▁tut", -8.607105255126953], ["▁Ana", -8.607521057128906], ["▁asos", -8.609832763671875], ["qand", -8.609883308410645], ["Navoiy", -8.609891891479492], ["bir", -8.610119819641113], ["▁qabul", -8.613593101501465], ["▁xohla", -8.614374160766602], ["▁ka", -8.615714073181152], ["asiz", -8.615787506103516], ["▁qay", -8.618026733398438], ["▁sho", -8.619062423706055], ["▁yon", -8.62076473236084], ["muammo", -8.622232437133789], ["▁kasal", -8.624021530151367], ["▁qiyin", -8.624456405639648], ["te", -8.624879837036133], ["riq", -8.627034187316895], ["▁t", -8.628782272338867], ["▁es", -8.629899024963379], ["▁san", -8.630599975585938], ["▁kela", -8.633864402770996], ["▁Yana", -8.634331703186035], ["lyapti", -8.634354591369629], ["▁oy", -8.635212898254395], ["▁keta", -8.637517929077148], ["▁Da", -8.637655258178711], ["▁bila", -8.638148307800293], ["timoiy", -8.638326644897461], ["qarash", -8.640314102172852], ["lov", -8.64138126373291], ["yog", -8.642228126525879], ["yna", -8.642865180969238], ["▁xabar", -8.643054008483887], ["▁farz", -8.643975257873535], ["zingiz", -8.648710250854492], ["▁doim", -8.649085998535156], ["ygan", -8.649258613586426], ["▁bozor", -8.650236129760742], ["logiya", -8.650994300842285], ["zining", -8.654105186462402], ["▁ista", -8.654253005981445], ["▁qadr", -8.654739379882812], ["izm", -8.655130386352539], ["▁biroz", -8.655390739440918], ["▁kuch", -8.655538558959961], ["niy", -8.656050682067871], ["sbatan", -8.657648086547852], ["alar", -8.66025161743164], ["▁past", -8.662053108215332], ["▁Ka", -8.663145065307617], ["qish", -8.663568496704102], ["▁Te", -8.663596153259277], ["tushib", -8.664560317993164], ["rilgan", -8.665013313293457], ["sang", -8.671114921569824], ["▁yarim", -8.67176342010498], ["ildi", -8.672391891479492], ["loq", -8.673291206359863], ["▁qadim", -8.675894737243652], ["▁Cho", -8.67708683013916], ["▁ij", -8.678519248962402], ["▁M", -8.682807922363281], ["▁erta", -8.68413257598877], ["lini", -8.686279296875], ["natija", -8.686362266540527], ["uv", -8.686643600463867], ["▁As", -8.686930656433105], ["▁ro", -8.68799877166748], ["iyasi", -8.68813419342041], ["▁Biroq", -8.688346862792969], ["▁shart", -8.68835163116455], ["▁bera", -8.69053840637207], ["▁voqea", -8.691125869750977], ["zimiz", -8.696946144104004], ["▁qora", -8.697625160217285], ["▁oshir", -8.698187828063965], ["▁yog", -8.698731422424316], ["us", -8.703192710876465], ["xona", -8.70563793182373], ["▁adabi", -8.709661483764648], ["bu", -8.709944725036621], ["ishiga", -8.710780143737793], ["shni", -8.710918426513672], ["tin", -8.711557388305664], ["rdim", -8.712950706481934], ["▁Samar", -8.71323299407959], ["▁chek", -8.716875076293945], ["▁qayt", -8.718031883239746], ["yoq", -8.718305587768555], ["▁jam", -8.718520164489746], ["sining", -8.718733787536621], ["qon", -8.721470832824707], ["rak", -8.721922874450684], ["▁Xitoy", -8.72296142578125], ["▁Osiyo", -8.72494888305664], ["▁asr", -8.725042343139648], ["▁oddiy", -8.726910591125488], ["▁aholi", -8.727030754089355], ["▁amir", -8.728711128234863], ["▁tosh", -8.729063034057617], ["▁fan", -8.72912311553955], ["▁she", -8.72984790802002], ["▁Mo", -8.730131149291992], ["▁jon", -8.731762886047363], ["▁qon", -8.732468605041504], ["ron", -8.733988761901855], ["rtasi", -8.737649917602539], ["yor", -8.739819526672363], ["fa", -8.74004077911377], ["ketadi", -8.740976333618164], ["▁chet", -8.741148948669434], ["▁bizda", -8.743266105651855], ["▁ti", -8.744192123413086], ["ngizni", -8.745105743408203], ["lashga", -8.749530792236328], ["yin", -8.75189208984375], ["▁urush", -8.752902030944824], ["paytda", -8.7540864944458], ["yapsiz", -8.756974220275879], ["ab", -8.759269714355469], ["hsulot", -8.760889053344727], ["ey", -8.761391639709473], ["▁keng", -8.762452125549316], ["▁tu", -8.762948989868164], ["tadi", -8.764517784118652], ["llab", -8.766215324401855], ["lg", -8.766332626342773], ["dur", -8.76789665222168], ["lovchi", -8.768657684326172], ["lantir", -8.769461631774902], ["▁Be", -8.77036190032959], ["▁Ross", -8.771495819091797], ["hi", -8.77470588684082], ["madim", -8.774725914001465], ["sti", -8.776470184326172], ["yish", -8.777715682983398], ["▁Uni", -8.778037071228027], ["▁ovqat", -8.778347969055176], ["ngli", -8.77843189239502], ["▁sh", -8.780465126037598], ["▁baho", -8.78121566772461], ["▁savdo", -8.783647537231445], ["vosita", -8.783656120300293], ["is", -8.785573959350586], ["shkil", -8.78601360321045], ["likda", -8.789763450622559], ["mavjud", -8.789923667907715], ["le", -8.790144920349121], ["▁sizni", -8.791801452636719], ["aytgan", -8.791993141174316], ["▁jang", -8.792314529418945], ["▁k", -8.792922973632812], ["▁dars", -8.793240547180176], ["▁qolib", -8.79381275177002], ["▁pro", -8.794502258300781], ["haligi", -8.794646263122559], ["▁Buni", -8.794770240783691], ["▁el", -8.796433448791504], ["po", -8.797279357910156], ["▁P", -8.798681259155273], ["▁Hind", -8.800477981567383], ["▁jamiy", -8.801129341125488], ["ganini", -8.803186416625977], ["▁kecha", -8.808693885803223], ["du", -8.810837745666504], ["▁ata", -8.815898895263672], ["ich", -8.816832542419434], ["mat", -8.817211151123047], ["ilib", -8.818154335021973], ["▁oq", -8.818330764770508], ["iylar", -8.820684432983398], ["▁qishl", -8.821206092834473], ["▁desa", -8.82404899597168], ["odshoh", -8.82479190826416], ["et", -8.825575828552246], ["aslida", -8.825898170471191], ["▁erish", -8.826254844665527], ["gin", -8.827620506286621], ["taklif", -8.828434944152832], ["masa", -8.829235076904297], ["milliy", -8.830639839172363], ["▁Ikkin", -8.830880165100098], ["▁qonun", -8.833436012268066], ["berish", -8.833847999572754], ["▁min", -8.834744453430176], ["qattiq", -8.837223052978516], ["zimni", -8.842812538146973], ["▁iz", -8.843672752380371], ["▁uyg", -8.843790054321289], ["univer", -8.844385147094727], ["noda", -8.846362113952637], ["lgani", -8.847308158874512], ["▁ichi", -8.847359657287598], ["tirdi", -8.85004711151123], ["▁Qu", -8.850851058959961], ["bergan", -8.852660179138184], ["iroyli", -8.852782249450684], ["ingni", -8.854071617126465], ["▁bular", -8.85441780090332], ["de", -8.854803085327148], ["chisi", -8.856884002685547], ["▁Faqat", -8.859442710876465], ["oya", -8.860320091247559], ["gach", -8.860490798950195], ["▁tizim", -8.862818717956543], ["▁xon", -8.863231658935547], ["ncha", -8.863636016845703], ["Husayn", -8.863950729370117], ["goh", -8.867034912109375], ["rat", -8.868913650512695], ["▁bilim", -8.869217872619629], ["mang", -8.869677543640137], ["▁ovoz", -8.86968994140625], ["lamiz", -8.87002944946289], ["▁haq", -8.8722562789917], ["mehmon", -8.873041152954102], ["▁te", -8.8751859664917], ["▁ja", -8.875345230102539], ["▁hokim", -8.875482559204102], ["▁kul", -8.875892639160156], ["▁Bil", -8.876482963562012], ["bunaqa", -8.876608848571777], ["zor", -8.877094268798828], ["atdan", -8.877131462097168], ["▁anaqa", -8.877581596374512], ["iddin", -8.877959251403809], ["▁er", -8.87808609008789], ["noma", -8.881102561950684], ["▁sez", -8.881114959716797], ["ho", -8.882251739501953], ["yniqsa", -8.883028030395508], ["kka", -8.884262084960938], ["▁teg", -8.88458251953125], ["arkan", -8.885082244873047], ["zal", -8.885427474975586], ["▁kut", -8.886839866638184], ["ozgina", -8.887175559997559], ["▁mol", -8.889328002929688], ["mor", -8.893879890441895], ["zlar", -8.894305229187012], ["vor", -8.894415855407715], ["likni", -8.89525318145752], ["asan", -8.895299911499023], ["qiy", -8.896358489990234], ["▁saq", -8.897005081176758], ["ishlar", -8.899699211120605], ["▁arala", -8.89971923828125], ["viy", -8.899885177612305], ["shuv", -8.901021957397461], ["▁tort", -8.901618003845215], ["▁olmay", -8.901646614074707], ["zidan", -8.902286529541016], ["lam", -8.902822494506836], ["▁d", -8.902874946594238], ["▁lozim", -8.903215408325195], ["kin", -8.903761863708496], ["don", -8.904435157775879], ["ani", -8.904587745666504], ["zing", -8.905656814575195], ["laman", -8.906481742858887], ["▁belgi", -8.90871810913086], ["mu", -8.91138744354248], ["▁Tu", -8.912773132324219], ["ut", -8.915231704711914], ["▁Ra", -8.916935920715332], ["▁J", -8.922136306762695], ["▁bajar", -8.922904968261719], ["lak", -8.925440788269043], ["▁ting", -8.927421569824219], ["▁yara", -8.928302764892578], ["▁Kim", -8.933744430541992], ["inglar", -8.934280395507812], ["▁Do", -8.934699058532715], ["masdi", -8.93510627746582], ["turkiy", -8.935426712036133], ["▁se", -8.936306953430176], ["▁yurib", -8.936356544494629], ["▁Me", -8.93713665008545], ["▁chaqi", -8.938126564025879], ["oti", -8.938984870910645], ["▁gul", -8.939692497253418], ["sht", -8.940190315246582], ["navbat", -8.94145679473877], ["qir", -8.94481372833252], ["iyada", -8.945741653442383], ["▁etib", -8.948610305786133], ["▁ketib", -8.951120376586914], ["▁unaqa", -8.952629089355469], ["▁tik", -8.953993797302246], ["▁joyi", -8.95622730255127], ["▁Qiz", -8.960264205932617], ["maslik", -8.96074104309082], ["▁bildi", -8.960834503173828], ["savvur", -8.961183547973633], ["▁muta", -8.96374797821045], ["fo", -8.965006828308105], ["tiradi", -8.965706825256348], ["▁xat", -8.968400955200195], ["uz", -8.969834327697754], ["▁tinch", -8.970389366149902], ["▁dam", -8.97058391571045], ["▁avlod", -8.971196174621582], ["▁dast", -8.975799560546875], ["▁ilmiy", -8.978160858154297], ["tor", -8.982091903686523], ["▁Nega", -8.98270034790039], ["▁eshik", -8.98392105102539], ["harbiy", -8.983922958374023], ["millat", -8.984419822692871], ["▁ke", -8.984813690185547], ["nalish", -8.984893798828125], ["ne", -8.98589038848877], ["▁aham", -8.986417770385742], ["pay", -8.987120628356934], ["▁shuni", -8.987213134765625], ["▁nomi", -8.987704277038574], ["arli", -8.987713813781738], ["▁Z", -8.989715576171875], ["▁niho", -8.990386962890625], ["▁mahal", -8.991477966308594], ["▁erkak", -8.991533279418945], ["▁etgan", -8.99258804321289], ["▁etdi", -8.9932222366333], ["▁yurt", -8.993542671203613], ["▁qaror", -8.994489669799805], ["shunos", -8.996678352355957], ["aro", -8.99760913848877], ["▁oxiri", -8.99801254272461], ["od", -8.999131202697754], ["▁ayta", -9.000243186950684], ["masi", -9.000248908996582], ["dilar", -9.000571250915527], ["rni", -9.002994537353516], ["▁otasi", -9.003074645996094], ["▁yozuv", -9.005443572998047], ["▁ochiq", -9.005472183227539], ["ring", -9.00562858581543], ["▁ort", -9.005647659301758], ["lama", -9.005701065063477], ["tarib", -9.00674057006836], ["▁Hech", -9.00715160369873], ["▁osti", -9.007268905639648], ["▁tarqa", -9.007344245910645], ["▁Po", -9.00750732421875], ["hurmat", -9.012282371520996], ["per", -9.012426376342772], ["yonida", -9.013385772705078], ["▁senga", -9.014081954956056], ["▁his", -9.014089584350586], ["ursand", -9.014934539794922], ["qaytib", -9.015759468078612], ["uk", -9.016122817993164], ["nat", -9.016404151916504], ["rmon", -9.01682186126709], ["▁sekin", -9.0169038772583], ["▁aloqa", -9.017632484436035], ["▁dey", -9.017831802368164], ["rma", -9.020246505737305], ["▁orasi", -9.021140098571776], ["yoniga", -9.02142333984375], ["hammad", -9.022435188293455], ["guncha", -9.022652626037598], ["▁guruh", -9.022820472717283], ["▁Juda", -9.0238618850708], ["vu", -9.024358749389648], ["▁joyda", -9.02598476409912], ["mog", -9.026148796081545], ["niki", -9.026296615600586], ["▁safar", -9.028558731079102], ["▁haqi", -9.031225204467772], ["▁is", -9.031451225280762], ["▁Alloh", -9.032530784606934], ["shanda", -9.03296947479248], ["sizlar", -9.03377914428711], ["▁odat", -9.034234046936035], ["kurash", -9.034423828125], ["chuqur", -9.036161422729492], ["stitut", -9.036195755004885], ["▁rus", -9.036802291870115], ["og", -9.036904335021973], ["▁kirit", -9.037398338317873], ["ganim", -9.037923812866213], ["zib", -9.039278984069824], ["▁quril", -9.040083885192873], ["▁Su", -9.041399002075195], ["▁huquq", -9.041537284851074], ["▁soat", -9.042609214782717], ["din", -9.044537544250488], ["▁sog", -9.044937133789062], ["▁bar", -9.045140266418455], ["sidagi", -9.045584678649902], ["kuchli", -9.045689582824709], ["lingan", -9.046948432922363], ["▁nuqta", -9.048666954040527], ["lmas", -9.04980182647705], ["kichik", -9.049832344055176], ["yurgan", -9.050106048583984], ["▁taom", -9.050376892089844], ["zar", -9.050548553466797], ["shkent", -9.050707817077637], ["▁solib", -9.051239013671877], ["lmadi", -9.052520751953123], ["raman", -9.053180694580078], ["▁Ja", -9.05609130859375], ["c", -9.056158065795898], ["ve", -9.057893753051758], ["zida", -9.0582914352417], ["▁din", -9.05860710144043], ["▁ilm", -9.058992385864258], ["bar", -9.059861183166504], ["▁bag", -9.06044578552246], ["▁iste", -9.060763359069824], ["tov", -9.061503410339355], ["iborat", -9.061668395996094], ["▁etadi", -9.062164306640623], ["▁K", -9.062235832214355], ["sitet", -9.0635404586792], ["▁unda", -9.065150260925291], ["aga", -9.065948486328123], ["ju", -9.066849708557127], ["▁Undan", -9.067530632019045], ["masin", -9.068646430969238], ["▁ahvol", -9.068900108337402], ["▁sur", -9.069620132446287], ["tilgan", -9.069869041442873], ["ilishi", -9.06993579864502], ["▁No", -9.070136070251465], ["ldim", -9.07093334197998], ["pol", -9.07146453857422], ["majbur", -9.073037147521973], ["ramiz", -9.07388687133789], ["▁yirik", -9.074481010437012], ["▁shar", -9.074906349182127], ["▁Odam", -9.075536727905272], ["be", -9.078479766845703], ["rahmat", -9.078532218933104], ["▁xa", -9.079822540283203], ["▁zarur", -9.080092430114746], ["▁musta", -9.082502365112305], ["tanish", -9.082529067993164], ["▁qat", -9.084299087524414], ["ling", -9.088911056518556], ["tabiat", -9.089332580566406], ["▁Ish", -9.089685440063477], ["ligiga", -9.092698097229004], ["▁ar", -9.09325885772705], ["jo", -9.09393310546875], ["lig", -9.093984603881836], ["hujjat", -9.094181060791016], ["▁Is", -9.09563159942627], ["tu", -9.0962553024292], ["rbiya", -9.096266746520996], ["orat", -9.09631061553955], ["chkina", -9.09705638885498], ["haroit", -9.098023414611816], ["mening", -9.09857177734375], ["ulug", -9.099059104919434], ["▁hosil", -9.099925994873049], ["Yaxshi", -9.099933624267578], ["▁hol", -9.100401878356934], ["deylik", -9.101198196411133], ["yuragi", -9.102201461791992], ["▁Abdul", -9.104202270507812], ["ye", -9.105499267578123], ["Shaybo", -9.105660438537598], ["▁yoqda", -9.10617446899414], ["▁Bugun", -9.10622501373291], ["mir", -9.106292724609377], ["▁as", -9.106492042541504], ["▁say", -9.109208106994627], ["▁qadar", -9.109356880187988], ["▁yozib", -9.110921859741213], ["ke", -9.11261749267578], ["▁eski", -9.1142578125], ["slahat", -9.11430549621582], ["▁ichki", -9.116900444030762], ["▁xush", -9.11739444732666], ["bundan", -9.117836952209473], ["ustiga", -9.119771003723145], ["gandek", -9.122260093688965], ["rq", -9.123383522033691], ["amalga", -9.125065803527832], ["libdi", -9.125391960144045], ["port", -9.12573528289795], ["▁hovli", -9.125996589660645], ["▁osh", -9.126688957214355], ["och", -9.126769065856934], ["topshi", -9.128643035888672], ["quvvat", -9.128983497619627], ["ndoq", -9.129276275634766], ["▁yozil", -9.130301475524902], ["▁bora", -9.130845069885254], ["yetkaz", -9.1310453414917], ["▁olma", -9.133325576782228], ["merika", -9.13385009765625], ["qqa", -9.134220123291016], ["asida", -9.134353637695312], ["▁dush", -9.134506225585938], ["▁yugur", -9.134855270385742], ["urug", -9.135150909423828], ["▁quyi", -9.135570526123049], ["▁angla", -9.135756492614746], ["liga", -9.136096954345703], ["chiqdi", -9.136466026306152], ["shini", -9.138265609741213], ["▁za", -9.138425827026367], ["keltir", -9.139578819274902], ["rasida", -9.140381813049316], ["▁ajrat", -9.14044952392578], ["yev", -9.140910148620604], ["baland", -9.14104175567627], ["qit", -9.142332077026367], ["▁Hatto", -9.143757820129396], ["deymiz", -9.145804405212402], ["▁bois", -9.14698886871338], ["tarkib", -9.1478271484375], ["asini", -9.148759841918944], ["▁egal", -9.14912223815918], ["▁daryo", -9.149548530578612], ["olmay", -9.149662971496582], ["mush", -9.150198936462402], ["iloyat", -9.150276184082031], ["▁kelin", -9.15130615234375], ["▁sar", -9.151412010192873], ["▁birov", -9.152661323547363], ["xtiyor", -9.15344524383545], ["▁qar", -9.153882026672363], ["▁qator", -9.15422248840332], ["▁ruh", -9.15618133544922], ["▁Uy", -9.158320426940918], ["tabiiy", -9.159192085266112], ["▁seni", -9.15920352935791], ["▁nega", -9.160513877868652], ["▁Eron", -9.16100025177002], ["▁kechi", -9.16168212890625], ["tal", -9.162606239318848], ["▁Erta", -9.162841796875], ["▁Ota", -9.162911415100098], ["qarang", -9.163066864013672], ["shiq", -9.163607597351074], ["yolg", -9.163846969604492], ["chib", -9.164551734924316], ["▁kon", -9.165218353271484], ["tortib", -9.166894912719728], ["▁yetti", -9.167344093322754], ["stlar", -9.168682098388672], ["▁ona", -9.169021606445312], ["▁ochib", -9.170716285705566], ["▁sev", -9.170997619628906], ["Boshqa", -9.171225547790527], ["rkaziy", -9.171638488769531], ["shhur", -9.177212715148926], ["tadbir", -9.17748737335205], ["▁xona", -9.178407669067385], ["boshi", -9.178526878356934], ["▁al", -9.180081367492676], ["nchaki", -9.180299758911133], ["tsiya", -9.182700157165527], ["plab", -9.18462085723877], ["qigan", -9.18488883972168], ["▁ek", -9.184891700744627], ["▁deyi", -9.185661315917969], ["Bundan", -9.18643569946289], ["▁kar", -9.187329292297363], ["▁ho", -9.18742847442627], ["▁aytdi", -9.190489768981934], ["▁N", -9.191988945007324], ["▁hamda", -9.19261074066162], ["▁gapla", -9.193171501159668], ["che", -9.196531295776367], ["mak", -9.19792938232422], ["gandan", -9.198216438293455], ["▁topib", -9.198301315307615], ["▁oson", -9.19887638092041], ["ks", -9.199957847595217], ["▁bunga", -9.20028305053711], ["▁shoir", -9.200624465942385], ["dengiz", -9.200733184814451], ["loyiha", -9.202244758605955], ["gandi", -9.20302677154541], ["▁asosi", -9.205124855041504], ["▁qisqa", -9.205567359924316], ["▁Se", -9.206107139587402], ["ladimi", -9.208182334899902], ["▁Dilor", -9.208700180053713], ["rif", -9.210497856140137], ["umumiy", -9.210784912109377], ["▁sharq", -9.211033821105955], ["▁X", -9.211731910705566], ["▁Bobur", -9.211795806884766], ["▁bormi", -9.2123384475708], ["▁qism", -9.212642669677734], ["▁buyuk", -9.215069770812988], ["▁Bola", -9.215423583984377], ["tmish", -9.215700149536133], ["▁qadam", -9.215703010559082], ["▁oliy", -9.216279029846191], ["ziyat", -9.21718406677246], ["▁qilma", -9.218218803405762], ["yatda", -9.219278335571287], ["▁tepa", -9.220276832580566], ["risida", -9.220352172851562], ["▁uz", -9.220590591430664], ["intaqa", -9.220726013183594], ["sizlik", -9.22509765625], ["▁Ku", -9.225445747375488], ["naviy", -9.22830581665039], ["ovich", -9.229022979736328], ["rsatib", -9.229059219360352], ["▁havo", -9.22965145111084], ["ent", -9.22993278503418], ["▁hal", -9.230066299438477], ["▁Pa", -9.232053756713867], ["lin", -9.23347282409668], ["laring", -9.233769416809082], ["▁qal", -9.234063148498535], ["asizmi", -9.235349655151367], ["▁oltin", -9.235867500305176], ["▁bilib", -9.235898971557615], ["▁farq", -9.236002922058104], ["ding", -9.236653327941896], ["▁sir", -9.236992835998535], ["ishdan", -9.237385749816896], ["▁Si", -9.237698554992676], ["bunday", -9.238117218017578], ["icha", -9.23853588104248], ["▁tushi", -9.240575790405272], ["rilib", -9.241758346557615], ["▁bosib", -9.242167472839355], ["lganda", -9.242270469665527], ["▁ter", -9.24318027496338], ["▁ammo", -9.244361877441406], ["Yevrop", -9.24441146850586], ["▁pesh", -9.245433807373049], ["▁kuy", -9.24553108215332], ["se", -9.246557235717772], ["iyatga", -9.246657371520996], ["▁Misol", -9.247623443603516], ["hazrat", -9.247652053833008], ["zga", -9.247750282287598], ["▁topil", -9.247883796691896], ["ulla", -9.249585151672363], ["▁onasi", -9.250733375549316], ["par", -9.250899314880373], ["▁yelka", -9.251190185546877], ["▁anavi", -9.251432418823242], ["var", -9.252573013305664], ["▁Ne", -9.254867553710938], ["▁turar", -9.255804061889648], ["ek", -9.256965637207031], ["▁Bular", -9.260918617248535], ["himoya", -9.260986328125], ["muddat", -9.260997772216797], ["dastur", -9.26120662689209], ["▁jahon", -9.264348983764648], ["▁Jo", -9.265110969543455], ["▁Abdu", -9.266020774841309], ["nt", -9.267592430114746], ["▁devor", -9.268654823303224], ["▁Al", -9.269489288330078], ["▁toza", -9.269498825073242], ["lashdi", -9.269524574279783], ["▁Xa", -9.270387649536133], ["xassis", -9.271111488342283], ["ngil", -9.271355628967283], ["tartib", -9.274908065795898], ["▁Yoki", -9.274917602539062], ["▁umid", -9.276155471801758], ["lma", -9.276566505432127], ["choq", -9.27904224395752], ["hayron", -9.279398918151855], ["▁tomo", -9.280266761779783], ["tira", -9.28104305267334], ["Nafisa", -9.281363487243652], ["biznes", -9.28251838684082], ["asiga", -9.28280544281006], ["ishib", -9.28779411315918], ["▁niyat", -9.29055118560791], ["yman", -9.29277801513672], ["ganmiz", -9.294703483581545], ["hokazo", -9.295172691345217], ["▁yuzi", -9.296304702758787], ["▁turdi", -9.29775047302246], ["qimmat", -9.298663139343262], ["▁islom", -9.298779487609863], ["chidan", -9.299269676208496], ["ishda", -9.299285888671877], ["▁Bor", -9.29931640625], ["▁sol", -9.299402236938477], ["yilgan", -9.29992389678955], ["uch", -9.300382614135742], ["quvchi", -9.302067756652832], ["▁ila", -9.302165031433104], ["kon", -9.302216529846191], ["▁kutib", -9.303784370422363], ["ngizga", -9.30444049835205], ["▁rost", -9.304758071899414], ["qqiz", -9.304962158203123], ["▁yonda", -9.306286811828612], ["taqdir", -9.30637550354004], ["xshab", -9.308255195617676], ["adiki", -9.308692932128906], ["rash", -9.308900833129885], ["go", -9.313265800476074], ["▁joyla", -9.314066886901855], ["▁teng", -9.315573692321776], ["▁Ke", -9.316153526306152], ["daraxt", -9.316259384155272], ["▁ajra", -9.317353248596191], ["▁Af", -9.317455291748049], ["▁Far", -9.317867279052734], ["▁Di", -9.318254470825195], ["aviy", -9.318613052368164], ["vazifa", -9.319555282592772], ["onasi", -9.320150375366213], ["▁sotib", -9.322233200073242], ["nchi", -9.323469161987305], ["▁opa", -9.325034141540527], ["korlik", -9.325409889221191], ["xulosa", -9.32697582244873], ["▁Meni", -9.327814102172852], ["log", -9.328248023986816], ["ray", -9.32946491241455], ["▁oyoq", -9.33040714263916], ["▁choy", -9.331046104431152], ["▁yoqqa", -9.331377029418944], ["▁vakil", -9.331438064575195], ["tiv", -9.332345962524414], ["lsam", -9.332829475402832], ["hu", -9.334303855895996], ["Rustam", -9.334463119506836], ["▁podka", -9.334718704223633], ["tushdi", -9.334946632385254], ["▁Mirzo", -9.337943077087402], ["rog", -9.33824634552002], ["▁saroy", -9.338315963745115], ["turadi", -9.339032173156738], ["▁xayr", -9.339391708374023], ["▁qilsa", -9.341663360595703], ["ram", -9.345270156860352], ["zoda", -9.34639835357666], ["ver", -9.34676742553711], ["▁uchta", -9.34749984741211], ["▁ushbu", -9.348761558532717], ["▁eri", -9.350162506103516], ["maslig", -9.35085678100586], ["▁baxt", -9.351516723632812], ["lom", -9.351703643798828], ["▁Ho", -9.352317810058594], ["maymiz", -9.355327606201172], ["▁ortiq", -9.356164932250977], ["▁Anvar", -9.35621452331543], ["ganday", -9.357375144958496], ["asosan", -9.358201026916504], ["til", -9.358311653137209], ["boy", -9.358744621276855], ["es", -9.35951805114746], ["em", -9.359945297241213], ["ushlab", -9.360576629638672], ["zan", -9.360797882080078], ["tuvchi", -9.361567497253418], ["voy", -9.362872123718262], ["kal", -9.363288879394531], ["▁bordi", -9.363996505737305], ["me", -9.364131927490234], ["ingga", -9.36457633972168], ["lang", -9.366534233093262], ["qqan", -9.367131233215332], ["laykum", -9.367276191711426], ["▁Go", -9.367698669433594], ["▁tirik", -9.371251106262209], ["▁ochil", -9.371363639831545], ["zaro", -9.372235298156738], ["▁hafta", -9.37477970123291], ["sakkiz", -9.37480926513672], ["▁uncha", -9.37570858001709], ["chasi", -9.377960205078123], ["▁usul", -9.378263473510742], ["hayvon", -9.378850936889648], ["rgat", -9.378950119018556], ["llari", -9.380145072937012], ["dori", -9.380796432495115], ["rtoq", -9.381129264831545], ["ud", -9.383196830749512], ["tik", -9.383271217346191], ["▁mos", -9.383567810058594], ["▁vatan", -9.384339332580566], ["linadi", -9.384634017944336], ["▁vaqti", -9.384736061096191], ["lashti", -9.385685920715332], ["rov", -9.38620662689209], ["staqil", -9.386783599853516], ["▁Xuddi", -9.3899564743042], ["ufayli", -9.389974594116213], ["▁mehr", -9.390425682067873], ["▁qidir", -9.391206741333008], ["biriga", -9.392522811889648], ["rishga", -9.392556190490724], ["salomu", -9.394295692443848], ["shadi", -9.396940231323242], ["mni", -9.398015975952148], ["zg", -9.398844718933104], ["otlar", -9.399443626403809], ["yozgan", -9.399492263793944], ["indi", -9.40121078491211], ["▁kuchi", -9.402684211730955], ["▁Ikki", -9.40393352508545], ["▁vujud", -9.405370712280272], ["ilgari", -9.405739784240724], ["▁qis", -9.406230926513672], ["▁Ayt", -9.40732192993164], ["▁kiyim", -9.407855033874512], ["▁Er", -9.409086227416992], ["▁video", -9.409261703491213], ["▁An", -9.410778999328612], ["▁tikil", -9.411069869995115], ["▁Unda", -9.411142349243164], ["voz", -9.411361694335938], ["▁shug", -9.411876678466797], ["sk", -9.412464141845703], ["ad", -9.41261100769043], ["▁Eng", -9.413167953491213], ["gar", -9.413373947143556], ["▁char", -9.413673400878906], ["qay", -9.413826942443848], ["▁chega", -9.413959503173828], ["▁reja", -9.41415786743164], ["lida", -9.415422439575195], ["ardim", -9.416067123413086], ["▁Hali", -9.417028427124023], ["▁De", -9.417044639587402], ["▁alla", -9.41784954071045], ["ravish", -9.418001174926758], ["▁noto", -9.4188814163208], ["markaz", -9.42015266418457], ["aqangi", -9.421682357788086], ["▁ijod", -9.42174243927002], ["▁umr", -9.42230224609375], ["▁qiyna", -9.4227933883667], ["lka", -9.422992706298828], ["▁sari", -9.42343807220459], ["▁Ro", -9.423623085021973], ["▁unut", -9.424701690673828], ["▁orzu", -9.42498779296875], ["▁chiz", -9.42567253112793], ["gancha", -9.426310539245604], ["▁xato", -9.42642593383789], ["kan", -9.42773151397705], ["▁imper", -9.42907428741455], ["iyaga", -9.43264389038086], ["ublika", -9.432938575744627], ["kash", -9.433198928833008], ["▁chin", -9.433534622192385], ["quv", -9.43468952178955], ["zimga", -9.435219764709473], ["▁ovozi", -9.436558723449709], ["rinish", -9.436559677124023], ["rnidan", -9.438787460327148], ["▁qurol", -9.439066886901855], ["ment", -9.439318656921388], ["shoh", -9.43997287750244], ["▁arab", -9.440193176269531], ["resurs", -9.440966606140137], ["laymiz", -9.444818496704102], ["sulmon", -9.444986343383787], ["tasvir", -9.444989204406738], ["▁kirdi", -9.446295738220217], ["▁Bosh", -9.446467399597168], ["▁yurit", -9.44742488861084], ["▁xavf", -9.447710990905762], ["▁intil", -9.44772243499756], ["▁qizi", -9.448101043701172], ["▁Ki", -9.448407173156738], ["boyagi", -9.448413848876951], ["▁uyga", -9.44892406463623], ["▁Za", -9.44924545288086], ["jriba", -9.449278831481934], ["▁uyiga", -9.450756072998049], ["▁shoh", -9.451513290405272], ["▁tayin", -9.452750205993652], ["vat", -9.453317642211914], ["almash", -9.454184532165527], ["el", -9.454940795898438], ["miqdor", -9.457403182983398], ["shimiz", -9.457831382751465], ["rgani", -9.458367347717283], ["▁mulk", -9.45913314819336], ["chaqir", -9.460548400878906], ["su", -9.461204528808594], ["Entoni", -9.461274147033691], ["▁Bitta", -9.461275100708008], ["deyish", -9.461382865905762], ["kampir", -9.46178150177002], ["▁salom", -9.46315860748291], ["Sulton", -9.465398788452148], ["ingliz", -9.465591430664062], ["▁Uch", -9.466265678405762], ["▁Mi", -9.466796875], ["▁mayli", -9.467178344726562], ["▁nafas", -9.467923164367676], ["▁omil", -9.470430374145508], ["▁otam", -9.472773551940918], ["Xorazm", -9.473671913146973], ["ltimos", -9.473672866821287], ["▁Jahon", -9.473674774169922], ["ali", -9.474315643310549], ["mga", -9.475903511047363], ["▁telef", -9.476639747619627], ["ladim", -9.476895332336426], ["▁shosh", -9.476921081542969], ["▁etil", -9.47769260406494], ["pe", -9.478228569030762], ["▁soliq", -9.479238510131836], ["ligida", -9.479933738708496], ["oxirgi", -9.480082511901855], ["taril", -9.480138778686523], ["gur", -9.48080825805664], ["▁elchi", -9.481249809265137], ["ajak", -9.481456756591797], ["▁kasb", -9.48154640197754], ["iyatni", -9.482317924499512], ["▁qop", -9.482677459716797], ["▁yotib", -9.482725143432615], ["siyasi", -9.48314094543457], ["xonaga", -9.483153343200684], ["maydon", -9.483617782592772], ["sib", -9.48420238494873], ["▁erkin", -9.48656177520752], ["▁Balki", -9.48792552947998], ["▁Baho", -9.488033294677734], ["ylagan", -9.488080024719238], ["▁olam", -9.48829746246338], ["bul", -9.488848686218262], ["rniga", -9.489055633544922], ["▁Sovet", -9.49044418334961], ["rojaat", -9.490445137023926], ["atda", -9.49239730834961], ["pon", -9.493834495544434], ["▁Gap", -9.494058609008787], ["▁buyur", -9.494726181030272], ["▁Islom", -9.4948148727417], ["ris", -9.49500560760498], ["as", -9.495269775390623], ["▁V", -9.495623588562012], ["ullan", -9.495720863342283], ["lasiz", -9.49582862854004], ["▁Unga", -9.49600601196289], ["▁Sho", -9.49613094329834], ["faqat", -9.496918678283691], ["▁doira", -9.497214317321776], ["aytadi", -9.497222900390623], ["▁ism", -9.498826026916504], ["rug", -9.500483512878418], ["shirin", -9.500617980957031], ["masam", -9.501221656799316], ["xshash", -9.501770973205566], ["ist", -9.502561569213867], ["▁eta", -9.50278377532959], ["▁devon", -9.504168510437012], ["▁pre", -9.505388259887695], ["▁chop", -9.506912231445312], ["sqich", -9.508039474487305], ["▁oldim", -9.509615898132324], ["ligim", -9.510462760925291], ["nggi", -9.510638236999512], ["▁huzur", -9.511811256408691], ["▁ayrim", -9.511829376220703], ["▁ulgur", -9.511857986450195], ["kilot", -9.513099670410156], ["dorlar", -9.514081001281738], ["▁D", -9.515758514404297], ["▁ettir", -9.516101837158203], ["▁kayf", -9.516183853149414], ["shma", -9.516496658325195], ["▁Qay", -9.517570495605469], ["hkam", -9.51863956451416], ["rtta", -9.51952838897705], ["pka", -9.51959991455078], ["▁rasm", -9.520541191101074], ["▁yuk", -9.521273612976074], ["rang", -9.523100852966309], ["qor", -9.52316665649414], ["▁Birin", -9.523850440979004], ["lana", -9.523868560791016], ["dehqon", -9.52487850189209], ["rultoy", -9.525278091430664], ["yurish", -9.525656700134276], ["qabila", -9.52573013305664], ["▁soch", -9.526134490966797], ["qirg", -9.52761936187744], ["▁debdi", -9.527914047241213], ["▁yigir", -9.52912712097168], ["Dildor", -9.52928638458252], ["rom", -9.529539108276367], ["olmadi", -9.5302152633667], ["▁Chi", -9.531344413757324], ["▁maqom", -9.531420707702637], ["odat", -9.531730651855469], ["▁fe", -9.531978607177734], ["▁miya", -9.532052993774414], ["▁kimga", -9.533398628234863], ["rahbar", -9.533648490905762], ["tahlil", -9.533733367919922], ["▁davo", -9.534862518310549], ["ev", -9.53646469116211], ["▁it", -9.537261962890623], ["xonasi", -9.537939071655272], ["▁sovuq", -9.538325309753418], ["▁bino", -9.538558959960938], ["hramon", -9.538885116577148], ["▁xoqon", -9.539215087890623], ["▁gapni", -9.539508819580078], ["atga", -9.54021453857422], ["rganib", -9.540921211242676], ["maqola", -9.54143524169922], ["kuchay", -9.54159927368164], ["ash", -9.541916847229004], ["maxsus", -9.54251480102539], ["ter", -9.542520523071287], ["aversa", -9.542829513549805], ["▁sinf", -9.54307746887207], ["▁Ye", -9.544038772583008], ["cho", -9.54640293121338], ["biiyki", -9.54645538330078], ["▁chol", -9.550688743591309], ["der", -9.55121898651123], ["▁tanga", -9.551448822021484], ["▁Ey", -9.55146312713623], ["▁bit", -9.5516939163208], ["halliy", -9.55255889892578], ["▁usta", -9.552773475646973], ["sekin", -9.552990913391112], ["grafik", -9.554040908813477], ["qot", -9.554327011108398], ["zlash", -9.55499267578125], ["▁tek", -9.555039405822754], ["▁jadid", -9.555980682373049], ["ologik", -9.557579040527344], ["▁Menga", -9.557889938354492], ["▁yasa", -9.558423042297363], ["▁taxt", -9.558517456054688], ["▁olin", -9.559001922607422], ["dod", -9.559041023254396], ["qmi", -9.5594482421875], ["oqibat", -9.559477806091309], ["veradi", -9.559730529785156], ["emalol", -9.560532569885254], ["▁beril", -9.56063747406006], ["skiy", -9.56313419342041], ["je", -9.563323974609377], ["yengil", -9.564061164855955], ["▁milli", -9.565020561218262], ["▁qabr", -9.5653657913208], ["▁rang", -9.565896034240724], ["▁Abu", -9.567867279052734], ["▁Chin", -9.568194389343262], ["▁mayda", -9.568361282348633], ["▁xafa", -9.569890975952148], ["▁non", -9.571096420288086], ["rsa", -9.57127857208252], ["kimdir", -9.571816444396973], ["siri", -9.571868896484377], ["▁pishi", -9.571924209594728], ["▁Cha", -9.573139190673828], ["arajat", -9.57323932647705], ["▁bobo", -9.573453903198242], ["▁hukum", -9.57419490814209], ["▁Baxsh", -9.5742769241333], ["▁Mayli", -9.574296951293944], ["ngra", -9.575222969055176], ["▁qoch", -9.57718276977539], ["▁rozi", -9.578487396240234], ["deyman", -9.578625679016112], ["qar", -9.578633308410645], ["ovchi", -9.57870864868164], ["gen", -9.580297470092772], ["azorat", -9.58151912689209], ["▁ser", -9.581570625305176], ["rar", -9.581645965576172], ["kam", -9.582469940185549], ["rimi", -9.583194732666016], ["▁kino", -9.584552764892578], ["atni", -9.584734916687012], ["Aslida", -9.584806442260742], ["▁fikri", -9.58504867553711], ["▁joyga", -9.58510398864746], ["lisher", -9.586034774780272], ["▁yuv", -9.586481094360352], ["▁In", -9.589780807495115], ["rmagan", -9.59111213684082], ["fe", -9.591262817382812], ["azal", -9.592493057250977], ["▁deyar", -9.592972755432127], ["ok", -9.594913482666016], ["oniy", -9.595817565917969], ["ganida", -9.597397804260254], ["drasa", -9.597527503967283], ["▁Barno", -9.597752571105955], ["yadi", -9.60023021697998], ["htiyoj", -9.601871490478516], ["habbat", -9.602165222167969], ["▁meros", -9.60253620147705], ["▁quloq", -9.60383129119873], ["▁ziyo", -9.604965209960938], ["aj", -9.606130599975586], ["lanma", -9.606396675109863], ["atini", -9.606905937194824], ["manki", -9.607757568359377], ["▁jim", -9.608369827270508], ["forma", -9.608495712280272], ["▁Avval", -9.611091613769531], ["noq", -9.611167907714844], ["onam", -9.611770629882812], ["oyalar", -9.612250328063965], ["fuqaro", -9.616450309753418], ["far", -9.617523193359377], ["▁Botir", -9.617669105529783], ["▁mis", -9.618734359741213], ["▁chal", -9.6189546585083], ["rinda", -9.622444152832031], ["aning", -9.62331771850586], ["andi", -9.62337875366211], ["▁ilk", -9.62348747253418], ["lashka", -9.623686790466309], ["istik", -9.623977661132812], ["▁ifoda", -9.626104354858398], ["sulola", -9.626212120056152], ["▁aql", -9.629663467407228], ["alla", -9.630337715148926], ["Sababi", -9.630952835083008], ["siq", -9.63375186920166], ["rlik", -9.633893013000488], ["kirish", -9.634571075439451], ["▁kulib", -9.636375427246094], ["▁dil", -9.637239456176758], ["tovush", -9.641709327697754], ["takror", -9.642322540283203], ["ana", -9.64249038696289], ["▁Tur", -9.643856048583984], ["▁askar", -9.645684242248535], ["shil", -9.646480560302734], ["rik", -9.646519660949709], ["qaradi", -9.646592140197754], ["▁sarf", -9.647534370422363], ["tam", -9.650375366210938], ["▁aytil", -9.65091037750244], ["ingdek", -9.651678085327148], ["▁Hu", -9.651837348937988], ["▁qolsa", -9.651909828186035], ["▁tun", -9.65207290649414], ["▁adash", -9.653324127197266], ["men", -9.653939247131348], ["▁Axir", -9.655585289001465], ["▁namoy", -9.655842781066896], ["▁Re", -9.656835556030272], ["▁uje", -9.658370018005373], ["aromad", -9.660271644592283], ["hikoya", -9.66061019897461], ["ova", -9.660616874694824], ["quyosh", -9.660755157470703], ["▁Es", -9.661096572875977], ["yonlar", -9.661581993103027], ["tur", -9.662694931030272], ["▁Qani", -9.66272258758545], ["iyani", -9.663269996643066], ["para", -9.664140701293944], ["▁emish", -9.66452407836914], ["▁L", -9.664843559265137], ["▁IELTS", -9.665600776672363], ["▁part", -9.665929794311523], ["▁tuzil", -9.667993545532228], ["▁urib", -9.668423652648926], ["tegish", -9.668830871582031], ["▁Xuro", -9.670655250549316], ["niylar", -9.670998573303224], ["▁aks", -9.672886848449709], ["rinib", -9.673368453979492], ["tirok", -9.674020767211914], ["▁manfa", -9.674453735351562], ["▁tovar", -9.675214767456056], ["arb", -9.675297737121582], ["fon", -9.675423622131348], ["▁pol", -9.675533294677734], ["likdan", -9.675572395324709], ["▁xolos", -9.67573356628418], ["daqiqa", -9.675799369812012], ["darrov", -9.677237510681152], ["▁Mar", -9.678471565246582], ["▁boya", -9.678804397583008], ["▁Yu", -9.679784774780272], ["rjima", -9.680583953857422], ["pir", -9.680742263793944], ["doktor", -9.680871963500977], ["mazmun", -9.680965423583984], ["sional", -9.68433952331543], ["▁Haqiq", -9.686302185058594], ["▁kurs", -9.686457633972168], ["▁yum", -9.687251091003418], ["chman", -9.687895774841309], ["etik", -9.68897533416748], ["▁Ham", -9.689993858337402], ["gisi", -9.690515518188477], ["▁eti", -9.691716194152832], ["toy", -9.691757202148438], ["▁La", -9.694099426269531], ["▁nur", -9.694154739379885], ["tardi", -9.695180892944336], ["ldingi", -9.69566822052002], ["saqlab", -9.69630527496338], ["ajoyib", -9.6963529586792], ["▁temir", -9.6965913772583], ["▁organ", -9.69703769683838], ["▁ishni", -9.697708129882812], ["▁band", -9.701189994812012], ["▁uzun", -9.702271461486816], ["ora", -9.702457427978516], ["jin", -9.702910423278809], ["ying", -9.704253196716309], ["▁desam", -9.704527854919434], ["rvoza", -9.706382751464844], ["zam", -9.707408905029297], ["▁ayb", -9.711313247680664], ["riladi", -9.711544036865234], ["▁El", -9.71161651611328], ["kim", -9.71168327331543], ["▁Ustoz", -9.712007522583008], ["▁baqir", -9.712635040283203], ["▁son", -9.71328830718994], ["nov", -9.71595859527588], ["▁iloji", -9.717293739318848], ["azab", -9.71739673614502], ["ton", -9.718914985656738], ["lmasin", -9.721385955810549], ["Bunday", -9.723501205444336], ["kidla", -9.724135398864746], ["bat", -9.724215507507324], ["▁qarin", -9.72480010986328], ["ruvchi", -9.729193687438965], ["▁vazir", -9.72945499420166], ["tiladi", -9.729503631591797], ["diy", -9.730616569519045], ["ylay", -9.73248291015625], ["▁texno", -9.733338356018066], ["▁asta", -9.734326362609863], ["▁qush", -9.734336853027344], ["▁dar", -9.734460830688477], ["▁tamom", -9.735064506530762], ["▁yurak", -9.735211372375488], ["gun", -9.73553466796875], ["ikki", -9.73557949066162], ["▁aziz", -9.735715866088867], ["▁qilar", -9.737192153930664], ["blag", -9.73747730255127], ["logik", -9.73810577392578], ["vaffaq", -9.738740921020508], ["▁qatna", -9.739106178283691], ["tkazib", -9.739360809326172], ["▁Qozo", -9.739812850952148], ["▁sud", -9.740608215332031], ["tashqi", -9.74102020263672], ["▁geo", -9.741405487060549], ["▁tuga", -9.742307662963867], ["▁balo", -9.742605209350586], ["▁Qaysi", -9.743308067321776], ["▁Ahmad", -9.744175910949709], ["▁chaq", -9.745161056518556], ["▁shahr", -9.746087074279783], ["vol", -9.746246337890623], ["von", -9.746728897094728], ["tamiz", -9.746732711791992], ["▁Fa", -9.746834754943848], ["topish", -9.7471284866333], ["▁Qora", -9.747706413269045], ["▁Ushbu", -9.74964714050293], ["▁duch", -9.75013256072998], ["▁nari", -9.750219345092772], ["kib", -9.75100803375244], ["yapsan", -9.751429557800291], ["metr", -9.754067420959473], ["mtihon", -9.755146026611328], ["▁muhit", -9.75534439086914], ["▁narx", -9.755659103393556], ["yan", -9.75578784942627], ["kov", -9.75655460357666], ["sur", -9.757482528686523], ["lmasam", -9.7601318359375], ["oyi", -9.760631561279297], ["▁arxeo", -9.760660171508787], ["▁Usmon", -9.76067352294922], ["▁osmon", -9.760844230651855], ["ust", -9.761351585388184], ["ullo", -9.761887550354004], ["▁kelsa", -9.76417064666748], ["zak", -9.765472412109377], ["▁Man", -9.765621185302734], ["lashuv", -9.765653610229492], ["rhamat", -9.766257286071776], ["▁Che", -9.766399383544922], ["larkan", -9.767705917358398], ["shdi", -9.768163681030272], ["▁qayna", -9.768229484558104], ["echora", -9.768880844116213], ["rdik", -9.770005226135254], ["rong", -9.77119255065918], ["▁izoh", -9.771807670593262], ["inib", -9.772042274475098], ["▁ayni", -9.77204418182373], ["▁marka", -9.772153854370115], ["asidan", -9.77316951751709], ["shish", -9.77411937713623], ["lsang", -9.774273872375488], ["▁zot", -9.775453567504885], ["▁uyda", -9.775710105895996], ["w", -9.777420043945312], ["jurnal", -9.777681350708008], ["▁idish", -9.777788162231444], ["▁uxla", -9.777827262878418], ["bosh", -9.778556823730469], ["bon", -9.778738021850586], ["biri", -9.779346466064451], ["simlik", -9.77967643737793], ["niyxon", -9.78075885772705], ["▁kamay", -9.781865119934082], ["▁qulo", -9.783212661743164], ["▁bahs", -9.78324031829834], ["rxona", -9.783978462219238], ["ldirib", -9.785158157348633], ["shvish", -9.785266876220703], ["▁asl", -9.786879539489746], ["tarmoq", -9.787412643432615], ["▁xonim", -9.788352012634276], ["hogird", -9.78847885131836], ["▁sovet", -9.788780212402344], ["pincha", -9.78940486907959], ["▁qozoq", -9.78982925415039], ["nglim", -9.791547775268556], ["▁olti", -9.79195785522461], ["shamol", -9.793416023254396], ["▁issiq", -9.79464626312256], ["ssa", -9.79484748840332], ["riy", -9.795964241027832], ["▁oid", -9.79883098602295], ["jarayo", -9.799166679382324], ["Mening", -9.79958152770996], ["yetish", -9.799778938293455], ["▁okean", -9.80043601989746], ["for", -9.800970077514648], ["▁Nu", -9.802550315856934], ["mizdan", -9.803094863891602], ["ge", -9.804079055786133], ["zident", -9.806000709533691], ["adolat", -9.8060302734375], ["▁Xon", -9.80657196044922], ["daryo", -9.807432174682615], ["▁Shoh", -9.808416366577148], ["oyat", -9.80943775177002], ["qilich", -9.810362815856934], ["▁kelma", -9.811443328857422], ["▁tilga", -9.811501502990724], ["▁Aleks", -9.811807632446287], ["▁zarar", -9.81291961669922], ["atli", -9.813189506530762], ["▁Sh", -9.814139366149902], ["▁qizil", -9.81454372406006], ["dov", -9.815979957580566], ["latib", -9.816760063171388], ["assasa", -9.817660331726074], ["▁Qayer", -9.818068504333496], ["▁chap", -9.818406105041504], ["▁Kel", -9.818496704101562], ["qishga", -9.819464683532717], ["gir", -9.819788932800291], ["masjid", -9.821359634399414], ["▁Sha", -9.822046279907228], ["yoti", -9.823392868041992], ["▁ohang", -9.823729515075684], ["iyot", -9.824660301208496], ["vsiya", -9.825393676757812], ["dimi", -9.825511932373049], ["qaruv", -9.825674057006836], ["yashab", -9.827437400817873], ["tuyg", -9.828639030456545], ["▁edik", -9.829052925109863], ["qiyofa", -9.829655647277832], ["qildim", -9.829859733581545], ["▁Bas", -9.830680847167969], ["eshigi", -9.83102321624756], ["▁yopi", -9.833948135375977], ["loh", -9.83414363861084], ["▁saqla", -9.834345817565918], ["▁qirq", -9.835038185119627], ["▁surat", -9.835290908813477], ["Moskva", -9.835409164428713], ["utlaqo", -9.835437774658203], ["German", -9.83547019958496], ["ekilli", -9.83572483062744], ["▁test", -9.836853981018066], ["alati", -9.836958885192873], ["maysiz", -9.838770866394045], ["▁kiy", -9.838858604431152], ["texnik", -9.841435432434082], ["▁qalay", -9.84146213531494], ["▁Inson", -9.84329319000244], ["gim", -9.845083236694336], ["ting", -9.846299171447754], ["▁ushla", -9.846681594848633], ["▁trans", -9.84742832183838], ["chak", -9.848725318908691], ["nab", -9.85200023651123], ["▁yeb", -9.852377891540527], ["doimiy", -9.853338241577148], ["Xullas", -9.85351848602295], ["▁modda", -9.85365104675293], ["▁stol", -9.854454040527344], ["▁radio", -9.854781150817873], ["olog", -9.855560302734377], ["chan", -9.855704307556152], ["▁haqqi", -9.85575008392334], ["▁uchib", -9.856478691101074], ["asanmi", -9.856508255004885], ["tel", -9.856548309326172], ["adimi", -9.857248306274414], ["▁Dunyo", -9.859578132629396], ["Tushun", -9.859610557556152], ["shubha", -9.859929084777832], ["korlar", -9.860063552856444], ["lasan", -9.86029052734375], ["▁taraq", -9.86292839050293], ["▁tuyul", -9.86322021484375], ["▁Li", -9.866426467895508], ["midi", -9.866987228393556], ["mikin", -9.867292404174805], ["▁poy", -9.867431640625], ["▁tutib", -9.867648124694824], ["asta", -9.869032859802246], ["oqqa", -9.870162963867188], ["rildi", -9.870362281799316], ["▁Ich", -9.870512962341309], ["qatlam", -9.871539115905762], ["ruxsat", -9.8718843460083], ["lqin", -9.872050285339355], ["▁hazil", -9.872159957885742], ["kun", -9.872623443603516], ["qochib", -9.873311042785645], ["▁xodim", -9.873351097106934], ["muncha", -9.873666763305664], ["▁bekor", -9.874640464782717], ["▁Qur", -9.8753023147583], ["lmay", -9.876258850097656], ["▁singa", -9.87631130218506], ["ttiz", -9.878225326538086], ["hodisa", -9.878249168395996], ["aniya", -9.879352569580078], ["tsa", -9.881150245666504], ["nosi", -9.881441116333008], ["▁egasi", -9.88305950164795], ["▁jumla", -9.88434600830078], ["gazeta", -9.884350776672363], ["▁shifo", -9.884410858154297], ["shirib", -9.884495735168455], ["lishga", -9.884968757629396], ["ard", -9.885331153869627], ["misiz", -9.886052131652832], ["▁qozon", -9.88634967803955], ["▁Ar", -9.887412071228027], ["▁Katta", -9.890646934509276], ["▁isbot", -9.890647888183594], ["▁joni", -9.89175033569336], ["tura", -9.892346382141112], ["▁jamoa", -9.89238452911377], ["itsiya", -9.892427444458008], ["▁Ali", -9.89284610748291], ["andr", -9.893187522888184], ["▁Said", -9.893689155578612], ["▁qalb", -9.89472198486328], ["bil", -9.894935607910156], ["▁rol", -9.89568042755127], ["▁fors", -9.895702362060549], ["ator", -9.895733833312988], ["navkar", -9.897003173828123], ["▁arava", -9.897025108337402], ["uomala", -9.897174835205078], ["rindi", -9.897680282592772], ["moqqa", -9.897723197937012], ["rosim", -9.897789001464844], ["Barcha", -9.899454116821287], ["▁quvon", -9.900222778320312], ["averdi", -9.901676177978516], ["ppa", -9.90267276763916], ["▁afsus", -9.903332710266112], ["Davlat", -9.903345108032228], ["Umuman", -9.903430938720703], ["fir", -9.90355110168457], ["▁paxta", -9.90452003479004], ["tarzda", -9.904924392700195], ["▁yetak", -9.905190467834473], ["▁dard", -9.906444549560549], ["▁ozod", -9.908199310302734], ["Qanaqa", -9.908655166625977], ["tab", -9.908671379089355], ["htiyot", -9.909749984741213], ["▁ekspe", -9.909750938415527], ["▁Xalq", -9.909847259521484], ["yagona", -9.910850524902344], ["aytish", -9.911584854125977], ["ydim", -9.911665916442873], ["ustida", -9.91223430633545], ["tunlay", -9.914666175842283], ["dingmi", -9.915761947631836], ["▁diniy", -9.915837287902832], ["▁energ", -9.916202545166016], ["janob", -9.916337966918944], ["▁Yigit", -9.916380882263184], ["▁baliq", -9.916573524475098], ["▁qulay", -9.917033195495604], ["▁qavat", -9.917131423950195], ["▁Tosh", -9.919561386108398], ["zon", -9.920156478881836], ["▁kes", -9.920451164245604], ["kiradi", -9.921658515930176], ["▁yashi", -9.92194652557373], ["▁jilma", -9.922264099121094], ["▁Qir", -9.922689437866213], ["▁Aynan", -9.922696113586426], ["qiyot", -9.9236421585083], ["mulk", -9.925159454345703], ["rtinch", -9.926584243774414], ["▁bitir", -9.926657676696776], ["tez", -9.92693328857422], ["uloqot", -9.928050994873049], ["▁olmas", -9.928754806518556], ["▁ulkan", -9.929298400878906], ["▁dala", -9.930895805358888], ["▁foiz", -9.935925483703612], ["▁Mir", -9.936203002929688], ["badiiy", -9.937508583068848], ["shti", -9.937836647033691], ["▁Ins", -9.938311576843262], ["yladi", -9.941153526306152], ["▁sig", -9.941401481628418], ["▁meva", -9.94257926940918], ["▁namoz", -9.942614555358888], ["doston", -9.942687034606934], ["▁pod", -9.942831993103027], ["begi", -9.943133354187012], ["▁Bizda", -9.943756103515623], ["▁ulus", -9.945220947265623], ["mabdi", -9.947957992553713], ["▁Pe", -9.948461532592772], ["odar", -9.948612213134766], ["▁vaqf", -9.949787139892578], ["arobar", -9.951355934143066], ["▁Turon", -9.95171070098877], ["▁Ga", -9.953752517700195], ["xonga", -9.95411205291748], ["▁tub", -9.954668998718262], ["yodgor", -9.955811500549316], ["▁tep", -9.958653450012209], ["▁olov", -9.959295272827148], ["▁Yer", -9.96077823638916], ["▁Nodir", -9.961193084716797], ["▁hissa", -9.96158504486084], ["tse", -9.96199893951416], ["▁quruq", -9.9625883102417], ["qirib", -9.967694282531738], ["rasiz", -9.967927932739258], ["▁qobil", -9.969240188598633], ["▁yeng", -9.969362258911133], ["jiddiy", -9.969365119934082], ["▁psixo", -9.969382286071776], ["qudrat", -9.96938419342041], ["ikkala", -9.969388961791992], ["▁azob", -9.969415664672852], ["▁hayda", -9.969799041748049], ["▁tuta", -9.970251083374023], ["▁Bobo", -9.970344543457031], ["▁topa", -9.972139358520508], ["xonada", -9.972527503967283], ["parcha", -9.97260284423828], ["ldik", -9.974194526672363], ["qol", -9.974669456481934], ["ishtir", -9.976305961608888], ["▁chora", -9.97702693939209], ["rsin", -9.977296829223633], ["biy", -9.977423667907717], ["chkari", -9.977659225463867], ["▁doimo", -9.97951316833496], ["pti", -9.979595184326172], ["obil", -9.979812622070312], ["▁Hay", -9.979830741882324], ["▁Kun", -9.980990409851074], ["▁amr", -9.98209285736084], ["yajon", -9.982461929321287], ["topgan", -9.982471466064451], ["▁hujum", -9.983109474182127], ["rnini", -9.983526229858398], ["▁Aks", -9.98434066772461], ["▁Yapon", -9.984386444091797], ["▁yili", -9.98538303375244], ["▁qalbi", -9.985422134399414], ["▁Zo", -9.985424995422363], ["shira", -9.9858980178833], ["▁Besh", -9.987154960632324], ["ngizmi", -9.987274169921877], ["▁aqlli", -9.988240242004396], ["ttifoq", -9.990065574645996], ["▁alam", -9.99023151397705], ["▁uyqu", -9.99038314819336], ["tmay", -9.992193222045898], ["▁jino", -9.993315696716309], ["sun", -9.994083404541016], ["Qanday", -9.99593448638916], ["labdi", -9.995946884155272], ["▁Bizni", -9.995970726013184], ["rakkab", -9.997062683105469], ["diqqat", -9.997089385986328], ["chilig", -9.997161865234377], ["deraza", -9.997254371643066], ["yuksak", -9.997994422912598], ["avotir", -9.998079299926758], ["▁ijro", -9.999017715454102], ["tezroq", -9.999563217163086], ["yozish", -10.000163078308104], ["bilish", -10.000205039978027], ["ros", -10.000388145446776], ["hayrat", -10.000714302062988], ["yuzaga", -10.00192642211914], ["aytdim", -10.002215385437012], ["▁dadam", -10.003124237060549], ["onta", -10.00388240814209], ["▁gunoh", -10.00408935546875], ["Mahmud", -10.004090309143066], ["▁jazo", -10.0048246383667], ["ngizda", -10.006547927856444], ["▁borki", -10.006895065307615], ["illo", -10.007611274719238], ["illa", -10.007986068725586], ["ket", -10.008255004882812], ["▁qotib", -10.008594512939451], ["shukur", -10.009057998657228], ["▁orada", -10.009295463562012], ["▁yey", -10.00981330871582], ["maktub", -10.011183738708496], ["▁Niho", -10.01119327545166], ["moddiy", -10.01121425628662], ["▁ijodi", -10.01135540008545], ["▁yarmi", -10.011430740356444], ["ishing", -10.011711120605469], ["▁kimsa", -10.011842727661133], ["mand", -10.012200355529783], ["▁Bunga", -10.013020515441896], ["▁akam", -10.013812065124512], ["▁hay", -10.015324592590332], ["▁roman", -10.01937198638916], ["▁shay", -10.020947456359863], ["▁Malik", -10.021768569946287], ["art", -10.02397918701172], ["uvofiq", -10.025529861450195], ["rasmiy", -10.025691032409668], ["he", -10.02576732635498], ["▁kema", -10.027216911315918], ["lya", -10.028119087219238], ["baxsh", -10.029045104980469], ["nchisi", -10.030492782592772], ["▁Yevro", -10.032544136047363], ["▁janub", -10.03276538848877], ["hokama", -10.03278350830078], ["tirar", -10.032791137695312], ["▁ustun", -10.032821655273438], ["▁qimir", -10.03286838531494], ["luq", -10.033203125], ["gizxon", -10.03423023223877], ["▁yozma", -10.03593635559082], ["nta", -10.036395072937012], ["gidek", -10.0371732711792], ["▁oling", -10.03900909423828], ["bor", -10.039193153381348], ["talqin", -10.039222717285156], ["sovg", -10.039802551269531], ["▁Xiva", -10.04007339477539], ["tasdiq", -10.040091514587402], ["▁resp", -10.04012966156006], ["▁uylan", -10.041306495666504], ["▁uyush", -10.041346549987791], ["▁film", -10.041934967041016], ["▁yut", -10.042717933654783], ["▁yumsh", -10.042733192443848], ["uka", -10.043278694152832], ["▁sut", -10.045266151428224], ["▁tuman", -10.045878410339355], ["chiqar", -10.046600341796877], ["battar", -10.048208236694336], ["tanqid", -10.04869556427002], ["▁Zar", -10.048882484436035], ["▁sana", -10.05018424987793], ["taqdim", -10.051114082336426], ["yoqqa", -10.051786422729492], ["▁Kech", -10.052766799926758], ["▁moh", -10.05386734008789], ["mandar", -10.054173469543455], ["▁C", -10.054475784301758], ["!", -10.054824829101562], ["xborot", -10.054824829101562], ["▁qavm", -10.055013656616213], ["▁teri", -10.0550537109375], ["ostida", -10.056097030639648], ["▁ismi", -10.056530952453612], ["komil", -10.056702613830566], ["shlig", -10.057893753051758], ["▁Voy", -10.058610916137695], ["lmasdi", -10.059439659118652], ["▁Gul", -10.060423851013184], ["jaligi", -10.06187629699707], ["▁vodiy", -10.062325477600098], ["nechta", -10.062362670898438], ["▁kashf", -10.062477111816406], ["▁chang", -10.06333827972412], ["zifasi", -10.06375789642334], ["▁Ri", -10.065248489379885], ["harak", -10.06710433959961], ["jalik", -10.067655563354492], ["maysan", -10.06793212890625], ["▁matn", -10.069499969482422], ["▁quy", -10.069533348083496], ["lishdi", -10.069721221923828], ["tagram", -10.069820404052734], ["▁Eh", -10.07028102874756], ["▁hid", -10.070555686950684], ["urxon", -10.07130527496338], ["▁fil", -10.072973251342772], ["▁Qol", -10.074010848999023], ["▁musht", -10.074841499328612], ["▁chida", -10.075075149536133], ["ishar", -10.07508373260498], ["▁torti", -10.076035499572754], ["▁hunar", -10.077384948730469], ["qurun", -10.077397346496582], ["Qarang", -10.07791233062744], ["▁ellik", -10.078458786010742], ["labki", -10.078717231750488], ["▁tugat", -10.079426765441896], ["ternet", -10.080020904541016], ["yozadi", -10.08126449584961], ["birini", -10.08189582824707], ["ber", -10.082944869995115], ["laylik", -10.084161758422852], ["▁Vo", -10.08419418334961], ["garlik", -10.08524227142334], ["namuna", -10.085421562194824], ["▁jins", -10.087990760803224], ["ler", -10.088679313659668], ["ketish", -10.089885711669922], ["bering", -10.09008502960205], ["radim", -10.09083366394043], ["▁tong", -10.091019630432127], ["anglab", -10.092357635498049], ["▁qirol", -10.092780113220217], ["Afrika", -10.092801094055176], ["llaxon", -10.09300708770752], ["▁buyum", -10.093101501464844], ["▁chor", -10.093262672424316], ["▁nar", -10.094364166259766], ["shkin", -10.094888687133787], ["▁rosa", -10.095025062561035], ["falsaf", -10.095203399658203], ["ichiga", -10.09521770477295], ["▁buzil", -10.098644256591797], ["ziyoli", -10.09927463531494], ["qoldim", -10.09994411468506], ["▁xudo", -10.10049819946289], ["▁isloh", -10.100630760192873], ["lub", -10.10069751739502], ["▁farqi", -10.100994110107422], ["parvar", -10.101065635681152], ["yladim", -10.101366996765137], ["▁duo", -10.10252857208252], ["▁Karim", -10.102776527404783], ["▁Yur", -10.102996826171877], ["▁Yosh", -10.104076385498049], ["aqobat", -10.104554176330566], ["tuproq", -10.105039596557615], ["▁ilg", -10.106106758117676], ["▁yetar", -10.107507705688477], ["▁Balx", -10.108470916748049], ["▁vafot", -10.108575820922852], ["▁sivi", -10.10936164855957], ["linib", -10.109855651855469], ["yov", -10.112287521362305], ["simon", -10.11547565460205], ["▁obraz", -10.116293907165527], ["▁nigoh", -10.118549346923828], ["▁bas", -10.119796752929688], ["▁oyim", -10.11990451812744], ["▁yurdi", -10.120243072509766], ["lug", -10.12143325805664], ["▁qayno", -10.121566772460938], ["rpa", -10.121696472167969], ["xshayd", -10.121967315673828], ["turish", -10.122987747192385], ["▁bet", -10.12364387512207], ["terial", -10.12412929534912], ["▁ajab", -10.124208450317385], ["▁bosdi", -10.12434196472168], ["oriya", -10.124507904052734], ["▁Nazar", -10.125508308410645], ["ltanat", -10.125651359558104], ["nikiga", -10.125964164733888], ["▁Par", -10.126519203186035], ["▁Frans", -10.127161979675291], ["stona", -10.127198219299316], ["Nigora", -10.12796401977539], ["bilmay", -10.128701210021973], ["▁Ayol", -10.132457733154297], ["▁kanal", -10.132579803466797], ["▁fakt", -10.133463859558104], ["kirgan", -10.134173393249512], ["▁qari", -10.134735107421877], ["shxona", -10.135374069213867], ["▁Jon", -10.136146545410156], ["tiril", -10.137158393859863], ["▁qizig", -10.137629508972168], ["arbiy", -10.1378755569458], ["▁ikkov", -10.138986587524414], ["▁tiz", -10.139055252075195], ["▁komp", -10.14088535308838], ["begona", -10.141322135925291], ["samara", -10.141528129577637], ["rav", -10.142383575439451], ["horat", -10.143132209777832], ["tekis", -10.144464492797852], ["ysizmi", -10.146576881408691], ["Rahmat", -10.148286819458008], ["▁ketma", -10.148429870605469], ["▁Sharq", -10.148726463317873], ["▁sohil", -10.148829460144045], ["rtaga", -10.148955345153809], ["▁domla", -10.149169921875], ["tirma", -10.149765968322754], ["lasa", -10.149856567382812], ["▁ochdi", -10.15025520324707], ["▁urin", -10.150506973266602], ["▁qovur", -10.151612281799316], ["▁tip", -10.152174949645996], ["qoq", -10.152339935302734], ["▁Yig", -10.153064727783203], ["▁Hi", -10.153427124023438], ["ysun", -10.155284881591797], ["▁Bunda", -10.160320281982422], ["▁bel", -10.16109848022461], ["▁bersa", -10.16213607788086], ["▁bolam", -10.164410591125488], ["bassum", -10.164738655090332], ["yulduz", -10.164738655090332], ["Barlos", -10.164752006530762], ["chchiq", -10.16486358642578], ["▁Tan", -10.165203094482422], ["▁Yangi", -10.165300369262695], ["A", -10.165422439575195], ["▁Uchin", -10.165440559387209], ["▁Suv", -10.166219711303713], ["▁urf", -10.16622257232666], ["▁urish", -10.166461944580078], ["tkir", -10.167558670043944], ["▁Shah", -10.16777229309082], ["imoliy", -10.16954517364502], ["▁Aka", -10.171205520629885], ["matik", -10.171464920043944], ["▁aqli", -10.173020362854004], ["▁Resp", -10.17308235168457], ["▁firqa", -10.173115730285645], ["▁ahli", -10.17338752746582], ["ovul", -10.174077987670898], ["kapita", -10.174137115478516], ["doq", -10.174257278442385], ["shimol", -10.174386978149414], ["▁sodda", -10.174397468566896], ["shanga", -10.17462921142578], ["musiqa", -10.175479888916016], ["shilib", -10.177206993103027], ["lizat", -10.178197860717772], ["hirjon", -10.17861557006836], ["ilayot", -10.179275512695312], ["▁orol", -10.179655075073242], ["eniya", -10.180147171020508], ["quchoq", -10.181159019470217], ["lement", -10.181957244873049], ["bbiyot", -10.182343482971191], ["H", -10.183358192443848], ["zingni", -10.183599472045898], ["▁kom", -10.183932304382324], ["zgarib", -10.185133934020996], ["uvdi", -10.185283660888672], ["▁sira", -10.186684608459473], ["xtab", -10.188750267028809], ["▁Jalol", -10.190046310424805], ["zilib", -10.190104484558104], ["▁joriy", -10.191361427307127], ["▁real", -10.19260025024414], ["fan", -10.192853927612305], ["▁kutil", -10.195536613464355], ["▁saf", -10.195717811584473], ["iyaviy", -10.196433067321776], ["▁Otam", -10.197668075561523], ["beshta", -10.197762489318848], ["▁Janub", -10.19849681854248], ["buyruq", -10.198508262634276], ["▁Tojik", -10.198508262634276], ["ntent", -10.198837280273438], ["▁qurib", -10.199397087097168], ["ndaki", -10.200960159301758], ["misan", -10.201574325561523], ["katta", -10.201807975769045], ["xtat", -10.201842308044434], ["manzil", -10.203435897827148], ["Oradan", -10.207049369812012], ["mansub", -10.20712184906006], ["▁piyoz", -10.207125663757324], ["fkura", -10.207204818725586], ["▁sabr", -10.207406044006348], ["▁kez", -10.2077054977417], ["▁yiqil", -10.209269523620604], ["▁Soli", -10.209957122802734], ["▁tomir", -10.211193084716797], ["tdim", -10.211606979370115], ["qolish", -10.211769104003906], ["▁xun", -10.212973594665527], ["ster", -10.214103698730469], ["mikan", -10.214362144470217], ["prik", -10.215689659118652], ["elektr", -10.215816497802734], ["▁oppoq", -10.21581745147705], ["▁iqlim", -10.215846061706545], ["ljal", -10.21584701538086], ["yaman", -10.218209266662598], ["▁chu", -10.219548225402832], ["▁haqda", -10.221132278442385], ["▁Ket", -10.22429370880127], ["▁unvon", -10.22469425201416], ["mansab", -10.22474765777588], ["rva", -10.225797653198242], ["▁Ch", -10.226133346557615], ["▁avtom", -10.227063179016112], ["ishora", -10.229140281677246], ["▁singl", -10.229251861572266], ["ahzoda", -10.231395721435549], ["xil", -10.231863021850586], ["kengay", -10.232751846313477], ["invest", -10.233500480651855], ["▁qizar", -10.233981132507324], ["qiymat", -10.234225273132324], ["rohat", -10.235742568969728], ["▁yech", -10.237247467041016], ["▁qizim", -10.237343788146973], ["▁dah", -10.238551139831545], ["▁ildiz", -10.239113807678224], ["ashula", -10.24008083343506], ["ajakda", -10.240355491638184], ["▁kak", -10.240934371948242], ["sma", -10.241202354431152], ["▁Til", -10.24236297607422], ["▁mazza", -10.24246883392334], ["▁suyak", -10.242613792419434], ["▁obro", -10.242837905883787], ["ifikat", -10.243171691894531], ["ce", -10.243647575378418], ["rnat", -10.243951797485352], ["natdor", -10.244097709655762], ["polvon", -10.244564056396484], ["▁yakun", -10.245070457458496], ["▁Dar", -10.245793342590332], ["▁milit", -10.247904777526855], ["qtisod", -10.24814510345459], ["rkan", -10.248385429382324], ["▁Kecha", -10.250406265258787], ["▁funk", -10.25137424468994], ["piyola", -10.251380920410156], ["▁Tarix", -10.251387596130373], ["ezovta", -10.25141716003418], ["▁tabib", -10.251848220825195], ["mahkam", -10.25234317779541], ["lomjon", -10.252693176269531], ["▁qutul", -10.253326416015623], ["▁Pul", -10.254233360290527], ["▁Dadam", -10.25573444366455], ["▁qutqa", -10.256141662597656], ["▁omma", -10.25755500793457], ["▁Hayot", -10.25802516937256], ["▁Boy", -10.258748054504396], ["▁Imom", -10.260483741760254], ["▁ketar", -10.2615385055542], ["ulloh", -10.261683464050291], ["shibdi", -10.261924743652344], ["armiya", -10.262463569641112], ["▁uzr", -10.262480735778809], ["doy", -10.262767791748049], ["▁lavo", -10.262767791748049], ["riant", -10.263175010681152], ["▁qich", -10.263484954833984], ["▁rivo", -10.264034271240234], ["▁esla", -10.265829086303713], ["chiroq", -10.266149520874023], ["▁dona", -10.266212463378906], ["▁bayon", -10.267558097839355], ["▁holi", -10.26788330078125], ["▁yorit", -10.268220901489258], ["lohaza", -10.269660949707031], ["▁Oltin", -10.269793510437012], ["illat", -10.270419120788574], ["rqib", -10.270438194274902], ["she", -10.27049732208252], ["moyil", -10.2706880569458], ["▁Zaur", -10.270761489868164], ["siteti", -10.270777702331545], ["▁aksin", -10.271720886230469], ["rinadi", -10.271811485290527], ["▁ichim", -10.272114753723145], ["hrat", -10.27401638031006], ["▁Bar", -10.274089813232422], ["▁bosq", -10.275415420532228], ["payib", -10.275609970092772], ["ashkar", -10.277305603027344], ["▁nu", -10.277965545654297], ["▁keksa", -10.27890682220459], ["▁xorij", -10.278911590576172], ["sistem", -10.278931617736816], ["Badiya", -10.280146598815918], ["▁Umar", -10.28033447265625], ["tosh", -10.281410217285156], ["▁Yuz", -10.283021926879885], ["▁amaki", -10.284393310546877], ["▁Butun", -10.286885261535645], ["olmas", -10.287059783935549], ["▁zona", -10.287707328796388], ["▁Xotin", -10.288110733032228], ["▁uslub", -10.288259506225586], ["fursat", -10.288260459899902], ["ustafo", -10.288285255432127], ["aksiya", -10.288287162780762], ["▁zavod", -10.288300514221191], ["▁teatr", -10.288434982299805], ["norozi", -10.2884521484375], ["▁Ulug", -10.289910316467283], ["▁uzat", -10.290112495422363], ["▁uxlab", -10.290270805358888], ["bobo", -10.290631294250488], ["Qancha", -10.291757583618164], ["▁St", -10.292327880859377], ["▁ichib", -10.292802810668944], ["▁ilon", -10.293197631835938], ["qildik", -10.297004699707031], ["▁Ubayd", -10.297679901123049], ["baho", -10.298568725585938], ["terik", -10.298974990844728], ["roz", -10.299636840820312], ["ushkul", -10.30134391784668], ["rdu", -10.301414489746094], ["▁Ju", -10.301531791687012], ["▁arzi", -10.301573753356934], ["▁termi", -10.303272247314451], ["▁Du", -10.303961753845217], ["qina", -10.305612564086914], ["▁Kar", -10.305981636047363], ["rovul", -10.30735969543457], ["▁hind", -10.30738353729248], ["prosta", -10.307610511779783], ["▁Oldin", -10.307778358459473], ["shisha", -10.30836582183838], ["ayotga", -10.308520317077637], ["kariga", -10.30868434906006], ["Tursun", -10.309012413024902], ["tizimi", -10.310773849487305], ["karvon", -10.311031341552734], ["Shahar", -10.31222915649414], ["R", -10.312294006347656], ["htimol", -10.312945365905762], ["▁tarzi", -10.313151359558104], ["garchi", -10.313628196716309], ["▁aroq", -10.315783500671388], ["mashg", -10.316394805908203], ["▁Qodir", -10.316537857055664], ["▁maqta", -10.316753387451172], ["▁yutuq", -10.316858291625977], ["analar", -10.316889762878418], ["▁nozik", -10.316925048828123], ["▁xoh", -10.316949844360352], ["▁Yaqin", -10.3169527053833], ["yxat", -10.317729949951172], ["darhol", -10.317824363708496], ["hat", -10.318132400512695], ["▁Bozor", -10.318353652954102], ["xminan", -10.318379402160645], ["▁tayan", -10.318669319152832], ["taqsim", -10.31867504119873], ["▁qut", -10.319621086120604], ["stim", -10.320239067077637], ["▁desak", -10.32024097442627], ["▁qalin", -10.32066535949707], ["troq", -10.320714950561523], ["taman", -10.321781158447266], ["▁yomg", -10.322762489318848], ["▁maqol", -10.324970245361328], ["ynab", -10.325029373168944], ["▁Lo", -10.3260498046875], ["▁nufuz", -10.32652473449707], ["alaba", -10.329131126403809], ["▁Angl", -10.330978393554688], ["▁umri", -10.331284523010254], ["▁kamba", -10.331486701965332], ["tariqa", -10.331832885742188], ["rnim", -10.333121299743652], ["yechim", -10.333292961120604], ["▁kuldi", -10.334718704223633], ["qaddas", -10.336328506469728], ["Kushon", -10.336448669433594], ["▁model", -10.336485862731934], ["Nurali", -10.33663845062256], ["rakter", -10.337443351745604], ["baxtli", -10.338346481323242], ["fessor", -10.338523864746094], ["ntagi", -10.340339660644531], ["▁ketsa", -10.340971946716309], ["▁Meh", -10.341885566711426], ["ner", -10.34242820739746], ["▁isti", -10.342658996582031], ["stirib", -10.344685554504396], ["zahoti", -10.346247673034668], ["▁axir", -10.346258163452148], ["▁nusxa", -10.346290588378906], ["▁Pi", -10.346949577331545], ["tiring", -10.346952438354492], ["rquv", -10.347038269042969], ["▁Hoji", -10.347127914428713], ["tirjam", -10.34781551361084], ["▁Ayni", -10.34860610961914], ["▁kalla", -10.34910488128662], ["▁rangi", -10.349393844604492], ["▁qalam", -10.351699829101562], ["alomat", -10.351766586303713], ["▁sariq", -10.352530479431152], ["ertaga", -10.352740287780762], ["▁Qadim", -10.353181838989258], ["▁raz", -10.353575706481934], ["avvalo", -10.354326248168944], ["stav", -10.355663299560549], ["▁Shayx", -10.35625457763672], ["▁kenga", -10.356626510620115], ["▁burun", -10.356630325317385], ["▁nashr", -10.35665225982666], ["▁pasay", -10.357381820678713], ["▁aksar", -10.35771942138672], ["Y", -10.357848167419434], ["▁bosim", -10.359821319580078], ["qqi", -10.360061645507812], ["amimiy", -10.360896110534668], ["lur", -10.361048698425291], ["ibodat", -10.361495971679688], ["▁targ", -10.36170482635498], ["S", -10.361735343933104], ["akkur", -10.365562438964844], ["ishloq", -10.365736961364746], ["▁tuxum", -10.366331100463867], ["lassik", -10.366333961486816], ["shivir", -10.366350173950195], ["ijobiy", -10.36638069152832], ["▁tojik", -10.366382598876951], ["sulton", -10.366440773010254], ["sanoat", -10.367369651794434], ["▁falon", -10.368059158325195], ["lgach", -10.370253562927246], ["sov", -10.370553016662598], ["rishta", -10.373047828674316], ["aqiqat", -10.37376594543457], ["▁eslat", -10.37583065032959], ["ukofot", -10.376596450805664], ["▁Buyuk", -10.376633644104004], ["▁havas", -10.37679672241211], ["▁zum", -10.377795219421388], ["▁mard", -10.378790855407717], ["▁bemor", -10.378887176513672], ["ergash", -10.379928588867188], ["▁Ameri", -10.379952430725098], ["bilmas", -10.382451057434082], ["ren", -10.384195327758787], ["▁suy", -10.385440826416016], ["▁Rumiy", -10.386852264404297], ["▁Petr", -10.386962890625], ["ntegr", -10.387178421020508], ["pyuter", -10.387676239013672], ["▁motiv", -10.388113975524902], ["▁pas", -10.39028549194336], ["itet", -10.391119003295898], ["qotib", -10.391339302062988], ["▁bank", -10.39179229736328], ["xtadi", -10.39249038696289], ["tkazil", -10.393263816833496], ["▁kesib", -10.393627166748049], ["qima", -10.39589500427246], ["chekka", -10.395977973937988], ["Natija", -10.397293090820312], ["▁qanot", -10.397516250610352], ["tiqod", -10.39764404296875], ["hribon", -10.397838592529297], ["▁Eldor", -10.398022651672363], ["tervyu", -10.398088455200195], ["▁Vasil", -10.398218154907228], ["savash", -10.398228645324709], ["▁hush", -10.398359298706056], ["ajagi", -10.39927101135254], ["Mehnat", -10.399755477905272], ["burg", -10.400636672973633], ["shanba", -10.401556015014648], ["lasak", -10.40175724029541], ["jayin", -10.401970863342283], ["xotira", -10.4039888381958], ["▁Sher", -10.406143188476562], ["▁asra", -10.407651901245115], ["bayjon", -10.40780544281006], ["kammal", -10.40781593322754], ["▁yalpi", -10.407829284667969], ["Qachon", -10.407940864562988], ["Nazira", -10.408269882202148], ["▁Vaqt", -10.408491134643556], ["sening", -10.409344673156738], ["matika", -10.409732818603516], ["joy", -10.41137409210205], ["keskin", -10.411666870117188], ["▁Ve", -10.412224769592283], ["salbiy", -10.413772583007812], ["M", -10.415610313415527], ["qnash", -10.415786743164062], ["bashar", -10.415790557861328], ["adabiy", -10.417509078979492], ["▁Aziz", -10.418197631835938], ["znaviy", -10.418743133544922], ["pishib", -10.420053482055664], ["▁jiyan", -10.420337677001951], ["▁parda", -10.421605110168455], ["▁shod", -10.422304153442385], ["▁sep", -10.422759056091309], ["tiroz", -10.422775268554688], ["▁pok", -10.42351245880127], ["▁soqol", -10.424431800842283], ["▁tiq", -10.425512313842772], ["pada", -10.425545692443848], ["llanil", -10.426102638244627], ["net", -10.428346633911133], ["▁bahor", -10.42836093902588], ["▁Uzoq", -10.429408073425291], ["▁kommu", -10.429753303527832], ["▁qayd", -10.43215274810791], ["▁derdi", -10.435070037841797], ["let", -10.435144424438477], ["afqat", -10.435376167297363], ["▁kulgi", -10.435751914978027], ["mpaniy", -10.43682098388672], ["▁lahza", -10.440048217773438], ["▁sahna", -10.440056800842283], ["htaram", -10.440058708190918], ["▁nerv", -10.440146446228027], ["▁kaft", -10.44032096862793], ["tinkov", -10.44037914276123], ["▁jil", -10.440556526184082], ["fakkur", -10.441009521484377], ["nafrat", -10.442914962768556], ["nuqtai", -10.444080352783203], ["▁uyal", -10.446141242980955], ["ulixon", -10.446877479553224], ["qiydi", -10.447107315063477], ["obod", -10.44746208190918], ["▁qum", -10.448176383972168], ["▁ertak", -10.450451850891112], ["utube", -10.451038360595703], ["▁raqam", -10.451068878173828], ["afsona", -10.451099395751951], ["chorva", -10.451386451721191], ["narigi", -10.451608657836914], ["▁nasib", -10.452360153198242], ["▁oziq", -10.452712059020996], ["▁qarz", -10.453058242797852], ["▁ojiz", -10.453097343444824], ["rtog", -10.45444107055664], ["▁Iqti", -10.45494556427002], ["▁Shi", -10.45535659790039], ["uallif", -10.455687522888184], ["oyasi", -10.455766677856444], ["vaziga", -10.45712184906006], ["rektor", -10.457688331604004], ["▁burch", -10.458709716796877], ["deysiz", -10.462143898010254], ["▁ajdod", -10.46216106414795], ["▁obuna", -10.462252616882324], ["▁sub", -10.463452339172363], ["ekshir", -10.464455604553224], ["xonlik", -10.46548080444336], ["▁tus", -10.466348648071287], ["yuradi", -10.466733932495115], ["shdik", -10.46714210510254], ["▁hissi", -10.46733856201172], ["▁makon", -10.467623710632324], ["Mehmon", -10.46805477142334], ["bahona", -10.469707489013672], ["ronlik", -10.469807624816896], ["hol", -10.471489906311035], ["▁yonim", -10.47177028656006], ["rtidan", -10.472015380859377], ["tarish", -10.472704887390137], ["▁jalb", -10.473410606384276], ["zgarti", -10.473944664001465], ["▁usuli", -10.474462509155272], ["kamroq", -10.474724769592283], ["masang", -10.477466583251951], ["▁dum", -10.477869033813477], ["▁Biroz", -10.478968620300291], ["▁dasht", -10.479371070861816], ["rafiya", -10.482525825500488], ["▁Kon", -10.482528686523438], ["tagida", -10.483118057250977], ["ensiya", -10.484371185302734], ["mamnun", -10.484749794006348], ["▁Misr", -10.484811782836914], ["▁zulm", -10.484870910644531], ["tibbiy", -10.485404014587402], ["▁tinim", -10.485498428344728], ["rilish", -10.486797332763672], ["shrif", -10.487762451171877], ["▁xotir", -10.488505363464355], ["movchi", -10.489583015441896], ["▁rahm", -10.490355491638184], ["Taxmin", -10.490541458129885], ["lanar", -10.491642951965332], ["▁tanla", -10.493329048156738], ["▁pish", -10.493819236755373], ["shan", -10.493833541870115], ["yillik", -10.495136260986328], ["urur", -10.495268821716309], ["▁urg", -10.495680809020996], ["krak", -10.495861053466797], ["▁tre", -10.496211051940918], ["▁idora", -10.49666690826416], ["▁San", -10.497588157653809], ["uayyan", -10.498153686523438], ["▁Sobir", -10.498706817626951], ["▁Jaku", -10.498977661132812], ["osfera", -10.499135971069336], ["olanki", -10.499460220336914], ["laysiz", -10.499723434448242], ["ymizmi", -10.500837326049805], ["urchak", -10.503135681152344], ["ineral", -10.503206253051758], ["ofat", -10.504996299743652], ["▁Esh", -10.505346298217772], ["jamoat", -10.50541877746582], ["zolari", -10.505680084228516], ["▁tuya", -10.507102012634276], ["yberdi", -10.507894515991213], ["▁zahar", -10.507929801940918], ["abbus", -10.50797176361084], ["▁Ru", -10.511466979980469], ["rifat", -10.513433456420898], ["▁hayd", -10.514158248901367], ["▁yurti", -10.51483154296875], ["▁ikkal", -10.514851570129396], ["▁yutib", -10.515654563903809], ["shahri", -10.515827178955078], ["rsatki", -10.516735076904297], ["W", -10.519634246826172], ["▁izzat", -10.51968479156494], ["eskari", -10.51981258392334], ["▁kuyov", -10.52171230316162], ["▁Vah", -10.52220344543457], ["haydab", -10.522421836853027], ["▁xatti", -10.522748947143556], ["▁Kam", -10.523223876953123], ["▁Qiziq", -10.524014472961426], ["graf", -10.525187492370604], ["▁Olloh", -10.525300979614258], ["▁yopiq", -10.525760650634766], ["▁kiyib", -10.525961875915527], ["▁mif", -10.527217864990234], ["roqqa", -10.531399726867676], ["▁brend", -10.531594276428224], ["xarita", -10.531737327575684], ["▁firma", -10.53207302093506], ["ikoyat", -10.532660484313965], ["▁gram", -10.533273696899414], ["qurbon", -10.53368091583252], ["▁jism", -10.534082412719728], ["▁kiyin", -10.535449981689451], ["yevich", -10.536527633666992], ["▁Boya", -10.537498474121094], ["▁surib", -10.537796020507812], ["▁Jin", -10.539643287658691], ["ravon", -10.542474746704102], ["▁Tinch", -10.543586730957031], ["▁Zulfi", -10.543588638305664], ["vahima", -10.545133590698242], ["▁zarba", -10.545278549194336], ["▁aslo", -10.547329902648926], ["▁xarid", -10.547860145568848], ["▁Ben", -10.549446105957031], ["▁uzil", -10.54944896697998], ["▁qiyos", -10.551634788513184], ["naltir", -10.552473068237305], ["▁sindi", -10.555203437805176], ["▁oxir", -10.555458068847656], ["▁insho", -10.55583953857422], ["▁tulki", -10.55583953857422], ["▁tovuq", -10.555967330932615], ["▁raqib", -10.557090759277344], ["ayrat", -10.55830192565918], ["▁pozit", -10.560123443603516], ["taxmin", -10.560537338256836], ["▁chto", -10.560688018798828], ["▁rais", -10.561596870422363], ["▁sevgi", -10.565043449401855], ["▁iliq", -10.566503524780272], ["Fitrat", -10.56813144683838], ["▁Ivan", -10.568280220031738], ["xazina", -10.568289756774902], ["shabin", -10.56932258605957], ["pichoq", -10.569377899169922], ["▁Oyim", -10.569491386413574], ["tashla", -10.570390701293944], ["▁Sir", -10.572450637817385], ["uvchan", -10.572749137878418], ["atoy", -10.572932243347168], ["▁zira", -10.573075294494627], ["▁Hasan", -10.574777603149414], ["murod", -10.577441215515137], ["muhtoj", -10.58062744140625], ["▁Ziyod", -10.580629348754885], ["Asosiy", -10.580632209777832], ["▁Oddiy", -10.580638885498049], ["Bahrom", -10.580644607543944], ["▁mikro", -10.580674171447754], ["▁zavq", -10.580682754516602], ["▁odob", -10.581473350524902], ["▁asal", -10.581714630126951], ["▁migra", -10.582326889038086], ["tgach", -10.584060668945312], ["▁jahli", -10.584282875061035], ["xur", -10.590239524841309], ["hshat", -10.590561866760254], ["▁Kesh", -10.590575218200684], ["nost", -10.592507362365724], ["▁guvoh", -10.593286514282228], ["▁zerik", -10.59328842163086], ["▁juft", -10.593291282653809], ["▁audit", -10.593531608581545], ["▁sadoq", -10.593811988830566], ["kragi", -10.594918251037598], ["▁anti", -10.59880828857422], ["▁str", -10.598880767822266], ["▁vot", -10.599365234375], ["chodir", -10.599672317504885], ["▁otliq", -10.600951194763184], ["ovqat", -10.60134983062744], ["shatli", -10.601446151733398], ["▁Darh", -10.601899147033691], ["D", -10.602033615112305], ["kkan", -10.603717803955078], ["▁haj", -10.603862762451172], ["mokrat", -10.60460090637207], ["▁norma", -10.605319023132324], ["▁ezgu", -10.606114387512209], ["▁ahmoq", -10.606305122375488], ["▁barpo", -10.606847763061523], ["▁sotsi", -10.606860160827637], ["▁Biror", -10.606900215148926], ["▁chayq", -10.607271194458008], ["▁naqsh", -10.607285499572754], ["▁achin", -10.608059883117676], ["▁ekin", -10.610600471496582], ["lpon", -10.611361503601074], ["▁fond", -10.611519813537598], ["sel", -10.612255096435549], ["balkim", -10.612269401550291], ["reklam", -10.615572929382324], ["▁Abbos", -10.61909294128418], ["▁arxiv", -10.619093894958496], ["▁Nahot", -10.619099617004396], ["xalifa", -10.61914348602295], ["▁Xayr", -10.619317054748535], ["▁jigar", -10.61936855316162], ["yopish", -10.619966506958008], ["uvdim", -10.620094299316406], ["▁Zamon", -10.620250701904297], ["Odatda", -10.620682716369627], ["▁massa", -10.621039390563965], ["mondon", -10.621159553527832], ["▁Le", -10.621696472167969], ["▁sport", -10.62257480621338], ["ambar", -10.62539291381836], ["▁Buxor", -10.625429153442385], ["▁ukasi", -10.626166343688965], ["mlaka", -10.62925910949707], ["▁sohib", -10.630061149597168], ["▁rad", -10.630434036254885], ["▁qamal", -10.631091117858888], ["barmoq", -10.63169002532959], ["▁noyob", -10.632266998291016], ["miqyos", -10.632268905639648], ["mazkur", -10.63227653503418], ["tirof", -10.632278442382812], ["▁kadr", -10.632344245910645], ["Kolumb", -10.632379531860352], ["▁faxr", -10.632431030273438], ["▁shox", -10.63243293762207], ["▁sayoh", -10.632474899291992], ["▁toifa", -10.63247776031494], ["▁Brit", -10.632546424865724], ["▁Muso", -10.632611274719238], ["▁xamir", -10.632916450500488], ["▁sezib", -10.633832931518556], ["ketdim", -10.635525703430176], ["kunduz", -10.63621711730957], ["▁strat", -10.63651180267334], ["tsion", -10.637643814086914], ["▁yakka", -10.639668464660645], ["olti", -10.641339302062988], ["▁She", -10.641780853271484], ["mmaviy", -10.642260551452637], ["▁irg", -10.64228057861328], ["demik", -10.644820213317873], ["ilaviy", -10.6448392868042], ["onchli", -10.645333290100098], ["▁nemis", -10.645615577697754], ["▁agent", -10.645642280578612], ["chehra", -10.645709037780762], ["rqaror", -10.645868301391602], ["▁Shams", -10.64615249633789], ["▁mashq", -10.646388053894045], ["sharaf", -10.646873474121094], ["vtobus", -10.647100448608398], ["▁Orqa", -10.647113800048828], ["rsatuv", -10.64727783203125], ["▁Solih", -10.65038013458252], ["vachch", -10.65085220336914], ["alizm", -10.652176856994627], ["▁umum", -10.65329933166504], ["▁Rama", -10.653693199157717], ["alniy", -10.654358863830566], ["hammom", -10.65493392944336], ["qurish", -10.65553092956543], ["tagiga", -10.657114028930664], ["▁etmoq", -10.657275199890137], ["ssalom", -10.657638549804688], ["kechir", -10.658517837524414], ["hofaza", -10.659097671508787], ["xullas", -10.659159660339355], ["▁arzon", -10.65947151184082], ["▁qasr", -10.659932136535645], ["▁stand", -10.660137176513672], ["▁suyan", -10.663566589355469], ["ruza", -10.664596557617188], ["▁diplo", -10.665779113769531], ["▁manza", -10.6665620803833], ["farmon", -10.667783737182615], ["istika", -10.668638229370115], ["▁ste", -10.67147159576416], ["lyozma", -10.672796249389648], ["janjal", -10.672797203063965], ["▁Nizom", -10.672797203063965], ["▁Afsus", -10.672800064086914], ["Milliy", -10.672802925109863], ["▁afzal", -10.672806739807127], ["▁Genri", -10.672807693481444], ["▁nutq", -10.672846794128418], ["▁plan", -10.673095703125], ["ijolat", -10.673334121704102], ["▁Lyu", -10.6748046875], ["▁Kelin", -10.674943923950195], ["qoshiq", -10.679396629333496], ["▁Oila", -10.67961883544922], ["▁sert", -10.679903030395508], ["nihoya", -10.6799955368042], ["sherik", -10.68222999572754], ["I", -10.684815406799316], ["▁ukam", -10.686182022094728], ["▁Oxiri", -10.686691284179688], ["▁hojat", -10.686748504638672], ["▁ayvon", -10.686800956726074], ["▁xiyon", -10.68687343597412], ["▁Fayz", -10.687013626098633], ["Yuqori", -10.68725299835205], ["▁hajmi", -10.68877124786377], ["▁eshak", -10.689122200012209], ["antiya", -10.690037727355955], ["▁nizo", -10.69065284729004], ["▁Pro", -10.690914154052734], ["urtazo", -10.692015647888184], ["gareta", -10.692721366882324], ["▁kilo", -10.693015098571776], ["▁halok", -10.693387985229492], ["mental", -10.696569442749023], ["tadqiq", -10.698266983032228], ["▁Yusuf", -10.700769424438477], ["majlis", -10.701029777526855], ["▁xolis", -10.701370239257812], ["ambor", -10.701431274414062], ["▁Shosh", -10.701671600341797], ["▁Stiv", -10.701772689819336], ["▁halol", -10.702054023742676], ["uddin", -10.702610969543455], ["▁atama", -10.70303726196289], ["muriy", -10.705488204956056], ["tirmas", -10.706232070922852], ["sioner", -10.707199096679688], ["▁avto", -10.709844589233398], ["roitda", -10.715022087097168], ["global", -10.715068817138672], ["▁ranji", -10.71507740020752], ["eneral", -10.71508502960205], ["jannat", -10.715093612670898], ["sarkar", -10.715496063232422], ["▁janr", -10.71552276611328], ["▁parvo", -10.71682071685791], ["▁ovora", -10.717368125915527], ["alaqit", -10.71755313873291], ["Qoraxo", -10.7177152633667], ["yalang", -10.717771530151367], ["tanlov", -10.718062400817873], ["▁naf", -10.722479820251465], ["oralig", -10.726544380187988], ["▁beka", -10.727538108825684], ["malika", -10.72849178314209], ["bzavot", -10.729548454284668], ["unnahr", -10.729548454284668], ["▁mavqe", -10.729549407958984], ["▁insof", -10.729555130004885], ["▁xitoy", -10.729559898376465], ["▁kutub", -10.72956085205078], ["▁Saroy", -10.729597091674805], ["▁avj", -10.729765892028809], ["▁banda", -10.729907035827637], ["Kampir", -10.73123836517334], ["▁nafar", -10.731731414794922], ["▁Amu", -10.732019424438477], ["▁sigir", -10.732050895690918], ["oyijon", -10.732399940490724], ["qarasa", -10.733569145202637], ["qisman", -10.734127044677734], ["▁zamin", -10.734862327575684], ["aytsam", -10.738165855407717], ["▁loy", -10.73923110961914], ["nimdek", -10.740622520446776], ["profes", -10.740989685058594], ["keldim", -10.742894172668455], ["venuto", -10.744254112243652], ["gavhar", -10.744256973266602], ["Hurmat", -10.744307518005373], ["Ikkala", -10.745220184326172], ["▁Eshit", -10.74547004699707], ["▁sheva", -10.74733543395996], ["▁xonad", -10.747466087341309], ["vayron", -10.747603416442873], ["sakrab", -10.748519897460938], ["haykal", -10.748533248901367], ["▁bayt", -10.750195503234863], ["▁ravo", -10.750499725341797], ["shmand", -10.752333641052246], ["nishon", -10.755197525024414], ["inchoq", -10.75542449951172], ["kultet", -10.759180068969728], ["keragi", -10.759511947631836], ["hayton", -10.759614944458008], ["rinsip", -10.759757041931152], ["toshka", -10.760849952697754], ["▁iymon", -10.760976791381836], ["▁Anavi", -10.761271476745604], ["▁Chu", -10.761384963989258], ["oyoq", -10.761878967285156], ["oydin", -10.763161659240724], ["yumush", -10.763460159301758], ["ayotib", -10.763660430908203], ["amaliy", -10.763727188110352], ["iyosiy", -10.763838768005373], ["vering", -10.765591621398926], ["▁ibora", -10.766069412231444], ["▁jonim", -10.766300201416016], ["lakay", -10.769281387329102], ["▁Ming", -10.771462440490724], ["▁tark", -10.772465705871582], ["rqma", -10.772841453552246], ["▁fojia", -10.774334907531738], ["sahifa", -10.774341583251951], ["rotaba", -10.77434539794922], ["▁mexan", -10.774367332458496], ["▁Yetti", -10.77440357208252], ["▁Eshik", -10.774789810180664], ["ferens", -10.774845123291016], ["toriya", -10.775181770324709], ["▁silki", -10.775463104248049], ["▁etagi", -10.776540756225586], ["▁palon", -10.776552200317385], ["kumush", -10.777813911437988], ["P", -10.779173851013184], ["televi", -10.781129837036133], ["tafsil", -10.781479835510254], ["ltirab", -10.781566619873049], ["▁qahr", -10.78311252593994], ["taqasi", -10.783524513244627], ["tarxon", -10.78359031677246], ["▁Dush", -10.785051345825195], ["▁tele", -10.787607192993164], ["▁echki", -10.78980827331543], ["bayram", -10.78996467590332], ["▁taolo", -10.79018497467041], ["tabaqa", -10.790213584899902], ["iqti", -10.790515899658203], ["▁Narz", -10.790549278259276], ["▁saloh", -10.790583610534668], ["yotqiz", -10.7906494140625], ["▁ahd", -10.791502952575684], ["onopol", -10.79189395904541], ["▁sodiq", -10.792622566223145], ["Keling", -10.794034004211426], ["▁dalil", -10.794447898864746], ["xatar", -10.796351432800291], ["▁quyib", -10.80449104309082], ["▁hujra", -10.805340766906738], ["ntropo", -10.80534553527832], ["Ismoil", -10.805368423461914], ["Farhod", -10.805381774902344], ["nushta", -10.805384635925291], ["Maktab", -10.80539608001709], ["▁iljay", -10.80542278289795], ["ujayra", -10.805550575256348], ["▁iroda", -10.805563926696776], ["▁sezil", -10.807051658630373], ["jayev", -10.807165145874023], ["normal", -10.808541297912598], ["▁qoyil", -10.810317039489746], ["qaytdi", -10.810790061950684], ["▁inter", -10.81643772125244], ["malaka", -10.81652545928955], ["▁arbob", -10.821124076843262], ["▁stud", -10.821205139160156], ["▁Egam", -10.821215629577637], ["mavsum", -10.821216583251951], ["▁Yahyo", -10.821228981018066], ["▁sahro", -10.821233749389648], ["▁nohaq", -10.821381568908691], ["▁siqil", -10.821438789367676], ["▁etnik", -10.82151699066162], ["umaloq", -10.8265962600708], ["eograf", -10.829686164855955], ["aybdor", -10.82984733581543], ["kentda", -10.830160140991213], ["chopar", -10.833227157592772], ["▁titra", -10.83404541015625], ["baraka", -10.834075927734377], ["▁shov", -10.834234237670898], ["hovqin", -10.835362434387209], ["▁zarb", -10.836210250854492], ["▁Akmal", -10.8373441696167], ["▁Zavur", -10.83735179901123], ["alayhi", -10.837417602539062], ["▁zaif", -10.837458610534668], ["intell", -10.837822914123535], ["ysanmi", -10.838078498840332], ["mushuk", -10.838335990905762], ["gramma", -10.838830947875977], ["akadem", -10.8389892578125], ["tobora", -10.839540481567385], ["Yuragi", -10.840205192565918], ["▁olol", -10.840518951416016], ["▁Sing", -10.84210205078125], ["▁buvim", -10.842283248901367], ["▁sanab", -10.842580795288086], ["▁Rost", -10.843661308288574], ["xabar", -10.845791816711426], ["dollar", -10.84658432006836], ["Kimdir", -10.84802532196045], ["aravar", -10.849102973937988], ["▁Rus", -10.850397109985352], ["sayt", -10.850909233093262], ["uktura", -10.852614402770996], ["xohish", -10.85329818725586], ["▁Atrof", -10.853736877441406], ["vvoyi", -10.853816032409668], ["yaqqol", -10.853910446166992], ["daftar", -10.853944778442385], ["teriya", -10.85407543182373], ["atsion", -10.854565620422363], ["oyqaro", -10.854832649230955], ["▁Viz", -10.855623245239258], ["deniya", -10.85709285736084], ["berdim", -10.858475685119627], ["asihat", -10.860018730163574], ["egiya", -10.8607816696167], ["▁zimma", -10.861993789672852], ["rnatil", -10.865412712097168], ["▁Geo", -10.866260528564451], ["▁ulamo", -10.869688034057615], ["bunyod", -10.870412826538086], ["kalavr", -10.870412826538086], ["▁yunon", -10.87043285369873], ["Mabodo", -10.870448112487791], ["▁silji", -10.870468139648438], ["kushon", -10.870481491088867], ["▁Jorj", -10.870485305786133], ["▁chekk", -10.87052059173584], ["▁ijara", -10.870553970336914], ["▁hazm", -10.87067985534668], ["▁gavda", -10.870704650878906], ["Hazrat", -10.870710372924805], ["▁taqiq", -10.870741844177246], ["▁eftal", -10.871042251586914], ["▁quvib", -10.871108055114746], ["tutgan", -10.871224403381348], ["▁hayol", -10.87179470062256], ["▁Hakim", -10.872220039367676], ["▁kelgu", -10.873666763305664], ["K", -10.882987022399902], ["layver", -10.885859489440918], ["araz", -10.886445045471191], ["ajjub", -10.88735294342041], ["▁Dubay", -10.887354850769045], ["▁Rahim", -10.88736629486084], ["▁Erkak", -10.887372016906738], ["muxlis", -10.88737964630127], ["▁suyuq", -10.887389183044434], ["olzarb", -10.887537002563477], ["▁ariza", -10.887579917907717], ["sotiq", -10.88769245147705], ["tudent", -10.88792324066162], ["alolat", -10.888192176818848], ["▁arqon", -10.889245986938477], ["▁jur", -10.89025592803955], ["esimga", -10.893831253051758], ["oltita", -10.894930839538574], ["yurtma", -10.898826599121094], ["▁Salom", -10.900348663330078], ["stakan", -10.901020050048828], ["topadi", -10.902670860290527], ["▁Xusus", -10.904592514038086], ["▁plyus", -10.904600143432615], ["logger", -10.904603958129885], ["▁nikoh", -10.904620170593262], ["storan", -10.904682159423828], ["oqshom", -10.904730796813965], ["▁qutil", -10.904831886291504], ["▁siymo", -10.904956817626951], ["▁mezon", -10.905851364135742], ["afandi", -10.906362533569336], ["surish", -10.910889625549316], ["ichesk", -10.914284706115724], ["qimli", -10.916316986083984], ["▁Opa", -10.918730735778809], ["kamtar", -10.919392585754396], ["▁asab", -10.921547889709473], ["Suhbat", -10.92214584350586], ["▁savob", -10.922158241271973], ["▁unsur", -10.92222499847412], ["Prosta", -10.922256469726562], ["▁xunuk", -10.922386169433594], ["yorqin", -10.922468185424805], ["qamrab", -10.92249584197998], ["guruch", -10.922585487365724], ["vlono", -10.92259120941162], ["palik", -10.922688484191896], ["Movaro", -10.922799110412598], ["▁jilov", -10.923227310180664], ["▁sinov", -10.923508644104004], ["shidov", -10.923905372619627], ["▁Volga", -10.92440128326416], ["langto", -10.92530918121338], ["yuziga", -10.925322532653809], ["oshkor", -10.926311492919922], ["▁Umid", -10.929795265197754], ["arvesh", -10.930832862854004], ["▁Nigor", -10.93127155303955], ["aktika", -10.932123184204102], ["▁Onam", -10.934279441833496], ["▁yotoq", -10.93729019165039], ["chopib", -10.939684867858888], ["Koreya", -10.939998626708984], ["▁asbob", -10.940001487731934], ["ulomov", -10.940004348754885], ["vidual", -10.940067291259766], ["▁Bedil", -10.940142631530762], ["▁Baxt", -10.94018268585205], ["qillik", -10.94020175933838], ["masofa", -10.940221786499023], ["sodif", -10.940406799316406], ["havkat", -10.940563201904297], ["riniso", -10.94062042236328], ["azovor", -10.940673828125], ["▁Kerak", -10.94080638885498], ["▁libos", -10.941021919250488], ["▁Ibn", -10.94118309020996], ["shtaha", -10.94227123260498], ["tegori", -10.94316577911377], ["▁yalt", -10.949809074401855], ["bundoq", -10.953081130981444], ["ketin", -10.953838348388672], ["tursin", -10.956303596496582], ["▁AQSH", -10.958176612854004], ["reotip", -10.958178520202637], ["▁sukut", -10.958199501037598], ["Doktor", -10.958209037780762], ["▁muzey", -10.958212852478027], ["▁sobiq", -10.95828628540039], ["▁xarob", -10.958410263061523], ["itamin", -10.95879077911377], ["ntgeno", -10.959057807922363], ["ushka", -10.959182739257812], ["▁bitik", -10.959354400634766], ["▁maosh", -10.959376335144045], ["▁tuzuk", -10.959887504577637], ["yashil", -10.961200714111328], ["ndijon", -10.962105751037598], ["taqsir", -10.962181091308594], ["Maqsud", -10.966687202453612], ["diplom", -10.96766471862793], ["tortdi", -10.972990036010742], ["amakim", -10.973673820495604], ["yechib", -10.97563362121582], ["▁Zero", -10.976698875427246], ["▁ilhom", -10.976701736450195], ["Zavrak", -10.97670555114746], ["▁Rajab", -10.976707458496094], ["zanjir", -10.976728439331056], ["konsep", -10.97673225402832], ["▁zabt", -10.976759910583496], ["▁ideal", -10.97688102722168], ["▁jabr", -10.976946830749512], ["nstruk", -10.977002143859863], ["osiyob", -10.977036476135254], ["dugona", -10.97724437713623], ["▁Xohla", -10.977743148803713], ["▁muall", -10.977767944335938], ["ilohiy", -10.977781295776367], ["▁qirra", -10.978031158447266], ["oytaxt", -10.978034973144531], ["dargoh", -10.978752136230469], ["▁negiz", -10.978797912597656], ["▁Onasi", -10.979660034179688], ["tekkan", -10.980393409729004], ["titrab", -10.981491088867188], ["tomchi", -10.982298851013184], ["▁daxl", -10.985072135925291], ["▁ayir", -10.98707389831543], ["▁eslay", -10.993117332458496], ["tropik", -10.995563507080078], ["vijdon", -10.995564460754396], ["hikmat", -10.99556827545166], ["▁hadya", -10.995580673217772], ["arxit", -10.995616912841797], ["▁Hovli", -10.995635032653809], ["muxtor", -10.99569606781006], ["nozara", -10.995704650878906], ["hiddat", -10.995879173278809], ["▁qaddi", -10.996652603149414], ["Qarshi", -10.996681213378906], ["axshon", -10.996816635131836], ["market", -10.99724006652832], ["bayroq", -10.99821949005127], ["Qurbon", -11.00085735321045], ["▁Umr", -11.002561569213867], ["bersin", -11.002689361572266], ["▁qazil", -11.004149436950684], ["qomat", -11.005411148071287], ["obatga", -11.006665229797363], ["haqqat", -11.007915496826172], ["▁tupro", -11.013381004333496], ["▁tiqil", -11.013707160949709], ["▁payqa", -11.014604568481444], ["kredit", -11.014793395996094], ["xtisos", -11.01479434967041], ["▁sipoh", -11.014803886413574], ["Dehqon", -11.01480770111084], ["▁xalta", -11.014846801757812], ["muskul", -11.014888763427734], ["▁poten", -11.014899253845217], ["skanio", -11.014906883239746], ["ssurot", -11.014918327331545], ["▁Najm", -11.014985084533691], ["▁Murod", -11.01503086090088], ["▁kiyik", -11.015578269958496], ["▁qasd", -11.01605987548828], ["▁karav", -11.016142845153809], ["rahmon", -11.016172409057615], ["kitob", -11.016274452209473], ["▁kalit", -11.016347885131836], ["▁tizza", -11.016639709472656], ["▁Qashq", -11.016887664794922], ["eruniy", -11.019538879394531], ["avohir", -11.02353858947754], ["▁Shart", -11.024110794067385], ["yektiv", -11.02550983428955], ["hamroh", -11.02638339996338], ["uzatdi", -11.0266752243042], ["saviya", -11.0317964553833], ["▁barmo", -11.034306526184082], ["▁Avstr", -11.034401893615724], ["▁havza", -11.034409523010254], ["▁immun", -11.034423828125], ["tavsif", -11.034454345703123], ["▁ustod", -11.034459114074709], ["tanbul", -11.03449249267578], ["▁ombor", -11.034664154052734], ["serial", -11.034889221191406], ["▁ball", -11.03494644165039], ["B", -11.125526428222656], ["C", -11.246724128723145], ["N", -11.35066032409668], ["O", -11.385790824890137], ["G", -11.41629695892334], ["V", -11.417716026306152], ["F", -11.511634826660156], ["L", -11.701116561889648], ["X", -12.222638130187988], ["J", -12.457508087158203], ["U", -12.645819664001465], ["E", -14.474843978881836], ["Q", -14.47494411468506], ["T", -14.47504425048828], ["Z", -14.47504425048828]], "byte_fallback": true}} \ No newline at end of file diff --git a/edge/voices/f1.bin b/edge/voices/f1.bin new file mode 100644 index 0000000000000000000000000000000000000000..9c8c9a1ca5e63c40256282cd69470a2182509fca --- /dev/null +++ b/edge/voices/f1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:194afc40c3242ba672fde4913fef68379db53ef2ad7a7ec6321f4cac93fc7668 +size 266240 diff --git a/edge/voices/f1.npy b/edge/voices/f1.npy new file mode 100644 index 0000000000000000000000000000000000000000..e0e32f94f3c0d898546c1a0d9eb9086d131e6e20 --- /dev/null +++ b/edge/voices/f1.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c7bf3300cfb3bb68f44bf3ce48e9e25f242ef12297e37fd7995b81b6218c618 +size 266368 diff --git a/edge/voices/m1.bin b/edge/voices/m1.bin new file mode 100644 index 0000000000000000000000000000000000000000..ac4eb643381faeae92f5ae168abc16ffb9af8134 --- /dev/null +++ b/edge/voices/m1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0414c245e37d8a03d8a4a797485aad28a7b02cb88b915cdbaf42be923f7b759 +size 266240 diff --git a/edge/voices/m1.npy b/edge/voices/m1.npy new file mode 100644 index 0000000000000000000000000000000000000000..ef91e51cfe13de5570ff3a504e09de5508543bf2 --- /dev/null +++ b/edge/voices/m1.npy @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc537c2437aa55c56f1f60bcacfdaa5b99131d64a201362292aa65d0d73d1833 +size 266368 diff --git a/examples/angry_customer.mp3 b/examples/angry_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..0aef8fb5e4213eae85ebccc23c491c5a5d8dc1c0 Binary files /dev/null and b/examples/angry_customer.mp3 differ diff --git a/examples/code.mp3 b/examples/code.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..1e9ea3c3de817aa93e40827a2c841a3ab4a972a3 --- /dev/null +++ b/examples/code.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2916b59c01bf4f23c7c1259a5e3d9680e48950c6e30cd03896af97af00e5315 +size 174861 diff --git a/examples/delay_apology.mp3 b/examples/delay_apology.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..5ae92abe260e66fe2cb772ac1bbe59152e879764 --- /dev/null +++ b/examples/delay_apology.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45ef0410bed12010aa18395762e2087a06099be4d309f5054b86f74b135db01b +size 102861 diff --git a/examples/elderly_customer.mp3 b/examples/elderly_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..4fe95b2aa85bfadc88a618c22d3808e1a6e8c56a --- /dev/null +++ b/examples/elderly_customer.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22f48c6a7c1f65acdaba0d444b04ca3b9dd372be62c7910aff43da35c836f98b +size 164205 diff --git a/examples/english_assistant.mp3 b/examples/english_assistant.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..b57828e5e5afeb995ba18998fb0f7805f3723fcf --- /dev/null +++ b/examples/english_assistant.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba8ef0075b07ac57ddf9cdeb398c1076b24622d8632f1ab804da0446983bdca3 +size 125901 diff --git a/examples/english_formal.mp3 b/examples/english_formal.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..829d59c632d9f59898e32dfc38ef7db1568e1f26 --- /dev/null +++ b/examples/english_formal.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80e05c913e530e60d274a080ac8cb484b5115c317f6ce82ab62bc564c23991e4 +size 137421 diff --git a/examples/english_operator.mp3 b/examples/english_operator.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..87a8e41230464f0467c4f245512fcd91f5e739d4 --- /dev/null +++ b/examples/english_operator.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b9eaea2185733f2f977ccb635366f12087490a743bc19ba0a993f63dcf9f069 +size 113517 diff --git a/examples/english_words.mp3 b/examples/english_words.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..b84d7d634f8a671e9864618148b1917d40b0fc51 Binary files /dev/null and b/examples/english_words.mp3 differ diff --git a/examples/examples.jsonl b/examples/examples.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..19fd61d57324109f6a5dd4daf2feae914f428bbd --- /dev/null +++ b/examples/examples.jsonl @@ -0,0 +1,29 @@ +{"audio": "narrator_book.mp3", "voice": "f1", "role": "narrator", "manner": "book", "text": "Kuzning salqin oqshomida hovlidagi keksa o'rik daraxti ostiga sarg'aygan yaproqlar unsiz to'kilardi. Dilshod ayvon ustuniga suyangan ko'yi uzoqlarga termularkan, ko'ksida anchadan beri tinchlik bermayotgan ajib bir sog'inch uyg'ondi. Shu payt ichkaridan onasining mayin qadam tovushlari eshitildi va u o'g'lining yelkasiga iliq ro'mol tashlab qo'ydi. \"Havo sovib qoldi, bolam, uyga kira qol,\" dedi onasi past ovozda. Bu oddiy so'zlardan yigitning ko'ngli yorishib, atrofdagi kuzgi g'amginlik bir zumda tarqab ketgandek bo'ldi."} +{"audio": "narrator_article.mp3", "voice": "m1", "role": "narrator", "manner": "article", "text": "Inson xotirasi shunchaki o'tmishdagi voqealarni saqlaydigan ombor emas, balki muntazam yangilanib turadigan murakkab va tirik tizimdir. Biz tunda chuqur uyquga ketganimizda, miyamiz kunduzi olingan son-sanoqsiz ma'lumotlarni saralab, eng muhimlarini uzoq muddatli xotiraga ko'chiradi. Agar odam yetti yoki sakkiz soat to'yib uxlamasa, bu tabiiy jarayon izdan chiqib, diqqatni jamlash qiyinlashadi. Shuning uchun ham yangi bilimlarni mustahkamlashda sokin va sifatli dam olish xuddi mutolaa qilish kabi katta ahamiyatga ega."} +{"audio": "narrator_news.mp3", "voice": "m1", "role": "narrator", "manner": "news", "text": "Bugun erta tongda Ko'ksoy vodiysining tog'oldi hududlarida joylashgan ikkita qishloqni bog'lovchi yangi ko'prik foydalanishga topshirildi. Uzunligi sakson besh metr bo'lgan ushbu mustahkam inshoot bahorgi sel paytida qatnov uzilib qolishi muammosiga butunlay chek qo'yadi. Qurilish ishlari olti oy davom etib, unda mahalliy ustalar va muhandislar faol ishtirok etishdi. Kelasi haftadan boshlab mazkur yo'nalish bo'ylab kuniga o'n ikkita jamoat transporti qatnovi yo'lga qo'yilishi rejalashtirilgan. Hozirda yo'l chetlariga tungi yoritish chiroqlarini o'rnatish ishlari yakunlanmoqda."} +{"audio": "narrator_tale.mp3", "voice": "f1", "role": "narrator", "manner": "tale", "text": "Bir bor ekan, bir yo'q ekan, qadim zamonda keng o'rmon chekkasida mittigina oq quyoncha yashagan ekan. U har kuni tong saharda uyg'onib, maysalar ustidagi shudring tomchilarini tomosha qilishni juda yaxshi ko'rar ekan. Kunlarning birida quyoncha eski chinor kovagidan taralayotgan oltindek mayin yog'duni ko'rib, hayratdan qotib qolibdi. Sekingina yaqinlashib qarasa, kovak ichida qanotlari kumushdek tovlanadigan jajji bir kapalak shirin qo'shiq kuylab o'tirgan ekan. Quyoncha bunday mo'jizani birinchi marta ko'rgani uchun quvonchdan quloqlarini dikkaytirib, sehrli ohangga mahliyo bo'libdi."} +{"audio": "english_operator.mp3", "voice": "m1", "role": "operator", "manner": "brisk", "text": "Assalomu alaykum, siz Namuna qo'llab-quvvatlash markaziga bog'landingiz. Sizning CRM profilingizda Apple Pay hamda PayPal orqali o'tkazilgan uchta to'lov muvaffaqiyatli tasdiqlangan."} +{"audio": "english_assistant.mp3", "voice": "f1", "role": "assistant", "manner": "warm", "text": "Safaringiz oldidan telefoningizda eSIM sozlamalarini yoqib qo'ydim. Aeroportda online check-in qilish va begona yozuvlarni Google Lens orqali o'qish juda qulay."} +{"audio": "english_formal.mp3", "voice": "m1", "role": "assistant_formal", "manner": "neutral", "text": "IELTS imtihoniga tayyorlanish bo'yicha barcha vazifalarni ertangi deadline tugaguncha topshirishingiz so'raladi. O'qituvchilar har bir tinglovchiga batafsil feedback yozib qoldiradilar."} +{"audio": "english_words.mp3", "voice": "m1", "role": "operator", "manner": "brisk", "text": "To'lovni Payme yoki Click orqali online o'tkazsangiz, CRM tizimida ko'rinadi, keyin Telegram guruhda feedback qoldirarsiz."} +{"audio": "serious_operator.mp3", "voice": "m1", "role": "operator", "manner": "serious", "text": "Hurmatli mijoz, Namuna xavfsizlik qoidalariga binoan maxfiy tasdiqlash kodini hech kimga aytmang. Shartnoma bo'yicha to'lov muddati ikki kundan keyin yakunlanadi."} +{"audio": "serious_assistant.mp3", "voice": "f1", "role": "assistant_formal", "manner": "serious", "text": "Diqqat, bugun havo harorati qirq darajagacha ko'tarilishi kutilmoqda. Quyosh tig'ida uzoq yurmaslikni va kun davomida ko'proq toza suv ichishni unutmang."} +{"audio": "pace_normal.mp3", "voice": "f1", "role": "operator", "manner": "neutral", "text": "Buyurtmangiz Namuna omboridan yo'lga chiqdi va ikki soat ichida manzilingizga yetkaziladi. Kuryer yetib borishidan o'n besh daqiqa oldin qo'ng'iroq qiladi."} +{"audio": "pace_slow.mp3", "voice": "f1", "role": "operator", "manner": "neutral", "pace": "slow", "text": "Buyurtmangiz Namuna omboridan yo'lga chiqdi va ikki soat ichida manzilingizga yetkaziladi. Kuryer yetib borishidan o'n besh daqiqa oldin qo'ng'iroq qiladi."} +{"audio": "pace_fast.mp3", "voice": "f1", "role": "operator", "manner": "neutral", "pace": "fast", "text": "Buyurtmangiz Namuna omboridan yo'lga chiqdi va ikki soat ichida manzilingizga yetkaziladi. Kuryer yetib borishidan o'n besh daqiqa oldin qo'ng'iroq qiladi."} +{"audio": "greeting.mp3", "voice": "f1", "role": "assistant", "manner": "warm", "text": "Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?"} +{"audio": "greeting_hesitant.mp3", "voice": "f1", "role": "assistant", "manner": "warm", "hesitant": true, "text": "Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?"} +{"audio": "greeting_formal.mp3", "voice": "f1", "role": "assistant_formal", "manner": "warm", "text": "Assalomu alaykum! Namuna kompaniyasining virtual yordamchisiman, sizga qanday yordam bera olaman?"} +{"audio": "good_news.mp3", "voice": "m1", "role": "assistant", "manner": "cheerful", "text": "Ajoyib yangilik, buyurtmangiz bugun kechgacha yetib boradi [laugh], kuryerimiz allaqachon yo'lga chiqqan!"} +{"audio": "payment_worry.mp3", "voice": "f1", "role": "assistant", "manner": "soothing", "text": "Hech xavotir olmang, kartangizdan yechilgan pul yo'qolmaydi, hoziroq tekshirib muammoni hal qilib beramiz."} +{"audio": "offer.mp3", "voice": "m1", "role": "operator", "manner": "persuasive", "text": "Bugun obunani rasmiylashtirsangiz, birinchi oy uchun to'liq ellik foiz chegirma beriladi, imkoniyatni qo'ldan boy bermang."} +{"audio": "code.mp3", "voice": "f1", "role": "operator", "manner": "dictation", "text": "Tasdiqlash kodini yozib oling: to'rt, yetti, ikki, to'qqiz, nol, besh. Tayyor bo'lsangiz, davom etamiz."} +{"audio": "delay_apology.mp3", "voice": "f1", "role": "operator", "manner": "empathetic", "text": "Yetkazib berish kechikkani uchun chin dildan uzr so'rayman [pause], hozir ombor bilan bog'lanib, aniq vaqtini aytaman."} +{"audio": "angry_customer.mp3", "voice": "m1", "role": "emotional", "manner": "angry", "text": "Nimaga kartamdan pulni ikki marta yechib oldinglar? Yarim soatdan beri telefon qilaman, hech kim ko'tarmaydi-ku!"} +{"audio": "sad_customer.mp3", "voice": "f1", "role": "emotional", "manner": "upset", "text": "Oyimning tug'ilgan kuniga sovg'a buyurtma qilgandim, [sigh] vaqtida olib kelmadinglar, rosa xafa bo'ldim to'g'risi."} +{"audio": "irritated_customer.mp3", "voice": "m1", "role": "emotional", "manner": "irritated", "text": "Kuryeringiz ikki soatdan beri yetib kelmayapti, [sigh] issiq ovqatim muzlab qoldi-ku, buyurtmani hoziroq bekor qilinglar!"} +{"audio": "worried_customer.mp3", "voice": "f1", "role": "emotional", "manner": "worried", "text": "Kartamdan hozirgina uch million so'm o'z-o'zidan yechilib ketdi, [breath] iltimos, uni tezroq bloklab qo'yinglar, juda qo'rqib ketyapman!"} +{"audio": "sceptical_customer.mp3", "voice": "f1", "role": "emotional", "manner": "sceptical", "text": "Namuna do'konidagi bu kir yuvish mashinasi rostdan ham sifatlimi, [pause] yoki ikki haftada buzilib qoladigan arzon molmi?"} +{"audio": "joking_customer.mp3", "voice": "m1", "role": "emotional", "manner": "joking", "text": "To'yxonangizga uch yuzta mehmon sig'adi degandingiz, [laugh] bu kichkina zalda qudalar bir-birining tizzasida o'tirib osh yeydimi endi?"} +{"audio": "grateful_customer.mp3", "voice": "f1", "role": "emotional", "manner": "grateful", "text": "Kechasi o'g'limning isitmasi chiqqanda shifokoringiz tez yetib kelib yordam berdi, klinika jamoasiga ming rahmat, baraka topinglar!"} +{"audio": "elderly_customer.mp3", "voice": "m1", "role": "emotional", "manner": "elderly", "text": "Bolam, ko'zim xiraroq ko'radi, [pause] shu elektr hisoblagichning raqamlarini senga sekin o'qib bersam, o'zing to'lovini yozib qo'yasanmi?"} diff --git a/examples/good_news.mp3 b/examples/good_news.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..d1480e7ba91f390270d3b8ac102baffc4fcacf24 Binary files /dev/null and b/examples/good_news.mp3 differ diff --git a/examples/grateful_customer.mp3 b/examples/grateful_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..61eff7300951d917afc6822ebad9d9011eff9a77 --- /dev/null +++ b/examples/grateful_customer.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c94d19b2b8a22674948dbdb773a3ff22ac0984daae779e48f2ab80b45f6d75c +size 104589 diff --git a/examples/greeting.mp3 b/examples/greeting.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..4b43f85b11654ecd6b0d0eeb749f384681fcc2fc Binary files /dev/null and b/examples/greeting.mp3 differ diff --git a/examples/greeting_formal.mp3 b/examples/greeting_formal.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..76208b9cbde88e82737d427748e25b271e4e8712 Binary files /dev/null and b/examples/greeting_formal.mp3 differ diff --git a/examples/greeting_hesitant.mp3 b/examples/greeting_hesitant.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..d97fa1c5f49a4ad2fa7ee759add98b4c0ee4f0f7 Binary files /dev/null and b/examples/greeting_hesitant.mp3 differ diff --git a/examples/irritated_customer.mp3 b/examples/irritated_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..02b26b2e662d2f51a1c40f5253414fdcfacf82f0 Binary files /dev/null and b/examples/irritated_customer.mp3 differ diff --git a/examples/joking_customer.mp3 b/examples/joking_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..84c9523a813488f99775ac32ce6f893fd47c48f9 --- /dev/null +++ b/examples/joking_customer.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2510a126de3c5b7607e915d83ae9aaf3a77c7ab8718b4aeabf230e64598cbd9d +size 105741 diff --git a/examples/narrator_article.mp3 b/examples/narrator_article.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..fc8afb85c2083793619757c52edb2064cfc8ec50 --- /dev/null +++ b/examples/narrator_article.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c91ce6e4e75040e3c4ecec055077f1a3a39435ae95d7a1715d2e285c22514950 +size 448749 diff --git a/examples/narrator_book.mp3 b/examples/narrator_book.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..c98d026cbe161ff04ba693fb48956f4a9c95841d --- /dev/null +++ b/examples/narrator_book.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:910fbe6405c67b42441d30009e1895f2966c4e945e89a2843b2b867550985cdf +size 493677 diff --git a/examples/narrator_news.mp3 b/examples/narrator_news.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..c51f3e1ff35cd3806ca233c8cd0fba8aea53eef6 --- /dev/null +++ b/examples/narrator_news.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a896bce06d7b3c53b2fb54f6af845a80cefd66a67ee6e2090f25f94755b4a5f9 +size 381357 diff --git a/examples/narrator_tale.mp3 b/examples/narrator_tale.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..82b2f524f720f3006842ee729294d5e1d44d57e8 --- /dev/null +++ b/examples/narrator_tale.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:419a9808ba7c90b5478dc60eee125742088289cc5470dc5c7317a2801dcfcf2f +size 667629 diff --git a/examples/offer.mp3 b/examples/offer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..c9ae03b2dd5ec18d1d8aafe603813b5ed885681e Binary files /dev/null and b/examples/offer.mp3 differ diff --git a/examples/pace_fast.mp3 b/examples/pace_fast.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..9487759fc9091f5c892bbb5d8d8052d52f509751 Binary files /dev/null and b/examples/pace_fast.mp3 differ diff --git a/examples/pace_normal.mp3 b/examples/pace_normal.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..80c539dd594deff9e8fe67fb52e5fd4b105308b1 --- /dev/null +++ b/examples/pace_normal.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a4b305d9b0523f3a36f6c64a40a2d88a484e2f0c761b1c3e5c9979e4616d708 +size 116397 diff --git a/examples/pace_slow.mp3 b/examples/pace_slow.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..627428955c89c4f46ff15a547362b1424b449c81 --- /dev/null +++ b/examples/pace_slow.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f63d6c4a149488287e96090a45892a724883e278b7cf2804535a8f59d1bf1845 +size 171981 diff --git a/examples/payment_worry.mp3 b/examples/payment_worry.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..d61066d19f014afcb8a5ef40ecec951993166c30 Binary files /dev/null and b/examples/payment_worry.mp3 differ diff --git a/examples/sad_customer.mp3 b/examples/sad_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..d790d30df1e7dbcf73dba4597002cc89d559a7a0 Binary files /dev/null and b/examples/sad_customer.mp3 differ diff --git a/examples/sceptical_customer.mp3 b/examples/sceptical_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..b231acaa5da0ee3976cc2c5afcf455382f0d8a88 --- /dev/null +++ b/examples/sceptical_customer.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80a5bceb95bf281dbfaa79157f71662014ceb26a58ec3854f6b4aca663e4c802 +size 124749 diff --git a/examples/serious_assistant.mp3 b/examples/serious_assistant.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..c7a60dc254bbed26ce3a36614855f85568a880f4 --- /dev/null +++ b/examples/serious_assistant.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0dbc0780fdfa82d82defb1a10f0e09f8fc7e8b9f157f17c3e8061bcb63feca3 +size 139437 diff --git a/examples/serious_operator.mp3 b/examples/serious_operator.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..3924a739f4b41453468903f11dee5f7abbf25eee --- /dev/null +++ b/examples/serious_operator.mp3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2354f3dbbc0ccae9eef4fffa5d0dd7e20605579ffb5cd46842cd28e6f00f583 +size 122157 diff --git a/examples/worried_customer.mp3 b/examples/worried_customer.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..c73013f1df4551a294882ac99796c46947e168b8 Binary files /dev/null and b/examples/worried_customer.mp3 differ diff --git a/runtime/frontend/common.py b/runtime/frontend/common.py new file mode 100644 index 0000000000000000000000000000000000000000..688a9bba96143228da0295c7daa3b716227b1b65 --- /dev/null +++ b/runtime/frontend/common.py @@ -0,0 +1,16 @@ +from __future__ import annotations + +import json +from pathlib import Path + +HERE = Path(__file__).resolve().parent +OUT = HERE +TTS_UZ = HERE + + +def read_jsonl(path): + return [json.loads(line) for line in Path(path).read_text(encoding="utf-8").splitlines() if line.strip()] + + +def write_jsonl(path, rows): + Path(path).write_text("".join(json.dumps(r, ensure_ascii=False) + "\n" for r in rows), encoding="utf-8") diff --git a/runtime/frontend/lexicon_extra.tsv b/runtime/frontend/lexicon_extra.tsv new file mode 100644 index 0000000000000000000000000000000000000000..30b4ba0e088991b3001a11c69e80a87eac3bffed --- /dev/null +++ b/runtime/frontend/lexicon_extra.tsv @@ -0,0 +1,6 @@ +# termreading; these win over every other term table, in any case. +Router Router +Ok okey +OK okey +ok okey +ponyal ponyl diff --git a/runtime/frontend/tashkent_dialect.py b/runtime/frontend/tashkent_dialect.py new file mode 100644 index 0000000000000000000000000000000000000000..ad61e0373de3f3b078a14de62c73121717914255 --- /dev/null +++ b/runtime/frontend/tashkent_dialect.py @@ -0,0 +1,216 @@ + +from __future__ import annotations + +import re +import sys + +VOWELS = set("aeiouAEIOU") +WORD = re.compile(r"[A-Za-zʻʼ'’]+(?:-[A-Za-z]+)?") +PROGRESSIVE_END = {"man": "vomman", "san": "vossan", "ti": "votti", "miz": "vommiz", "siz": "vossiz", + "sizlar": "vossizlar", "tilar": "vottila"} +L_DROP_STEMS = {"kel", "qil", "bo'l", "ol"} +WORDS = {"hozir": "hozi", "menga": "manga", "senga": "sanga", "qanday": "qanaqa", + "shunday": "shunaqa", "bunday": "bunaqa", "unday": "unaqa", + "men": "man", "meni": "mani", "mening": "mani", "mendan": "mandan", "menda": "manda", + "menimcha": "manimcha", "sen": "san", "seni": "sani", "sening": "sani", "sendan": "sandan", + "kerak": "kere", "kelgan": "kegan", "ular": "ula", "qayerda": "qayoda", + "allo": "alyo", "bizning": "bizi", "qo'ng'iroq": "qo'ng'iro", "aytavering": "etuvring", + "kechirasiz": "kechiras"} +PHRASES = [(r"\bshuning uchun\b", "shunga"), (r"\bnima uchun\b", "nimaga"), (r"\bqanday yordam\b", "qando yordam")] +SHORT_STEMS = {"kel", "qil", "bo'l", "ol", "bor", "yoz", "kut", "ber", "tur", "ket", "ko'r", "top", "ayt", "et", "bil", + "qayt", "yur", "kir", "chiq", "tush", "o'tir", "yet", "ich", "sot", "ayt", "tekshir", "eshit", "kuz"} +AS_STEMS = ("qil", "bil", "kel", "ol", "ber", "kut", "tur", "ko'r", "yoz", "top", "ket", "bor", "et") +NUMBER_WORDS = ("nol bir ikki uch to'rt to'r besh olti yetti sakkiz to'qqiz o'n yigirma o'ttiz qirq ellik oltmish yetmish " + "sakson to'qson yuz ming million milliard").split() +TENS = ("yigirma", "o'ttiz", "qirq", "ellik", "oltmish", "yetmish", "sakson", "to'qson") +RUSSIAN_PHRASES = [(r"\bmuddatli to'lov", "rassrochka"), (r"\byetkazib berish", "dostavka")] +RUSSIAN_STEMS = {"chegirma": "skidka", "manzil": "adres", "havola": "ssilka", "ariza": "zayavka", "to'lov": "oplata"} +KEEP_UZBEK = [(r"to'lov", r"havola|bo'lim"), ] +KEEP_BEFORE = {"kerak": "edi"} +CONVERB_NEXT = ("kel", "bor", "ket", "ko'r", "chiq") + + +def ends_vowel(stem: str) -> bool: + return stem[-1:] in VOWELS + + +def adapt_suffix(suffix: str, from_vowel: bool, to_vowel: bool) -> str: + if from_vowel == to_vowel or not suffix: + return suffix + if from_vowel and not to_vowel: + for a, b in (("ngiz", "ingiz"), ("ng", "ing"), ("si", "i"), ("m", "im")): + if suffix.startswith(a) and not suffix.startswith("ni"): + return b + suffix[len(a):] + return suffix + for a, b in (("ingiz", "ngiz"), ("ing", "ng"), ("im", "m"), ("i", "si")): + if suffix.startswith(a): + return b + suffix[len(a):] + return suffix + + +def l_drop(stem: str) -> str: + return stem[:-1] if stem.lower() in L_DROP_STEMS else stem + + +def convert_word(word: str, russian: bool) -> tuple[str, list[str]]: + w, rules = word, [] + low = w.lower() + if low in WORDS: + return keep_case(word, WORDS[low]), ["words"] + if low in NUMBER_WORDS: + return word, [] + if russian: + for stem, rus in RUSSIAN_STEMS.items(): + if low.startswith(stem): + suffix = low[len(stem):] + w = rus + adapt_suffix(suffix, ends_vowel(stem), ends_vowel(rus)) + low, rules = w, rules + ["russian"] + break + if low.startswith("ayt") and not low.startswith("ayts"): + low = "et" + low[3:] + rules.append("ayt->et") + m = re.fullmatch(r"(.+?)(?:yap|moqda)(man|san|ti|miz|siz|sizlar|tilar)?(mi)?", low) + if m and len(m.group(1)) >= 2 and not low.endswith("yapti-yu") and not m.group(1).endswith("ma"): + stem, end, q = m.group(1), m.group(2) or "ti", m.group(3) or "" + if end in PROGRESSIVE_END: + low = l_drop(stem) + PROGRESSIVE_END[end] + q + rules.append("verb") + m = re.fullmatch(r"(.+?)yotgan(.*)", low) + if m and "verb" not in rules and not re.search(r"ma(?:yotgan|yap)", low): + stem = m.group(1) + if stem.endswith("a") and stem[:-1] in SHORT_STEMS: + stem = stem[:-1] + low = l_drop(stem) + "votgan" + m.group(2) + rules.append("verb") + m = re.fullmatch(r"(.+l)ay(di|miz)(mi)?", low) + if m and "verb" not in rules: + low = m.group(1) + "i" + m.group(2) + (m.group(3) or "") + rules.append("verb") + m = re.fullmatch(r"(" + "|".join(AS_STEMS) + r")asiz", low) + if m: + low = m.group(1) + "as" + rules.append("verb") + if re.search(r"dingiz(mi|lar)?$", low): + low = re.sub(r"dingiz((?:mi|lar)?)$", r"diz\1", low) + rules.append("past2pl") + m = re.fullmatch(r"(.+?[^aeiou'])ingiz(.*)", low) + if m and low not in ("ingliz",) and "past2pl" not in rules: + low = m.group(1) + "iz" + m.group(2) + rules.append("poss2pl") + m = re.fullmatch(r"(.{2,}?[^s])angiz(.*)", low) + if m and "past2pl" not in rules and "poss2pl" not in rules: + low = m.group(1) + "ez" + m.group(2) + rules.append("poss2pl") + m = re.fullmatch(r"(bo'l|qil)(s|m|g)(.*)", low) or re.fullmatch(r"(kel)(g)(.*)", low) + if m: + low = m.group(1)[:-1] + m.group(2) + m.group(3) + rules.append("l-drop") + if low != word.lower() or rules: + return keep_case(word, low), rules + return word, [] + + +def keep_case(src: str, out: str) -> str: + return out[:1].upper() + out[1:] if src[:1].isupper() else out + + +def convert(text: str, russian: bool = True) -> tuple[str, list[tuple[str, str, list[str]]]]: + changes = [] + + def phrase(pattern: str, repl: str, rule: str, s: str) -> str: + def sub(m): + out = keep_case(m.group(0), repl) + changes.append((m.group(0), out, [rule])) + return out + return re.sub(pattern, sub, s, flags=re.IGNORECASE) + + s = text + for pattern, repl in PHRASES: + s = phrase(pattern, repl, "words", s) + if russian: + for pattern, repl in RUSSIAN_PHRASES: + s = phrase(pattern, repl, "russian", s) + def edi(m): + first, rest = m.group(1), m.group(2) + out = first + ("y" + rest[1:] if first.lower().endswith("chi") else rest[1:]) + changes.append((m.group(0), out, ["edi"])) + return out + s = re.sub(r"(? str: + def run(m): + words = m.group(0).split() + follow = re.match(r"\s+([\w']+)", m.string[m.end():]) + follow = follow.group(1) if follow and any(follow.group(1).lower().startswith(w) for w in NUMBER_WORDS) else "" + out = [] + for i, w in enumerate(words): + nxt = words[i + 1] if i + 1 < len(words) else follow + low = w.lower() + if low == "to'rt": + w = keep_case(w, "to'ru" if nxt[:1].lower() in "aeiou" and nxt else "to'r") + elif low == "qirq" and nxt[:1].lower() in "aeiou" and nxt: + w = keep_case(w, "qir") + elif low == "yuz" and i and words[i - 1].lower() == "bir" and nxt.lower() in TENS \ + and not any(x.lower() in ("ming", "million", "milliard") for x in words[i + 1:]): + w = keep_case(w, "yuzu") + out.append(w) + new = " ".join(out) + if new != m.group(0): + changes.append((m.group(0), new, ["numbers"])) + return new + alt = "|".join(re.escape(w) for w in sorted(NUMBER_WORDS, key=len, reverse=True)) + return re.sub(r"(? str: + s = text + for pattern, repl in RUSSIAN_PHRASES: + s = re.sub(pattern, lambda m: keep_case(m.group(0), repl), s, flags=re.IGNORECASE) + + def sub(m): + word, low = m.group(0), m.group(0).lower() + for stem, rus in RUSSIAN_STEMS.items(): + if low.startswith(stem): + return keep_case(word, rus + adapt_suffix(low[len(stem):], ends_vowel(stem), ends_vowel(rus))) + return word + return WORD.sub(sub, s) + + diff --git a/runtime/frontend/terms.py b/runtime/frontend/terms.py new file mode 100644 index 0000000000000000000000000000000000000000..dcbc7febc7e7f72405ad342c11f69be8d4c24d38 --- /dev/null +++ b/runtime/frontend/terms.py @@ -0,0 +1,58 @@ + +from __future__ import annotations + +import argparse +import json +import os +import re + +from common import HERE, OUT, read_jsonl, write_jsonl + +LEXICON = { + "SMS": ("es-em-es", "acronym"), "IT": ("ay-ti", "acronym"), "AI": ("ey-ay", "acronym"), + "SMM": ("es-em-em", "acronym"), "HR": ("eych-ar", "acronym"), "CRM": ("si-ar-em", "acronym"), + "ID": ("ay-di", "acronym"), "VIP": ("vip", "acronym"), "IELTS": ("ayelts", "acronym"), + "TOEFL": ("tofl", "acronym"), "PDF": ("pe-de-ef", "acronym"), "QR": ("kyu-ar", "acronym"), + "Wi-Fi": ("vay-fay", "acronym"), "MRT": ("em-er-te", "acronym_ru"), "UZI": ("uzi", "acronym_ru"), + "EKG": ("e-ka-ge", "acronym_ru"), "MSKT": ("em-es-ka-te", "acronym_ru"), "NDS": ("en-de-es", "acronym_ru"), + "YouTube": ("Yutub", "brand"), "iPhone": ("Ayfon", "brand"), "WhatsApp": ("Vatsap", "brand"), + "Google": ("Gugl", "brand"), "Zoom": ("Zum", "brand"), "Click": ("Klik", "brand"), + "Payme": ("Peymi", "brand"), "Uzcard": ("Uzkard", "brand"), "BYD": ("bi-vay-di", "brand"), + "Chevrolet": ("Shevrole", "brand"), "Excel": ("Eksel", "brand"), "Gmail": ("Jimeyl", "brand"), +} +SEND_WRITTEN = {"MSKT"} +_TERM_RE = re.compile(r"(? list[str]: + return _TERM_RE.findall(text) + + +def swap_out(text: str) -> tuple[str, list[str]]: + found = [] + + def sub(m): + found.append(m[1]) + return f"zqterm{'abcdefghij'[len(found) - 1]}qz" + return _TERM_RE.sub(sub, text), found + + +def swap_in(text: str, found: list[str], form: str) -> str: + for k, term in enumerate(found): + written = form == "written" or (form == "tts" and term in SEND_WRITTEN) + value = term if written else LEXICON[term][0] + text = re.sub(f"zqterm{'abcdefghij'[k]}qz", value, text, flags=re.IGNORECASE) + return text + + +def canonical(normalized: str) -> str: + for written, (spoken, _) in LEXICON.items(): + token = re.sub(r"\W", "", written.lower()) + forms = {re.sub(r"[-\s]+", " ", written.lower()), re.sub(r"[-\s]+", " ", spoken.lower()), + re.sub(r"[-\s]+", "", spoken.lower()), token} + for form in sorted(forms, key=len, reverse=True): + normalized = re.sub(rf"(? dict[str, str]: + table = {k: v[0] for k, v in BASE_LEXICON.items()} + table.update(LIST_TERMS) + return table + + +def _llm_table() -> dict: + return json.loads(REVIEWED_LEXICON.read_text()) if REVIEWED_LEXICON.exists() else {} + + +def spoken(text: str, proposed: dict[str, str], context: str = "") -> tuple[str, list[dict]]: + known = lexicon() + folded = {k.lower(): v for k, v in known.items()} + found = [] + + def sub(m): + term = m.group(1).strip() + if term.lower() in folded: + reading, source = folded[term.lower()], "lexicon" + else: + reading = (proposed.get(term) or proposed.get(term.lower()) or "").strip() + if not reading or re.search(r"[^A-Za-z' \-]", reading): + raise ValueError(f"no usable reading for term {term!r}: {reading!r}") + source = "llm" + key = term.lower() + with _LOCK: + table = _llm_table() + if key not in table: + table[key] = {"term": term, "reading": reading, "first_context": context[:160], "count": 0} + table[key]["count"] += 1 + REVIEWED_LEXICON.parent.mkdir(parents=True, exist_ok=True) + REVIEWED_LEXICON.write_text(json.dumps(table, ensure_ascii=False, indent=1) + "\n") + reading = table[key]["reading"] + found.append({"term": term, "reading": reading, "source": source}) + return reading + + return BRACE.sub(sub, text), found + + +def original(text: str) -> str: + return BRACE.sub(lambda m: m.group(1), text) diff --git a/runtime/frontend/text_to_phoneme/phoneme_converter.py b/runtime/frontend/text_to_phoneme/phoneme_converter.py new file mode 100644 index 0000000000000000000000000000000000000000..4cd14f1be45de99c30e31e7583fd794e0c3197ee --- /dev/null +++ b/runtime/frontend/text_to_phoneme/phoneme_converter.py @@ -0,0 +1,304 @@ +import re + +from text_to_phoneme.uzbek_orthography import normalize_uzbek_apostrophes + +IPA_VOWELS_SET = {"a", "ɔ", "e", "i", "u", "ɵ", "ɨ", "ɪ", "ʊ"} +IPA_VOICELESS_CONSONANTS_SET = {"p", "t", "k", "q", "χ", "f", "s", "ʃ", "t͡ʃ", "h", "ʔ"} +IPA_VOICED_CONSONANTS_SET = {"b", "d", "ɡ", "ʁ", "v", "z", "ʒ", "d͡ʒ"} +IPA_SONORANTS_SET = {"m", "n", "ŋ", "ɱ", "l", "r", "j"} +IPA_ALL_CONSONANTS_SET = IPA_VOICELESS_CONSONANTS_SET.union(IPA_VOICED_CONSONANTS_SET).union(IPA_SONORANTS_SET) +IPA_VOICELESS_STOPS_SET = {"p", "t", "k", "q"} +IPA_BACK_CONSONANTS_SET = {"q", "ʁ", "χ"} +IPA_THROAT_CONSONANTS_SET = {"ʔ", "h"} +IPA_DEEP_BACK_OR_THROAT_CONSONANTS_SET = IPA_BACK_CONSONANTS_SET.union(IPA_THROAT_CONSONANTS_SET) + +CMU_VOWELS_SET = { + "AA", "AE", "AH", "AO", "AW", "AY", "EH", "ER", "EY", + "IH", "IY", "OW", "OY", "UH", "UW", +} +UZBEK_CMU_VOWELS_SET = CMU_VOWELS_SET.union({"IX", "OE"}) + +IPA_TO_STRICT_CMU_MAP = { + "a": ("AA",), + "ɔ": ("AO",), + "e": ("EH",), + "i": ("IY",), + "u": ("UW",), + "ɵ": ("AH",), + "ɨ": ("IH",), + "ɪ": ("IH",), + "ʊ": ("UH",), + "p": ("P",), + "b": ("B",), + "t": ("T",), + "d": ("D",), + "k": ("K",), + "ɡ": ("G",), + "q": ("K",), + "χ": ("HH",), + "ʁ": ("G",), + "f": ("F",), + "v": ("V",), + "s": ("S",), + "z": ("Z",), + "ʃ": ("SH",), + "ʒ": ("ZH",), + "h": ("HH",), + "t͡ʃ": ("CH",), + "d͡ʒ": ("JH",), + "m": ("M",), + "n": ("N",), + "ŋ": ("NG",), + "ŋɡ": ("NG", "G"), + "ɱ": ("M",), + "l": ("L",), + "r": ("R",), + "j": ("Y",), + "ʔ": (), +} + +IPA_TO_UZBEK_CMU_MAP = { + **IPA_TO_STRICT_CMU_MAP, + "ɵ": ("OE",), + "ɨ": ("IX",), + "q": ("Q",), + "χ": ("X",), + "ʁ": ("GH",), + "ʔ": ("GL",), +} + + +def parse_ipa_string(ipa_str: str) -> list[str]: + known_multichar_ipa_units = sorted( + ["ɵ", "t͡ʃ", "d͡ʒ", "ŋɡ", "ʒ", "ʃ", "χ", "ʁ", "ʔ", "ŋ", "ɱ", "ɪ"], + key=len, reverse=True + ) + temp_str = ipa_str + parsed_list = [] + idx = 0 + while idx < len(temp_str): + if temp_str[idx] == 'ˈ': + parsed_list.append('ˈ') + idx += 1 + continue + found_multi = False + for mc_unit in known_multichar_ipa_units: + if temp_str.startswith(mc_unit, idx): + parsed_list.append(mc_unit) + idx += len(mc_unit) + found_multi = True + break + if not found_multi: + parsed_list.append(temp_str[idx]) + idx += 1 + return parsed_list + + +def ipa_to_cmu(ipa_str: str, include_stress: bool = True, strict: bool = False) -> str: + ipa_symbols = parse_ipa_string(ipa_str) + ipa_to_cmu_map = IPA_TO_STRICT_CMU_MAP if strict else IPA_TO_UZBEK_CMU_MAP + cmu_vowels = CMU_VOWELS_SET if strict else UZBEK_CMU_VOWELS_SET + cmu_symbols = [] + stress_next_vowel = False + + for ipa_sym in ipa_symbols: + if ipa_sym == "ˈ": + stress_next_vowel = True + continue + + if ipa_sym in {" ", "\t", "\n"}: + continue + + cmu_phones = ipa_to_cmu_map.get(ipa_sym) + if cmu_phones is None: + raise ValueError(f"Unsupported IPA symbol for CMU export: {ipa_sym!r}") + + for cmu_phone in cmu_phones: + if include_stress and cmu_phone in cmu_vowels: + stress = "1" if stress_next_vowel else "0" + cmu_symbols.append(f"{cmu_phone}{stress}") + stress_next_vowel = False + else: + cmu_symbols.append(cmu_phone) + + return " ".join(cmu_symbols) + + +def uzbek_to_cmu_final(text: str, include_stress: bool = True, strict: bool = False) -> str: + return ipa_to_cmu(uzbek_to_ipa_final(text), include_stress=include_stress, strict=strict) + + +def uzbek_to_cmu_strict_final(text: str, include_stress: bool = True) -> str: + return uzbek_to_cmu_final(text, include_stress=include_stress, strict=True) + + +def uzbek_to_ipa_final(text: str) -> str: + text_lower = normalize_uzbek_apostrophes(text).lower() + + processed_text = text_lower.replace("o'", "ɵ") + processed_text = processed_text.replace("g'", "ʁ") + + processed_text = re.sub(r"ng(?=[aeiouɵaɔeiɨʊɪ])", "ŋɡ", processed_text) + processed_text = processed_text.replace("ng", "ŋ") + processed_text = processed_text.replace("s'h", "s\x00h") + processed_text = processed_text.replace("sh", "ʃ") + processed_text = processed_text.replace("ch", "t͡ʃ") + processed_text = processed_text.replace("zh", "ʒ") + processed_text = processed_text.replace("\x00", "") + processed_text = processed_text.replace("ck", "k") + processed_text = re.sub(r"c(?=[eiy])", "s", processed_text) + processed_text = processed_text.replace("c", "k").replace("w", "v") + processed_text = processed_text.replace("'", "ʔ") + + char_map = { + 'a': "a", 'b': "b", 'd': "d", 'e': "e", 'f': "f", 'g': "ɡ", + 'h': "h", 'i': "i", 'j': "d͡ʒ", 'k': "k", 'l': "l", 'm': "m", + 'n': "n", 'o': "ɔ", 'p': "p", 'q': "q", 'r': "r", 's': "s", + 't': "t", 'u': "u", 'v': "v", 'x': "χ", 'y': "j", 'z': "z", + } + ipa_result_chars = [char_map.get(char_uzb, char_uzb) for char_uzb in processed_text] + current_ipa_str = "".join(ipa_result_chars) + + ipa_symbols = parse_ipa_string(current_ipa_str) + + vowel_indices_in_symbols = [ + idx for idx, sym in enumerate(ipa_symbols) if sym in IPA_VOWELS_SET and sym != 'ˈ' + ] + stressed_vowel_symbol_index = -1 + + no_stress_suffixes_approx = [ + "mi", "chi", "ku", "cha", "mas", "dir", "oq", "yoq", + "gina", "kina", "qina", "u", "yu", "la", + "ga", "da", "dan", "ning", "ni" + ] + original_text_for_stress_check = text_lower + + if vowel_indices_in_symbols: + can_shift_stress = False + for suf in sorted(no_stress_suffixes_approx, key=len, reverse=True): + if original_text_for_stress_check.endswith(suf) and len(original_text_for_stress_check) > len(suf): + can_shift_stress = True + break + + if can_shift_stress and len(vowel_indices_in_symbols) >= 2: + stressed_vowel_symbol_index = vowel_indices_in_symbols[-2] + else: + stressed_vowel_symbol_index = vowel_indices_in_symbols[-1] + + assimilated_symbols_voicing = [] + i = 0 + while i < len(ipa_symbols): + curr_sym = ipa_symbols[i] + action_taken = False + if i + 1 < len(ipa_symbols): + next_sym = ipa_symbols[i + 1] + if curr_sym in IPA_VOICED_CONSONANTS_SET and next_sym in IPA_VOICELESS_CONSONANTS_SET: + devoiced_curr = curr_sym + if curr_sym == "b": + devoiced_curr = "p" + elif curr_sym == "d": + devoiced_curr = "t" + elif curr_sym == "ɡ": + devoiced_curr = "k" + elif curr_sym == "ʁ": + devoiced_curr = "χ" + elif curr_sym == "v": + devoiced_curr = "f" + elif curr_sym == "z": + devoiced_curr = "s" + elif curr_sym == "d͡ʒ": + devoiced_curr = "t͡ʃ" + elif curr_sym == "ʒ": + devoiced_curr = "ʃ" + assimilated_symbols_voicing.append(devoiced_curr) + i += 1 + action_taken = True + if not action_taken: + assimilated_symbols_voicing.append(curr_sym) + i += 1 + ipa_symbols = assimilated_symbols_voicing + + assimilated_symbols_nasal = [] + i = 0 + while i < len(ipa_symbols): + curr_sym = ipa_symbols[i] + if curr_sym == "n": + if i + 1 < len(ipa_symbols): + next_sym = ipa_symbols[i + 1] + if next_sym in {"k", "ɡ", "q", "χ", "ŋɡ"}: + assimilated_symbols_nasal.append("ŋ") + elif next_sym in {"f", "v"}: + assimilated_symbols_nasal.append("ɱ") + else: + assimilated_symbols_nasal.append("n") + else: + assimilated_symbols_nasal.append("n") + else: + assimilated_symbols_nasal.append(curr_sym) + i += 1 + ipa_symbols = assimilated_symbols_nasal + + processed_symbols_vowels = [] + for idx, current_sym in enumerate(ipa_symbols): + prev_sym_phonetic = ipa_symbols[idx - 1] if idx > 0 else None + next_sym_phonetic = ipa_symbols[idx + 1] if idx + 1 < len(ipa_symbols) else None + + is_stressed_vowel = (idx == stressed_vowel_symbol_index) + + if current_sym == 'i': + is_near_deep_back_or_throat = False + if (prev_sym_phonetic in IPA_DEEP_BACK_OR_THROAT_CONSONANTS_SET) or \ + (next_sym_phonetic in IPA_DEEP_BACK_OR_THROAT_CONSONANTS_SET): + is_near_deep_back_or_throat = True + + if is_near_deep_back_or_throat: + processed_symbols_vowels.append("ɨ") + elif not is_stressed_vowel: + processed_symbols_vowels.append("ɪ") + else: + processed_symbols_vowels.append("i") + + elif current_sym == 'u': + processed_symbols_vowels.append("u") + else: + processed_symbols_vowels.append(current_sym) + + ipa_symbols = processed_symbols_vowels + ipa_str_processed_vowels = "".join(ipa_symbols) + + parsed_final_ipa = parse_ipa_string(ipa_str_processed_vowels) + + final_vowel_occurrences = [] + current_char_idx_in_final_str = 0 + + for sym_idx, ipa_sym_final in enumerate(parsed_final_ipa): + if ipa_sym_final in IPA_VOWELS_SET: + final_vowel_occurrences.append({ + 'char': ipa_sym_final, + 'start_index_in_str': current_char_idx_in_final_str + }) + current_char_idx_in_final_str += len(ipa_sym_final) + + stressed_ipa_str_final = ipa_str_processed_vowels + if final_vowel_occurrences: + target_stress_vowel_info_final = None + can_shift_stress_final = False + for suf in sorted(no_stress_suffixes_approx, key=len, reverse=True): + if original_text_for_stress_check.endswith(suf) and len(original_text_for_stress_check) > len(suf): + can_shift_stress_final = True + break + + if can_shift_stress_final and len(final_vowel_occurrences) >= 2: + target_stress_vowel_info_final = final_vowel_occurrences[-2] + else: + target_stress_vowel_info_final = final_vowel_occurrences[-1] + + if target_stress_vowel_info_final: + target_idx_in_str_final = target_stress_vowel_info_final['start_index_in_str'] + stressed_ipa_str_final = (ipa_str_processed_vowels[:target_idx_in_str_final] + + "ˈ" + + ipa_str_processed_vowels[target_idx_in_str_final:]) + + return stressed_ipa_str_final + + diff --git a/runtime/frontend/text_to_phoneme/pipelene_text_to_phoneme.py b/runtime/frontend/text_to_phoneme/pipelene_text_to_phoneme.py new file mode 100644 index 0000000000000000000000000000000000000000..2cf2b30bce5c2e88cf7dd27387c58911e29772d5 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/pipelene_text_to_phoneme.py @@ -0,0 +1,49 @@ +import re + +from text_to_phoneme.phoneme_converter import uzbek_to_cmu_final, uzbek_to_cmu_strict_final, uzbek_to_ipa_final +from text_to_phoneme.text_normalization_for_tts import text_normalization_for_tts + + +def pipeline_text_to_phoneme(text, phoneme_format="ipa"): + phoneme_format = phoneme_format.lower() + converters = { + "ipa": uzbek_to_ipa_final, + "cmu": uzbek_to_cmu_final, + "cmu_strict": uzbek_to_cmu_strict_final, + } + if phoneme_format not in converters: + supported_formats = ", ".join(sorted(converters)) + raise ValueError(f"Unsupported phoneme_format: {phoneme_format!r}. Supported: {supported_formats}") + phoneme_converter = converters[phoneme_format] + + normalized_text = text_normalization_for_tts(text) + + words = tokenize_text(normalized_text) + + phonemized_words = [] + + for word in words: + if is_punctuation_or_symbol(word): + phonemized_words.append(word) + else: + phoneme = phoneme_converter(word) + phonemized_words.append(phoneme) + + phonemized_text = ' '.join(phonemized_words) + + return normalized_text, phonemized_text + + +def tokenize_text(text): + pattern = r"[\w']+|[^\w\s]" + tokens = re.findall(pattern, text) + + return tokens + + +def is_punctuation_or_symbol(word): + skip_chars = set(r"""!"#$%&()*+,-./:;<=>?@[\]^_`{|}~""" + '""''„"«»‹›') + + return all(char in skip_chars for char in word) + + diff --git a/runtime/frontend/text_to_phoneme/text_normalization_for_tts.py b/runtime/frontend/text_to_phoneme/text_normalization_for_tts.py new file mode 100644 index 0000000000000000000000000000000000000000..cd5c0b81460a705a7e7d149f1741b90181cf3c39 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/text_normalization_for_tts.py @@ -0,0 +1,65 @@ +import re +from typing import List, Tuple + +from text_to_phoneme.uzbek_orthography import normalize_uzbek_apostrophes +from text_to_phoneme.tools.convert_currency_to_text import convert_currency_to_text +from text_to_phoneme.tools.convert_date_time_to_text import convert_date_time_to_text +from text_to_phoneme.tools.full_normalize import full_normalize +from text_to_phoneme.tools.convert_non_roman_numbers_to_text import convert_non_roman_numbers_to_text +from text_to_phoneme.tools.split_text_numbers import split_text_numbers +from text_to_phoneme.tools.convert_phone_numbers_to_text import convert_phone_numbers_to_text +from text_to_phoneme.tools.convert_roman_numerals_to_text import convert_roman_numerals_to_text +from text_to_phoneme.tools.pronounce_links_and_emails import pronounce_links_and_emails +from text_to_phoneme.tools.convert_symbols_to_uzbek_text import convert_symbols_to_uzbek_text +from text_to_phoneme.tools.expand_uzbek_abbreviations import expand_uzbek_abbreviations +from text_to_phoneme.tools.spoken_lexicon import hide_terms, restore_terms +from text_to_phoneme.tools.spoken_prepass import (attach_suffix, convert_decimals, convert_identifiers, + convert_ranges_and_codes, convert_times) + +ELLIPSIS_MARKER = "ELLIPSISMARKER" +HYPHEN_MARKER = "zqhyphenqz" + +NUMBER_WORDS = ("nol bir ikki uch to'rt besh olti yetti sakkiz to'qqiz o'n yigirma o'ttiz qirq ellik oltmish " + "yetmish sakson to'qson yuz ming million milliard yarim foiz").split() +_DETACHED_SUFFIX = re.compile(r"\b(" + "|".join(map(re.escape, NUMBER_WORDS)) + + r") (dagi|dan|da|gacha|ga|ning|ni|lardan|larda|lar|tadan|tasi|ta)(?![\w'])", re.IGNORECASE) + + +def _join_detached_suffix(match): + word, suffix = match.group(1), match.group(2).lower() + if word.lower() == "bir" and suffix.startswith("ta"): + return word[:1] + "itta" + suffix[2:] + return attach_suffix(word, suffix) + + +def text_normalization_for_tts(text: str) -> str: + + processed_text = normalize_uzbek_apostrophes(text) + + processed_text = re.sub(r"(?<=[\w'])\s*(?:\.{3,}|…)", f" {ELLIPSIS_MARKER} ", processed_text) + processed_text, terms = hide_terms(processed_text) + + processed_text = convert_times(processed_text) + processed_text = convert_phone_numbers_to_text(processed_text) + processed_text = convert_date_time_to_text(processed_text) + processed_text = convert_ranges_and_codes(processed_text) + processed_text = convert_identifiers(processed_text) + processed_text = convert_currency_to_text(processed_text) + processed_text = expand_uzbek_abbreviations(processed_text) + processed_text = convert_decimals(processed_text) + processed_text = pronounce_links_and_emails(processed_text) + processed_text = convert_symbols_to_uzbek_text(processed_text) + processed_text = split_text_numbers(processed_text) + processed_text = convert_roman_numerals_to_text(processed_text) + processed_text = convert_non_roman_numbers_to_text(processed_text) + + processed_text = re.sub(r"(?<=[A-Za-z'])-(?=[A-Za-z])", HYPHEN_MARKER, processed_text) + processed_text = full_normalize(processed_text) + processed_text = processed_text.replace(HYPHEN_MARKER, "-") + processed_text = re.sub(rf"\s*{ELLIPSIS_MARKER}", "...", processed_text) + processed_text = _DETACHED_SUFFIX.sub(_join_detached_suffix, processed_text) + processed_text = restore_terms(processed_text, terms) + + return processed_text + + diff --git a/runtime/frontend/text_to_phoneme/tools/convert_currency_to_text.py b/runtime/frontend/text_to_phoneme/tools/convert_currency_to_text.py new file mode 100644 index 0000000000000000000000000000000000000000..136092e4ed91e69fefcfbf19f27e60477e03afd1 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/convert_currency_to_text.py @@ -0,0 +1,39 @@ +import re + + +def convert_currency_to_text(text: str) -> str: + + currency_rules = [ + {"abbr": "USD", "name": "dollar", "symbols": ["$"]}, + {"abbr": "EUR", "name": "yevro", "symbols": ["€", "EUR"]}, + {"abbr": "GBP", "name": "funt sterling", "symbols": ["£"]}, + {"abbr": "UZS", "name": "so'm", "symbols": []}, + {"abbr": "RUB", "name": "rubl", "symbols": ["₽"]}, + {"abbr": "KZT", "name": "tenge", "symbols": ["₸"]}, + {"abbr": "CNY", "name": "yuan", "symbols": ["CN¥"]}, + {"abbr": "JPY", "name": "iyena", "symbols": ["¥"]}, + ] + + processed_text = text + + number_pattern = r"((?:\d{1,3}(?:[,']\d{3})+|\d+)(?:\.\d+)?)" + + for rule in currency_rules: + full_name = rule["name"] + abbr_val = rule["abbr"] + + abbr_regex = re.compile(rf"{number_pattern}\s*{abbr_val}\b", re.IGNORECASE) + processed_text = abbr_regex.sub(rf"\1 {full_name}", processed_text) + + for symbol in rule["symbols"]: + escaped_symbol = re.escape(symbol) + + symbol_before_regex = re.compile(rf"{escaped_symbol}\s*({number_pattern})") + processed_text = symbol_before_regex.sub(rf"\1 {full_name}", processed_text) + + symbol_after_regex = re.compile(rf"({number_pattern})\s*{escaped_symbol}") + processed_text = symbol_after_regex.sub(rf"\1 {full_name}", processed_text) + + return processed_text + + diff --git a/runtime/frontend/text_to_phoneme/tools/convert_date_time_to_text.py b/runtime/frontend/text_to_phoneme/tools/convert_date_time_to_text.py new file mode 100644 index 0000000000000000000000000000000000000000..5b11388e2b55807603ce49edbe0de3381165be59 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/convert_date_time_to_text.py @@ -0,0 +1,327 @@ +import re +from datetime import datetime + +UZBEK_UNITS_DATE = {0: "", 1: "bir", 2: "ikki", 3: "uch", 4: "toʻrt", 5: "besh", 6: "olti", 7: "yetti", 8: "sakkiz", + 9: "toʻqqiz"} +UZBEK_TENS_DATE = {1: "oʻn", 2: "yigirma", 3: "oʻttiz", 4: "qirq", 5: "ellik", 6: "oltmish", 7: "yetmish", 8: "sakson", + 9: "toʻqson"} +UZBEK_MONTHS_OUTPUT = {1: "yanvar", 2: "fevral", 3: "mart", 4: "aprel", 5: "may", 6: "iyun", 7: "iyul", 8: "avgust", + 9: "sentyabr", 10: "oktyabr", 11: "noyabr", 12: "dekabr"} +UZBEK_DAY_ORDINALS = {1: "birinchi", 2: "ikkinchi", 3: "uchinchi", 4: "toʻrtinchi", 5: "beshinchi", 6: "oltinchi", + 7: "yettinchi", 8: "sakkizinchi", 9: "toʻqqizinchi", 10: "oʻninchi", 11: "oʻn birinchi", + 12: "oʻn ikkinchi", 13: "oʻn uchinchi", 14: "oʻn toʻrtinchi", 15: "oʻn beshinchi", + 16: "oʻn oltinchi", 17: "oʻn yettinchi", 18: "oʻn sakkizinchi", 19: "oʻn toʻqqizinchi", + 20: "yigirmanchi", 21: "yigirma birinchi", 22: "yigirma ikkinchi", 23: "yigirma uchinchi", + 24: "yigirma toʻrtinchi", 25: "yigirma beshinchi", 26: "yigirma oltinchi", + 27: "yigirma yettinchi", 28: "yigirma sakkizinchi", 29: "yigirma toʻqqizinchi", 30: "oʻttizinchi", + 31: "oʻttiz birinchi"} +UZBEK_YEAR_PART_ORDINALS = {"bir": "birinchi", "ikki": "ikkinchi", "uch": "uchinchi", "toʻrt": "toʻrtinchi", + "besh": "beshinchi", "olti": "oltinchi", "yetti": "yettinchi", "sakkiz": "sakkizinchi", + "toʻqqiz": "toʻqqizinchi", "oʻn": "oʻninchi", "yigirma": "yigirmanchi", + "oʻttiz": "oʻttizinchi", "qirq": "qirqinchi", "ellik": "ellikinchi", + "oltmish": "oltmishinchi", "yetmish": "yetmishinchi", "sakson": "saksoninchi", + "toʻqson": "toʻqsoninchi", "yuz": "yuzinchi", "ming": "minginchi"} +UZBEK_MONTH_NAMES_INPUT_MAP = {"yanvar": 1, "fevral": 2, "mart": 3, "aprel": 4, "may": 5, "iyun": 6, "iyul": 7, + "avgust": 8, "sentyabr": 9, "oktyabr": 10, "noyabr": 11, "dekabr": 12} +UZBEK_MONTH_ABBREVIATIONS_INPUT_MAP = {"yan": 1, "fev": 2, "mar": 3, "apr": 4, "iyn": 6, "iyl": 7, "avg": 8, "sen": 9, + "okt": 10, "noy": 11, "dek": 12, "may": 5} + +UZBEK_COMMON_ATTACHING_SUFFIXES = sorted(["ning", "ga", "da", "dan", "ni", "cha"], key=len, reverse=True) + +all_unique_uz_months = sorted( + list(set(list(UZBEK_MONTH_NAMES_INPUT_MAP.keys()) + list(UZBEK_MONTH_ABBREVIATIONS_INPUT_MAP.keys()))), key=len, + reverse=True) +_ALL_UZ_MONTH_OPTIONS_FOR_REGEX = [name + r"\.?" for name in all_unique_uz_months] +_UZ_MONTHS_MASTER_REGEX_PART = r"(?:" + "|".join(_ALL_UZ_MONTH_OPTIONS_FOR_REGEX) + r")" +DATE_FORMATS_TO_TRY = ["%d/%m/%Y", "%d-%m-%Y", "%d.%m.%Y", "%d/%m/%y", "%d-%m-%y", "%d.%m.%y", "%m/%d/%Y", "%m-%d-%Y", + "%m.%d.%Y", "%m/%d/%y", "%m-%d-%y", "%m.%d.%y", "%Y/%m/%d", "%Y-%m-%d", "%Y.%m.%d", "%d %b %Y", + "%d %B %Y", "%d %b %y", "%d %B %y", "%b %d, %Y", "%B %d, %Y", "%b %d %Y", "%B %d %Y", + "%b %d, %y", "%B %d, %y", "%b %d %y", "%B %d %y", "%Y %b %d", "%Y %B %d", "%d-%m-%Y_custom"] +_EN_MONTHS_SHORT_LIST = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] + +UZBEK_UNITS_TIME = ["", "bir", "ikki", "uch", "to'rt", "besh", "olti", "yetti", "sakkiz", "to'qqiz"] +UZBEK_TENS_TIME = ["", "o'n", "yigirma", "o'ttiz", "qirq", "ellik", "oltmish", "yetmish", "sakson", "to'qson"] +VOWELS_UZBEK = ['a', 'e', 'i', 'o', 'u', 'oʻ'] + + +def number_to_uzbek_text_time(n: int) -> str: + if not 0 <= n <= 59: + raise ValueError("Number for time conversion out of range (0-59)") + if n == 0: + return "nol" + elif n < 10: + return UZBEK_UNITS_TIME[n] + elif n < 20: + return UZBEK_TENS_TIME[1] + (" " + UZBEK_UNITS_TIME[n % 10] if n % 10 != 0 else "") + else: + tens_digit = n // 10 + units_digit = n % 10 + if units_digit == 0: + return UZBEK_TENS_TIME[tens_digit] + else: + return UZBEK_TENS_TIME[tens_digit] + " " + UZBEK_UNITS_TIME[units_digit] + + +def time_to_uzbek_text(time_str: str) -> str: + if not re.fullmatch(r'\d{2}:\d{2}', time_str): + return time_str + parts = time_str.split(':') + hours_str, minutes_str = parts[0], parts[1] + try: + hours = int(hours_str) + minutes = int(minutes_str) + except ValueError: + return time_str + if not (0 <= hours <= 23 and 0 <= minutes <= 59): return time_str + + hours_text = number_to_uzbek_text_time(hours) + + connector = "u" + if hours_text and hours_text[-1].lower() in VOWELS_UZBEK: + connector = "yu" + elif hours_text and hours_text[-2:].lower() == "o'": + if hours_text == "to'rt": + connector = "u" + + if minutes == 0: + minutes_text = "nol nol" + else: + minutes_text = number_to_uzbek_text_time(minutes) + + return f"{hours_text} {connector} {minutes_text}" + + +def _num_to_uzbek_words_lt_1000(n): + if n >= 1000 or n < 0: raise ValueError("Num out of range (0-999)") + if n == 0: return [] + parts = [] + if n >= 100: + if n // 100 != 1: parts.append(UZBEK_UNITS_DATE[n // 100]) + parts.append("yuz"); n %= 100 + if n >= 10: parts.append(UZBEK_TENS_DATE[n // 10]); n %= 10 + if n > 0: parts.append(UZBEK_UNITS_DATE[n]) + return [p for p in parts if p] + + +def _year_to_uzbek_cardinal_words(year): + if not (0 <= year <= 9999): raise ValueError("Year out of range (0-9999)") + if year == 0: return ["nol"] + parts = [] + if year >= 1000: parts.append(UZBEK_UNITS_DATE[year // 1000]); parts.append("ming"); year %= 1000 + if year > 0: parts.extend(_num_to_uzbek_words_lt_1000(year)) + return [p for p in parts if p] + + +def _get_uzbek_year_ordinal_text(year_val): + if year_val == 0: return "nolinchi yil" + cardinal_words = _year_to_uzbek_cardinal_words(year_val) + if not cardinal_words: raise ValueError(f"Could not convert year {year_val} to cardinal.") + last_word = cardinal_words[-1] + if last_word in UZBEK_YEAR_PART_ORDINALS: + ordinal_last_word = UZBEK_YEAR_PART_ORDINALS[last_word] + else: + ends_with_vowel = any(last_word.endswith(v) for v in VOWELS_UZBEK) + if not ends_with_vowel and last_word: + if last_word[-1] in ('a', 'e', 'i', 'o', 'u'): + if not (last_word.endswith("o") and len(last_word) > 1 and last_word[-2] == "'"): + ends_with_vowel = True + + if ends_with_vowel: + ordinal_last_word = last_word + "nchi" + else: + ordinal_last_word = last_word + "inchi" + year_text = " ".join(cardinal_words[:-1] + [ordinal_last_word]) if len(cardinal_words) > 0 else ordinal_last_word + return year_text + " yil" + + +def date_to_uzbek_text(date_str_input, is_pre_processed_uzbek=False, year_first=False): + parsed_date = None + original_input_for_error = date_str_input + if is_pre_processed_uzbek: + try: + parsed_date = datetime.strptime(date_str_input, "%d-%m-%Y") + except ValueError as e: + raise ValueError(f"Pre-processed Uzbek date '{date_str_input}' parse error: {e}") + else: + temp_date_str = date_str_input + for en_abbr in _EN_MONTHS_SHORT_LIST: + temp_date_str = re.sub(r"(\b" + re.escape(en_abbr) + r")\.(?!\w)", r"\1", temp_date_str, + flags=re.IGNORECASE) + + for fmt in DATE_FORMATS_TO_TRY: + if "_custom" in fmt: continue + try: + current_input_str_to_parse = temp_date_str if ("%b" in fmt or "%B" in fmt) else date_str_input + parsed_date = datetime.strptime(current_input_str_to_parse, fmt) + break + except ValueError: + continue + if parsed_date is None: raise ValueError(f"Date string '{original_input_for_error}' could not be parsed.") + day, month, year = parsed_date.day, parsed_date.month, parsed_date.year + uzbek_year_str = _get_uzbek_year_ordinal_text(year) + if day not in UZBEK_DAY_ORDINALS: raise ValueError(f"Day {day} not supported.") + uzbek_day_str = UZBEK_DAY_ORDINALS[day] + if month not in UZBEK_MONTHS_OUTPUT: raise ValueError(f"Month {month} not supported.") + uzbek_month_str = UZBEK_MONTHS_OUTPUT[month] + if year_first: + return f"{uzbek_year_str} {uzbek_day_str} {uzbek_month_str}" + return f"{uzbek_day_str} {uzbek_month_str} {uzbek_year_str}" + + +def _normalize_year(year_str): + if len(year_str) == 2: + y = int(year_str) + current_year_short = datetime.now().year % 100 + if y > current_year_short + 20 and y <= 99: + return str(1900 + y) + else: + return str(2000 + y) + return year_str + + +_YEAR_DIGITS_FLEXIBLE = r"\b(?:[12]\d{3}|\d{2})\b" +_YEAR_DIGITS_STRICT_YYYY = r"\b(?:[12]\d{3})\b" +_DAY_DIGITS = r"\b(?:0?[1-9]|[12]\d|3[01])\b" +_EN_MONTHS_SHORT_PATTERN_LIST = [m + r"\.?" for m in _EN_MONTHS_SHORT_LIST] +_EN_MONTHS_SHORT_REGEX = r"(?:" + "|".join(_EN_MONTHS_SHORT_PATTERN_LIST) + r")" +_EN_MONTHS_LONG = r"(?:January|February|March|April|May|June|July|August|September|October|November|December)" +_EN_MONTHS_ANY = f"(?:{_EN_MONTHS_LONG}|{_EN_MONTHS_SHORT_REGEX})" + +_P_D_UZ_MONTH_Y_STR = r"(?P" + _DAY_DIGITS + r")\s+(?P" + _UZ_MONTHS_MASTER_REGEX_PART + r")(?:\s*,\s*)?\s+(?P" + _YEAR_DIGITS_FLEXIBLE + r")" +_P_UZ_MONTH_D_Y_STR = r"(?P" + _UZ_MONTHS_MASTER_REGEX_PART + r")\s+(?P" + _DAY_DIGITS + r")(?:\s*,\s*)?\s+(?P" + _YEAR_DIGITS_FLEXIBLE + r")" +_P_Y_UZ_MONTH_D_STR = r"(?P" + _YEAR_DIGITS_STRICT_YYYY + r")\s+(?P" + _UZ_MONTHS_MASTER_REGEX_PART + r")\s+(?P" + _DAY_DIGITS + r")" +_P_D_EN_MONTH_Y_STR = r"(?P" + _DAY_DIGITS + r")\s+(?P" + _EN_MONTHS_ANY + r")(?:\s*,\s*)?\s+(?P" + _YEAR_DIGITS_FLEXIBLE + r")" +_P_EN_MONTH_D_Y_STR = r"(?P" + _EN_MONTHS_ANY + r")\s+(?P" + _DAY_DIGITS + r")(?:\s*,\s*)?\s+(?P" + _YEAR_DIGITS_FLEXIBLE + r")" +_P_Y_EN_MONTH_D_STR = r"(?P" + _YEAR_DIGITS_STRICT_YYYY + r")\s+(?P" + _EN_MONTHS_ANY + r")\s+(?P" + _DAY_DIGITS + r")" +_YEAR_DIGITS_FLEXIBLE_NO_B = r"(?:[12]\d{3}|\d{2})" +_YEAR_DIGITS_STRICT_YYYY_NO_B = r"(?:[12]\d{3})" +_DAY_DIGITS_NO_B = r"(?:0?[1-9]|[12]\d|3[01])" +_MONTH_DIGITS_NO_B = r"(?:0?[1-9]|1[0-2])" +_P_Y_M_D_NUMERIC_STR = r"\b(?P" + _YEAR_DIGITS_STRICT_YYYY_NO_B + r")[-/.](?P" + _MONTH_DIGITS_NO_B + r")[-/.](?P" + _DAY_DIGITS_NO_B + r")\b" +_P_D_M_Y_NUMERIC_STR = r"\b(?P" + _DAY_DIGITS_NO_B + r")[-/.](?P" + _MONTH_DIGITS_NO_B + r")[-/.](?P" + _YEAR_DIGITS_FLEXIBLE_NO_B + r")\b" +_P_TIME_STR = r"\b(?P\d{2}):(?P\d{2})\b" + +PATTERNS_TO_TRY_ORDERED = [ + {"name": "D_UZM_Y", "type": "uzbek_month", "regex": re.compile(_P_D_UZ_MONTH_Y_STR, re.IGNORECASE)}, + {"name": "UZM_D_Y", "type": "uzbek_month", "regex": re.compile(_P_UZ_MONTH_D_Y_STR, re.IGNORECASE)}, + {"name": "Y_UZM_D", "type": "uzbek_month", "regex": re.compile(_P_Y_UZ_MONTH_D_STR, re.IGNORECASE)}, + {"name": "D_ENM_Y", "type": "english_month", "regex": re.compile(_P_D_EN_MONTH_Y_STR, re.IGNORECASE)}, + {"name": "ENM_D_Y", "type": "english_month", "regex": re.compile(_P_EN_MONTH_D_Y_STR, re.IGNORECASE)}, + {"name": "Y_ENM_D", "type": "english_month", "regex": re.compile(_P_Y_EN_MONTH_D_STR, re.IGNORECASE)}, + {"name": "YMD_NUM", "type": "numeric_ymd", "regex": re.compile(_P_Y_M_D_NUMERIC_STR, re.IGNORECASE)}, + {"name": "DMY_MDY_NUM", "type": "numeric_dmy_mdy", "regex": re.compile(_P_D_M_Y_NUMERIC_STR, re.IGNORECASE)}, + {"name": "TIME_HHMM", "type": "time_hhmm", "regex": re.compile(_P_TIME_STR)} +] + + +def _convert_match_to_uzbek(match_obj, p_info): + original_match_str = match_obj.group(0) + pattern_name = p_info["name"] + pattern_type = p_info["type"] + + try: + if pattern_type == "uzbek_month": + day_str = match_obj.group("day") + month_raw = match_obj.group("month_raw") + year_str = _normalize_year(match_obj.group("year")) + month_cleaned = month_raw.lower().rstrip('.') + month_number = UZBEK_MONTH_NAMES_INPUT_MAP.get(month_cleaned) or \ + UZBEK_MONTH_ABBREVIATIONS_INPUT_MAP.get(month_cleaned) + if month_number and day_str and year_str: + std_date = f"{int(day_str):02d}-{month_number:02d}-{year_str}" + return date_to_uzbek_text(std_date, is_pre_processed_uzbek=True, + year_first=pattern_name.startswith("Y_")) + else: + return original_match_str + elif pattern_type == "english_month": + return date_to_uzbek_text(original_match_str) + elif pattern_type == "numeric_ymd": + year_str = match_obj.group("year") + month_str = match_obj.group("month_num") + day_str = match_obj.group("day_num") + std_date = f"{int(day_str):02d}-{int(month_str):02d}-{year_str}" + return date_to_uzbek_text(std_date, is_pre_processed_uzbek=True, year_first=True) + elif pattern_type == "numeric_dmy_mdy": + return date_to_uzbek_text(original_match_str) + elif pattern_type == "time_hhmm": + return time_to_uzbek_text(original_match_str) + + except ValueError: + return original_match_str + except Exception as e: + return original_match_str + return original_match_str + + +def convert_date_time_to_text(full_text): + found_items = [] + for i, p_info in enumerate(PATTERNS_TO_TRY_ORDERED): + for match in p_info["regex"].finditer(full_text): + found_items.append({ + "start": match.start(), + "end": match.end(), + "match_obj": match, + "p_info": p_info, + "text": match.group(0), + "priority": i + }) + if not found_items: return full_text + + found_items.sort(key=lambda x: (x["start"], -(x["end"] - x["start"]), x["priority"])) + + final_replacements = [] + current_coverage_end = -1 + for item_info in found_items: + if item_info["start"] >= current_coverage_end: + final_replacements.append(item_info) + current_coverage_end = item_info["end"] + + result_parts = [] + current_text_pos = 0 + for item_info in final_replacements: + result_parts.append(full_text[current_text_pos:item_info["start"]]) + + original_matched_text_segment = item_info["text"] + converted_text = _convert_match_to_uzbek(item_info["match_obj"], item_info["p_info"]) + + current_processed_text_end_pos = item_info["end"] + + was_successfully_converted = (converted_text != original_matched_text_segment) + + if was_successfully_converted: + cursor_for_suffix_check = item_info["end"] + has_space_before_suffix = False + if cursor_for_suffix_check < len(full_text) and full_text[cursor_for_suffix_check] == ' ': + has_space_before_suffix = True + + suffix_start_pos_in_full_text = cursor_for_suffix_check + (1 if has_space_before_suffix else 0) + + for suffix_candidate in UZBEK_COMMON_ATTACHING_SUFFIXES: + if full_text.startswith(suffix_candidate, suffix_start_pos_in_full_text): + idx_after_suffix_candidate_in_full_text = suffix_start_pos_in_full_text + len(suffix_candidate) + + is_standalone_suffix_token = ( + idx_after_suffix_candidate_in_full_text == len(full_text) or + (idx_after_suffix_candidate_in_full_text < len(full_text) and + not full_text[idx_after_suffix_candidate_in_full_text].isalnum()) + ) + + if is_standalone_suffix_token: + if converted_text: + text_parts = converted_text.rsplit(' ', 1) + if len(text_parts) > 1: + head, tail = text_parts + converted_text = f"{head} {tail}{suffix_candidate}" + else: + converted_text = f"{text_parts[0]}{suffix_candidate}" + + current_processed_text_end_pos = idx_after_suffix_candidate_in_full_text + break + + result_parts.append(converted_text) + current_text_pos = current_processed_text_end_pos + + result_parts.append(full_text[current_text_pos:]) + return "".join(result_parts) + + diff --git a/runtime/frontend/text_to_phoneme/tools/convert_non_roman_numbers_to_text.py b/runtime/frontend/text_to_phoneme/tools/convert_non_roman_numbers_to_text.py new file mode 100644 index 0000000000000000000000000000000000000000..01e2ea58decb2114926936f95c1bbe1ab34a4fca --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/convert_non_roman_numbers_to_text.py @@ -0,0 +1,518 @@ +import re +import math + + +def _number_to_words_uz_small(n): + if n < 0 or n > 999: return str(n) + units = ["", "bir", "ikki", "uch", "to'rt", "besh", "olti", "yetti", "sakkiz", "to'qqiz"] + tens = ["", "o'n", "yigirma", "o'ttiz", "qirq", "ellik", "oltmish", "yetmish", "sakson", "to'qson"] + if n == 0: return "" + parts = [] + if n >= 100: + hundreds_digit = n // 100 + if hundreds_digit == 1: + parts.append("yuz") + else: + parts.extend([units[hundreds_digit], "yuz"]) + n %= 100 + if n >= 10: + parts.append(tens[n // 10]) + n %= 10 + if n > 0: parts.append(units[n]) + return " ".join(filter(None, parts)) + + +def number_to_words_uz(n_orig_param): + if not isinstance(n_orig_param, (int, float, str)): return str(n_orig_param) + + original_input_as_str = str(n_orig_param) + input_is_string = isinstance(n_orig_param, str) + + string_cleaned_for_numeric_parsing = "" + if input_is_string: + temp_str = n_orig_param.strip() + if not temp_str: return str(n_orig_param) + + _sign = '' + if temp_str.startswith('-'): + _sign = '-' + temp_str = temp_str[1:] + + if not temp_str and _sign: return str(n_orig_param) + if not temp_str and not _sign: return str(n_orig_param) + + if temp_str.count('.') > 1: + if all(not sub.isdigit() for sub in temp_str.split('.')): + return str(n_orig_param) + string_cleaned_for_numeric_parsing = f"{_sign}{temp_str.replace(',', '').replace(' ', '').replace('.', '', temp_str.count('.') - 1)}" + elif '.' in temp_str: + _int_part, _frac_part = temp_str.split('.', 1) + _int_part_clean = _int_part.replace(',', '').replace(' ', '') if _int_part else "0" + _frac_part_clean = "".join(filter(str.isdigit, _frac_part)) + string_cleaned_for_numeric_parsing = f"{_sign}{_int_part_clean}.{_frac_part_clean}" + else: + _num_part_clean = temp_str.replace(',', '').replace(' ', '') + if not _num_part_clean: + return str(n_orig_param) + string_cleaned_for_numeric_parsing = f"{_sign}{_num_part_clean}" + else: + string_cleaned_for_numeric_parsing = original_input_as_str + + if string_cleaned_for_numeric_parsing == "-" or not string_cleaned_for_numeric_parsing: + return str(n_orig_param) + + is_structurally_float = isinstance(n_orig_param, float) or \ + (input_is_string and string_cleaned_for_numeric_parsing.count('.') == 1 and \ + string_cleaned_for_numeric_parsing.replace('-', '').replace('.', '') != "") + + _is_negative_from_float_path = False + _n_val_for_int_logic_from_float = None + + if is_structurally_float: + try: + parsed_num_str = string_cleaned_for_numeric_parsing + if parsed_num_str.startswith('.'): + parsed_num_str = "0" + parsed_num_str + elif parsed_num_str.startswith('-.'): + parsed_num_str = "-0" + parsed_num_str[1:] + + if parsed_num_str in ["-", ".", "-."]: return str(n_orig_param) + + num_val_as_float = float(parsed_num_str) + + is_negative = num_val_as_float < 0 + if not is_negative and original_input_as_str.strip().startswith('-') and num_val_as_float == 0.0: + is_negative = True + _is_negative_from_float_path = is_negative + + if num_val_as_float.is_integer(): + _n_val_for_int_logic_from_float = int(num_val_as_float) + else: + prefix = "minus " if is_negative else "" + + magnitude_str_to_split = parsed_num_str + if magnitude_str_to_split.startswith('-'): + magnitude_str_to_split = magnitude_str_to_split[1:] + + if not magnitude_str_to_split or magnitude_str_to_split == ".": return str(n_orig_param) + + parts_of_magnitude = magnitude_str_to_split.split('.', 1) + integer_part_str = parts_of_magnitude[0] + fractional_part_str_for_logic = parts_of_magnitude[1] if len(parts_of_magnitude) > 1 else "" + + if fractional_part_str_for_logic and not fractional_part_str_for_logic.isdigit(): + return str(n_orig_param) + + integer_words = number_to_words_uz(integer_part_str if integer_part_str else "0") + if integer_words == (integer_part_str if integer_part_str else "0") and \ + any(c.isdigit() for c in integer_words): + return str(n_orig_param) + + fractional_words = "" + if fractional_part_str_for_logic: + if fractional_part_str_for_logic.startswith('0'): + fractional_words_list = [] + for digit_char in fractional_part_str_for_logic: + digit_word = number_to_words_uz(digit_char) + if digit_word == digit_char and any(c.isdigit() for c in digit_word): return str( + n_orig_param) + fractional_words_list.append(digit_word) + fractional_words = " ".join(filter(None, fractional_words_list)) + else: + if fractional_part_str_for_logic: + frac_conv_test = number_to_words_uz(fractional_part_str_for_logic) + if frac_conv_test == fractional_part_str_for_logic and any( + c.isdigit() for c in frac_conv_test): + return str(n_orig_param) + fractional_words = frac_conv_test + else: + fractional_words = "" + + result_parts = [] + if prefix: result_parts.append(prefix.strip()) + result_parts.append(integer_words) + + if fractional_part_str_for_logic: + result_parts.append("butun") + if fractional_words: + result_parts.append(fractional_words) + + final_str = " ".join(filter(None, result_parts)).strip() + + if num_val_as_float == 0.0 and integer_words == "nol" and not fractional_part_str_for_logic: + return prefix + "nol" + + if not final_str or (prefix and final_str == prefix.strip()): + if num_val_as_float == 0.0: return prefix + "nol" + return str(n_orig_param) + return final_str + except ValueError: + return str(n_orig_param) + + n_to_convert_int = 0 + is_negative_for_int_path = False + + if _n_val_for_int_logic_from_float is not None: + is_negative_for_int_path = _is_negative_from_float_path + n_to_convert_int = abs(_n_val_for_int_logic_from_float) + elif input_is_string: + num_str_for_int = string_cleaned_for_numeric_parsing + if num_str_for_int.startswith('-'): + is_negative_for_int_path = True + num_str_for_int = num_str_for_int[1:] + + if not num_str_for_int.isdigit(): + return str(n_orig_param) + + if not num_str_for_int: return str(n_orig_param) + + n_to_convert_int = int(num_str_for_int) + if n_to_convert_int == 0 and original_input_as_str.strip() == "-0" and not is_negative_for_int_path: + is_negative_for_int_path = True + + elif isinstance(n_orig_param, int): + val_to_process_int = n_orig_param + if val_to_process_int < 0: + is_negative_for_int_path = True + n_to_convert_int = abs(val_to_process_int) + else: + n_to_convert_int = val_to_process_int + else: + return str(n_orig_param) + + if n_to_convert_int == 0: + return "minus nol" if is_negative_for_int_path else "nol" + + prefix_int = "minus " if is_negative_for_int_path else "" + + scales_exact_map = {100: "yuz", 1000: "ming", 10 ** 6: "million", 10 ** 9: "milliard", 10 ** 12: "trillion"} + if n_to_convert_int in scales_exact_map and n_to_convert_int >= 1000: + return (prefix_int + scales_exact_map[n_to_convert_int]).strip() + + parts_int = [] + scales_int_factors = [(10 ** 12, "trillion"), (10 ** 9, "milliard"), (10 ** 6, "million"), (1000, "ming")] + current_n_int = n_to_convert_int + for scale_value, scale_name in scales_int_factors: + if current_n_int >= scale_value: + count = current_n_int // scale_value + count_words = number_to_words_uz(str(count)) + if count_words == str(count) and any(c.isdigit() for c in count_words): return str(n_orig_param) + + parts_int.append(count_words) + parts_int.append(scale_name) + current_n_int %= scale_value + if current_n_int == 0: break + + if current_n_int > 0: + small_part_words_int = _number_to_words_uz_small(current_n_int) + if small_part_words_int: + parts_int.append(small_part_words_int) + elif current_n_int != 0: + return str(n_orig_param) + + if not parts_int and n_to_convert_int != 0: + return str(n_orig_param) + + return (prefix_int + " ".join(filter(None, parts_int))).strip() + + +def _get_ordinal_suffix_uz(word_for_suffix): + if not word_for_suffix: return "" + last_char = word_for_suffix[-1].lower() + vowels = "aeiouoʻ" + if last_char == "'" and len(word_for_suffix) > 1: + last_char = word_for_suffix[-2].lower() + return "nchi" if last_char in vowels else "inchi" + + +def number_to_ordinal_uz(n_orig_param, append_suffix_directly=True): + if isinstance(n_orig_param, str): + cleaned_str = n_orig_param.strip().replace(',', '').replace(' ', '') + if '.' in cleaned_str: return str(n_orig_param) + sign = "" + if cleaned_str.startswith('-'): + sign = "-" + cleaned_str = cleaned_str[1:] + if not cleaned_str.isdigit(): return str(n_orig_param) + if not cleaned_str: + return str(n_orig_param) + num_for_logic_str = sign + cleaned_str + elif isinstance(n_orig_param, float): + if not n_orig_param.is_integer(): return str(n_orig_param) + num_for_logic_str = str(int(n_orig_param)) + elif isinstance(n_orig_param, int): + num_for_logic_str = str(n_orig_param) + else: + return str(n_orig_param) + + is_negative_ord = num_for_logic_str.startswith('-') + abs_num_str_ord = num_for_logic_str[1:] if is_negative_ord else num_for_logic_str + + if not abs_num_str_ord.isdigit(): return str(n_orig_param) + n_val_logic_ord = int(abs_num_str_ord) + + if n_val_logic_ord == 0 and not is_negative_ord: + base_word = "nol" + return base_word + "inchi" if append_suffix_directly else base_word + elif n_val_logic_ord == 0 and is_negative_ord: + base_word = "minus nol" + return base_word + "inchi" if append_suffix_directly else base_word + + cardinal_word_full = number_to_words_uz(num_for_logic_str) + + if cardinal_word_full == num_for_logic_str and any(c.isdigit() for c in cardinal_word_full): + return str(n_orig_param) + + prefix_ord = "" + cardinal_word_for_suffix = cardinal_word_full + if cardinal_word_full.startswith("minus "): + prefix_ord = "minus " + cardinal_word_for_suffix = cardinal_word_full[len(prefix_ord):] + + if not cardinal_word_for_suffix or (n_val_logic_ord != 0 and cardinal_word_for_suffix == "nol"): + return str(n_orig_param) + if not append_suffix_directly: return cardinal_word_full + if not cardinal_word_for_suffix.strip(): return str(n_orig_param) + + last_word_component = cardinal_word_for_suffix.split()[-1] + suffix = _get_ordinal_suffix_uz(last_word_component) + return prefix_ord + cardinal_word_for_suffix + suffix + + +def _convert_version_part(part_str): + original_part_str_for_revert = part_str + + if not part_str.isdigit(): + res = number_to_words_uz(part_str) + if res == part_str and any(c.isdigit() for c in res): + return original_part_str_for_revert + return res + + if not part_str: + return "" + + num_leading_zeros = 0 + for char_val in part_str: + if char_val == '0': + num_leading_zeros += 1 + else: + break + + leading_zeros_word_tokens = [] + if num_leading_zeros > 0: + zeros_str_part = part_str[:num_leading_zeros] + for zero_char_digit in zeros_str_part: + word_for_zero = number_to_words_uz(zero_char_digit) + if word_for_zero == zero_char_digit and any(c.isdigit() for c in word_for_zero): + return original_part_str_for_revert + leading_zeros_word_tokens.append(word_for_zero) + + remaining_digits_str = part_str[num_leading_zeros:] + final_word_tokens = list(leading_zeros_word_tokens) + + if not remaining_digits_str: + return " ".join(filter(None, final_word_tokens)) + + if num_leading_zeros > 0: + remaining_part_as_words = number_to_words_uz(remaining_digits_str) + if remaining_part_as_words == remaining_digits_str and any(c.isdigit() for c in remaining_part_as_words): + return original_part_str_for_revert + if remaining_part_as_words: + final_word_tokens.append(remaining_part_as_words) + else: + if len(remaining_digits_str) >= 3: + digit_by_digit_words_temp = [] + for digit_char in remaining_digits_str: + word_for_digit = number_to_words_uz(digit_char) + if word_for_digit == digit_char and any(c.isdigit() for c in word_for_digit): + return original_part_str_for_revert + digit_by_digit_words_temp.append(word_for_digit) + final_word_tokens.extend(digit_by_digit_words_temp) + else: + std_conversion = number_to_words_uz(remaining_digits_str) + if std_conversion == remaining_digits_str and any(c.isdigit() for c in std_conversion): + return original_part_str_for_revert + final_word_tokens.append(std_conversion) + + return " ".join(filter(None, final_word_tokens)) + + +def convert_non_roman_numbers_to_text(text_input): + text = str(text_input) + _num_re_core = r'\d{1,3}(?:[,\s]\d{3})*(?:\.\d+)?|\d+(?:\.\d+)?' + _num_re_int_core = r'\d{1,3}(?:[,\s]\d{3})*|\d+' + + percent_pattern = re.compile(rf'(%)\s*(-?)({_num_re_core})|(-?)({_num_re_core})\s*(%)') + + def replace_percent(match): + sign, digits_str = (match.group(2), match.group(3)) if match.group(1) == '%' else \ + (match.group(4), match.group(5)) + num_val_str = (sign or '') + (digits_str or '') + try: + num_words = number_to_words_uz(num_val_str) + if num_words == num_val_str and any(c.isdigit() for c in num_words): + return match.group(0) + return f"{num_words} foiz" + except Exception: + return match.group(0) + + text = percent_pattern.sub(replace_percent, text) + + number_with_suffix_pattern = re.compile(rf'(-?)({_num_re_int_core})-([dg][ae]|ga|da|dan)(?=\b|[\s\.,!?;:])', + flags=re.IGNORECASE) + processed_parts_ns = [] + last_idx_ns = 0 + current_text_for_ns_processing = text + for match_ns in re.finditer(number_with_suffix_pattern, current_text_for_ns_processing): + sign, digits, suffix_val_orig = match_ns.group(1), match_ns.group(2), match_ns.group(3).lower() + start_ns, end_ns = match_ns.span() + processed_parts_ns.append(current_text_for_ns_processing[last_idx_ns:start_ns]) + num_str_ns = (sign or '') + digits + suffix_val_ns = suffix_val_orig + try: + cardinal_word_full_ns = number_to_words_uz(num_str_ns) + if cardinal_word_full_ns == num_str_ns and any(c.isdigit() for c in cardinal_word_full_ns): + processed_parts_ns.append(match_ns.group(0)) + else: + prefix_ns = "" + cardinal_word_ns = cardinal_word_full_ns + if cardinal_word_full_ns.startswith("minus "): + prefix_ns = "minus " + cardinal_word_ns = cardinal_word_full_ns[len(prefix_ns):] + words_ns = cardinal_word_ns.split() + if words_ns and words_ns[-1]: + last_word_ns = words_ns[-1] + jarangsiz_ns = "fkpsshxchtq" + last_char_for_harmony_ns = last_word_ns[-1] + if last_char_for_harmony_ns == "'" and len(last_word_ns) > 1: + last_char_for_harmony_ns = last_word_ns[-2] + + if suffix_val_ns == "ga": + if last_char_for_harmony_ns in "kq": suffix_val_ns = "qa" + words_ns[-1] += suffix_val_ns + processed_parts_ns.append(prefix_ns + " ".join(words_ns)) + else: + processed_parts_ns.append(match_ns.group(0)) + except Exception: + processed_parts_ns.append(match_ns.group(0)) + last_idx_ns = end_ns + processed_parts_ns.append(current_text_for_ns_processing[last_idx_ns:]) + text = "".join(processed_parts_ns) + + _version_str_pattern = re.compile(r'\b(\d+(?:\.\d+){2,})\b') + + processed_parts_vs = [] + last_idx_vs = 0 + current_text_for_vs_processing = text + for match_vs in _version_str_pattern.finditer(current_text_for_vs_processing): + start_vs, end_vs = match_vs.span() + processed_parts_vs.append(current_text_for_vs_processing[last_idx_vs:start_vs]) + version_full_match = match_vs.group(0) + parts = version_full_match.split('.') + try: + word_parts = [_convert_version_part(p) for p in parts] + + conversion_failed_for_any_part = False + for i, p_original in enumerate(parts): + if word_parts[i] == p_original and p_original.isdigit(): + conversion_failed_for_any_part = True + break + + if conversion_failed_for_any_part: + processed_parts_vs.append(version_full_match) + else: + processed_parts_vs.append(".".join(word_parts)) + except Exception: + processed_parts_vs.append(version_full_match) + last_idx_vs = end_vs + processed_parts_vs.append(current_text_for_vs_processing[last_idx_vs:]) + text = "".join(processed_parts_vs) + + ordinal_hyphen_pattern = re.compile(rf'(-?)({_num_re_int_core})-') + processed_parts_oh = [] + last_idx_oh = 0 + current_text_for_oh_processing = text + for match_obj_oh in re.finditer(ordinal_hyphen_pattern, current_text_for_oh_processing): + sign_oh, digits_oh = match_obj_oh.group(1), match_obj_oh.group(2) + start_oh, end_oh = match_obj_oh.span() + + processed_parts_oh.append(current_text_for_oh_processing[last_idx_oh:start_oh]) + num_str_oh = (sign_oh or '') + digits_oh + try: + ordinal_word_oh = number_to_ordinal_uz(num_str_oh, append_suffix_directly=True) + if ordinal_word_oh == num_str_oh and any(c.isdigit() for c in ordinal_word_oh): + processed_parts_oh.append(match_obj_oh.group(0)) + else: + processed_parts_oh.append(ordinal_word_oh) + if end_oh < len(current_text_for_oh_processing) and \ + not current_text_for_oh_processing[end_oh].isspace() and \ + current_text_for_oh_processing[end_oh].isalnum() and \ + not ordinal_word_oh.endswith(" "): + processed_parts_oh.append(" ") + except Exception: + processed_parts_oh.append(match_obj_oh.group(0)) + last_idx_oh = end_oh + processed_parts_oh.append(current_text_for_oh_processing[last_idx_oh:]) + text = "".join(processed_parts_oh) + + cardinal_numbers_pattern = re.compile(rf'\b(-?(?:\d{{1,3}}(?:[,\s]\d{{3}})*|\d+)(?:\.\d+)?)\b') + + new_text_parts_cs = [] + last_pos_cs = 0 + current_text_for_cs_processing = text + for match_cs in cardinal_numbers_pattern.finditer(current_text_for_cs_processing): + num_str_cs = match_cs.group(0) + start_cs, end_cs = match_cs.span() + new_text_parts_cs.append(current_text_for_cs_processing[last_pos_cs:start_cs]) + + should_convert_cs = True + temp_num_str_for_check = num_str_cs[1:] if num_str_cs.startswith('-') else num_str_cs + int_part_for_len_check = temp_num_str_for_check.split('.', 1)[ + 0] if '.' in temp_num_str_for_check else temp_num_str_for_check + cleaned_int_part_for_len_check = int_part_for_len_check.replace(',', '').replace(' ', '') + + if '.' not in num_str_cs and len( + cleaned_int_part_for_len_check) > 12 and cleaned_int_part_for_len_check.isdigit(): + should_convert_cs = False + + if should_convert_cs: + try: + converted_words_cs = number_to_words_uz(num_str_cs) + if converted_words_cs == num_str_cs and any(c.isdigit() for c in converted_words_cs): + new_text_parts_cs.append(num_str_cs) + else: + new_text_parts_cs.append(converted_words_cs) + except Exception: + new_text_parts_cs.append(num_str_cs) + else: + new_text_parts_cs.append(num_str_cs) + last_pos_cs = end_cs + new_text_parts_cs.append(current_text_for_cs_processing[last_pos_cs:]) + text = "".join(new_text_parts_cs) + + text = re.sub(r'\(-([a-zA-Z\'o‘ʻ]+)\b\)', r'(minus \1)', text, flags=re.IGNORECASE) + text = re.sub(r'^-([a-zA-Z\'o‘ʻ]+)\b', r'minus \1', text, flags=re.IGNORECASE) + text = re.sub(r'(?<=\s)-([a-zA-Z\'o‘ʻ]+)\b', r'minus \1', text, flags=re.IGNORECASE) + + def replace_ta_units(current_text): + current_text = re.sub(r'\bbir\s+ta\b', 'bitta', current_text, flags=re.IGNORECASE) + ta_replacements = { + r'\bikki\s+ta\b': 'ikkita', r'\bolti\s+ta\b': 'oltita', r'\byetti\s+ta\b': 'yettita', + } + for p, r_val in ta_replacements.items(): current_text = re.sub(p, r_val, current_text, flags=re.IGNORECASE) + ta_direct_concat = { + r'\buch\s+ta\b': 'uchta', r'\bto\'rt\s+ta\b': 'to\'rtta', r'\bto‘rt\s+ta\b': 'to‘rtta', + r'\bbesh\s+ta\b': 'beshta', r'\bsakkiz\s+ta\b': 'sakkizta', + r'\bto\'qqiz\s+ta\b': 'to\'qqizta', r'\bto‘qqiz\s+ta\b': 'to‘qqizta', + } + for p, r_val in ta_direct_concat.items(): current_text = re.sub(p, r_val, current_text, flags=re.IGNORECASE) + return current_text + + text = replace_ta_units(text) + + text = re.sub(r'(\S+(?:inchi|nchi))\s*(?:inchi|nchi|chi)\b', r'\1', text, flags=re.IGNORECASE) + + text = re.sub(r'\s+', ' ', text).strip() + return text + + diff --git a/runtime/frontend/text_to_phoneme/tools/convert_phone_numbers_to_text.py b/runtime/frontend/text_to_phoneme/tools/convert_phone_numbers_to_text.py new file mode 100644 index 0000000000000000000000000000000000000000..5ef2714437e5b9ac541c59410aa1c6d44fcb134b --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/convert_phone_numbers_to_text.py @@ -0,0 +1,159 @@ +import re + +UZBEK_DIGITS = { + "0": "nol", "1": "bir", "2": "ikki", "3": "uch", "4": "to'rt", + "5": "besh", "6": "olti", "7": "yetti", "8": "sakkiz", "9": "to'qqiz" +} + +UZBEK_TENS = { + "1": "o'n", "2": "yigirma", "3": "o'ttiz", "4": "qirq", + "5": "ellik", "6": "oltmish", "7": "yetmish", "8": "sakson", "9": "to'qson" +} + +UZBEK_HUNDRED = "yuz" +UZBEK_PLUS = "plyus" +UZBEK_COUNTRY_CODE = "to'qqiz yuz to'qson sakkiz" +UZBEK_OPERATOR_CODES = {"20", "33", "50", "55", "61", "62", "65", "66", "67", "69", "70", "71", "72", "73", + "74", "75", "76", "77", "78", "79", "88", "90", "91", "93", "94", "95", "97", "98", "99"} +_CURRENCY_AFTER = re.compile(r"\s*(so'm|sum|dollar|yevro|rubl|uzs|usd|eur)\b", re.IGNORECASE) + +PHONE_NUMBER_PATTERN = re.compile(r""" + ( # Capturing group for the whole phone number match + \+ \s* 9 \s* 9 \s* 8 (?: [\s\(\)-]* \d ){9} (?!\d) + | + (?: + (? 1: + num_str = chunk_str.lstrip('0') + if not num_str: + num_str = "0" + else: + num_str = chunk_str + + words = [] + if len(num_str) == 3: + if num_str[0] != "1": + words.append(UZBEK_DIGITS[num_str[0]]) + words.append(UZBEK_HUNDRED) + + tens_digit = num_str[1] + unit_digit = num_str[2] + + if tens_digit == '0' and unit_digit == '0': + pass + elif tens_digit == '0': + words.append(UZBEK_DIGITS[unit_digit]) + elif unit_digit == '0': + words.append(UZBEK_TENS[tens_digit]) + else: + words.append(UZBEK_TENS[tens_digit]) + words.append(UZBEK_DIGITS[unit_digit]) + + elif len(num_str) == 2: + tens_digit = num_str[0] + unit_digit = num_str[1] + if unit_digit == '0': + words.append(UZBEK_TENS[tens_digit]) + else: + words.append(UZBEK_TENS[tens_digit]) + words.append(UZBEK_DIGITS[unit_digit]) + + elif len(num_str) == 1: + words.append(UZBEK_DIGITS[num_str[0]]) + + return " ".join(filter(None, words)) + + +def phone_to_text_replacer(match_obj): + original_match_str = match_obj.group(0) + + leading_whitespace_match = re.match(r"(\s*)", original_match_str) + leading_whitespace = leading_whitespace_match.group(1) if leading_whitespace_match else "" + + core_number_str = original_match_str[len(leading_whitespace):] + digits = re.sub(r'\D', '', core_number_str) + group_lengths = [len(group) for group in re.findall(r'\d+', core_number_str)] + if _CURRENCY_AFTER.match(match_obj.string, match_obj.end()): + return original_match_str + + final_text_segments = [] + + has_plus = core_number_str.strip().startswith('+') + current_digits_for_grouping = "" + valid_format_found = False + + cc_and_prefix_parts = [] + if has_plus and digits.startswith("998") and len(digits) == 12: + cc_and_prefix_parts.append(UZBEK_PLUS) + cc_and_prefix_parts.append(UZBEK_COUNTRY_CODE) + current_digits_for_grouping = digits[3:] + valid_format_found = True + elif not has_plus and digits.startswith("998") and len(digits) == 12: + cc_and_prefix_parts.append(UZBEK_COUNTRY_CODE) + current_digits_for_grouping = digits[3:] + valid_format_found = True + elif not has_plus and len(digits) == 9 and ( + group_lengths == [2, 3, 2, 2] or + (group_lengths in ([9], [2, 7], [2, 3, 4]) and digits[:2] in UZBEK_OPERATOR_CODES)): + current_digits_for_grouping = digits + valid_format_found = True + else: + return original_match_str + + if not valid_format_found or len(current_digits_for_grouping) != 9: + return original_match_str + + if cc_and_prefix_parts: + final_text_segments.append(" ".join(cc_and_prefix_parts)) + + op_text = _convert_chunk_to_text(current_digits_for_grouping[0:2]) + if op_text: final_text_segments.append(op_text) + + sub1_text = _convert_chunk_to_text(current_digits_for_grouping[2:5]) + if sub1_text: final_text_segments.append(sub1_text) + + sub2_text = _convert_chunk_to_text(current_digits_for_grouping[5:7]) + if sub2_text: final_text_segments.append(sub2_text) + + sub3_text = _convert_chunk_to_text(current_digits_for_grouping[7:9]) + if sub3_text: final_text_segments.append(sub3_text) + + converted_phone_text = ", ".join(s for s in final_text_segments if s) + + return leading_whitespace + converted_phone_text + + +def convert_phone_numbers_to_text(text): + return PHONE_NUMBER_PATTERN.sub(phone_to_text_replacer, text) + + diff --git a/runtime/frontend/text_to_phoneme/tools/convert_roman_numerals_to_text.py b/runtime/frontend/text_to_phoneme/tools/convert_roman_numerals_to_text.py new file mode 100644 index 0000000000000000000000000000000000000000..e3ffc8499da4649adfc46ea563c707f9bcac0d90 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/convert_roman_numerals_to_text.py @@ -0,0 +1,201 @@ +import re + +ASR_KEYWORDS = { + "asr", "asri", "asrim", "asring", "asrimiz", "asringiz", "asrlari", + "asrga", "asrda", "asrdan", "asrning", "asrlarga", "asrlarda", + "asrlardan", "asrlarning", "asrlarimiz", "asrlaringiz", + "asrgacha", "asrdayoq", "asrlab", "asrdagi" +} +ORDINAL_KEYWORDS_GENERAL_BASES = { + "bob", "modda", "band", "qism", "sinf", "guruh", "bosqich", + "daraja", "sahifa", "bet", "jild", "nashr", "versiya", + "yil", "qirol", +} + + +def _number_to_words_uz_small(n): + if n < 0 or n > 999: return str(n) + units = ["", "bir", "ikki", "uch", "to'rt", "besh", "olti", "yetti", "sakkiz", "to'qqiz"] + tens = ["", "o'n", "yigirma", "o'ttiz", "qirq", "ellik", "oltmish", "yetmish", "sakson", "to'qson"] + if n == 0: return "nol" + parts = [] + if n >= 100: + hundreds_digit = n // 100 + if hundreds_digit == 1: + parts.append("yuz") + else: + parts.extend([units[hundreds_digit], "yuz"]) + n %= 100 + if n >= 10: + parts.append(tens[n // 10]) + n %= 10 + if n > 0: parts.append(units[n]) + return " ".join(filter(None, parts)) + + +def number_to_words_uz_for_roman(n_int_positive): + if not isinstance(n_int_positive, int) or n_int_positive < 0: + return str(n_int_positive) + + if n_int_positive == 0: return "nol" + + parts_int = [] + scales_int = [(10 ** 12, "trillion"), (10 ** 9, "milliard"), (10 ** 6, "million"), (1000, "ming")] + special_cases_int = {val: name for val, name in scales_int} + + if n_int_positive in special_cases_int and n_int_positive >= 1000: + return special_cases_int[n_int_positive] + + current_n_int = n_int_positive + for scale_value, scale_name in scales_int: + if current_n_int >= scale_value: + count = current_n_int // scale_value + word_for_count = number_to_words_uz_for_roman(count) + parts_int.append(word_for_count) + parts_int.append(scale_name) + current_n_int %= scale_value + if current_n_int == 0: break + if current_n_int > 0: + small_part_words_int = _number_to_words_uz_small(current_n_int) + if small_part_words_int: parts_int.append(small_part_words_int) + + return " ".join(filter(None, parts_int)).strip() + + +def _get_ordinal_suffix_uz(word_for_suffix): + if not word_for_suffix: return "" + vowels = "aeiou" + return "nchi" if word_for_suffix[-1].lower() in vowels else "inchi" + + +def number_to_ordinal_uz_for_roman(n_int_positive, append_suffix_directly=True): + if not isinstance(n_int_positive, int) or n_int_positive < 0: + return str(n_int_positive) + if n_int_positive == 0: + base_word = "nol" + return base_word + "inchi" if append_suffix_directly else base_word + + cardinal_word_full = number_to_words_uz_for_roman(n_int_positive) + if not cardinal_word_full or (n_int_positive != 0 and cardinal_word_full == "nol"): + return str(n_int_positive) + if not append_suffix_directly: return cardinal_word_full + if not cardinal_word_full.strip(): return str(n_int_positive) + + last_word_component = cardinal_word_full.split()[-1] + suffix = _get_ordinal_suffix_uz(last_word_component) + return cardinal_word_full + suffix + + +def roman_to_int(s_upper): + roman_map = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000} + int_val, prev_val = 0, 0 + for char_s in reversed(s_upper): + val = roman_map.get(char_s) + if not val: return None + int_val += val if val >= prev_val else -val + prev_val = val + return int_val + + +def _has_ordinal_context(following_text): + word_match = re.match(r"([^\s\W\d_']+)", following_text) + if not word_match: + return False + word = word_match.group(1).lower() + if word in ASR_KEYWORDS or re.fullmatch(r'(inchi|nchi|chi)', word): + return True + return any(word.startswith(base) for base in ORDINAL_KEYWORDS_GENERAL_BASES) + + +def convert_roman_numerals_to_text(text_input): + text = str(text_input) + + roman_hyphen_inner_pattern = r'(M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3}))' + roman_ordinal_hyphen_pattern = re.compile(r"(? 0: + try: + ordinal_word = number_to_ordinal_uz_for_roman(num_val, append_suffix_directly=True) + processed_parts_rh.append(ordinal_word) + + current_pos_after_hyphen = hyphen_end_rh + suffix_matched_len = 0 + suffix_pattern = r'(inchi|nchi|chi)(?![a-zA-Z])' + suffix_match = re.match(suffix_pattern, text[current_pos_after_hyphen:], re.IGNORECASE) + if suffix_match: + suffix_matched_len = len(suffix_match.group(1)) + + final_idx_for_this_construct = hyphen_end_rh + suffix_matched_len + + if final_idx_for_this_construct < len(text) and \ + text[final_idx_for_this_construct].isalnum() and \ + not text[final_idx_for_this_construct].isspace(): + processed_parts_rh.append(" ") + + last_idx_rh = final_idx_for_this_construct + + except Exception: + processed_parts_rh.append(match_rh.group(0)) + last_idx_rh = hyphen_end_rh + else: + processed_parts_rh.append(match_rh.group(0)) + last_idx_rh = hyphen_end_rh + processed_parts_rh.append(text[last_idx_rh:]) + text = "".join(processed_parts_rh) + + roman_pattern_core_UPPERCASE = r'M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3})' + general_roman_pattern = re.compile(r"(?= 2: + process_as_roman = True + + if process_as_roman: + try: + return number_to_ordinal_uz_for_roman(num_val, append_suffix_directly=True) + except Exception: + return original_match_text + else: + return original_match_text + + text = general_roman_pattern.sub(replace_general_roman, text) + + text = re.sub(r'\s+', ' ', text).strip() + return text + + diff --git a/runtime/frontend/text_to_phoneme/tools/convert_symbols_to_uzbek_text.py b/runtime/frontend/text_to_phoneme/tools/convert_symbols_to_uzbek_text.py new file mode 100644 index 0000000000000000000000000000000000000000..bb4e1dcf4969d668ff5102d814734780491c845e --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/convert_symbols_to_uzbek_text.py @@ -0,0 +1,160 @@ +import re + + +def convert_symbols_to_uzbek_text(text): + processed_text = text + + num_pattern_no_capture_robust = r"(?:\d+(?:\.\d*)?|\.\d+)" + uzbek_latin_cyrillic_chars = "a-zA-ZабвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯўқғҳЎҚҒҲʼʻ" + general_word_pattern = rf"(?:[{uzbek_latin_cyrillic_chars}]{{2,}}\b)" + non_arith_hyphen_suffixes_list = ["chi", "nchi", "inchi", "um", "lamchi", "ov", "ovlon", "tacha", "ta", "dona", + "ga", "da", "dan", "ni", "ning"] + non_arith_hyphen_suffixes_pattern = r"(?:" + r"\b|".join(non_arith_hyphen_suffixes_list) + r"\b)" + hyphen_preservation_lookahead = rf"(?:\s*(?:{non_arith_hyphen_suffixes_pattern})|\s+{general_word_pattern})" + placeholder_hyphen = "##PROTECTED_HYPHEN##" + placeholder_spaced_hyphen_prefix = "##PSH_PRE##" + placeholder_spaced_hyphen_suffix = "##PSH_SUF##" + placeholders_map = {} + placeholder_idx = 0 + operand_pattern_main = rf"(?:{num_pattern_no_capture_robust}|__PARENEXPR_\d+__)" + + processed_text = re.sub(rf"({num_pattern_no_capture_robust})\s*%", r"\1 foiz", processed_text) + processed_text = re.sub(rf"%\s*({num_pattern_no_capture_robust})", r"\1 foiz", processed_text) + + lookahead_chars_for_temp_unit = uzbek_latin_cyrillic_chars + "0-9" + + def _make_temp_replacer_with_context(unit_in_uzbek): + def replacer(match_obj): + original_string_for_this_match = match_obj.string + match_start_index = match_obj.start() + + sign_char = match_obj.group(1) + number_val = match_obj.group(2) + + sign_text = "" + if sign_char == "+": + sign_text = "plyus " + elif sign_char == "-": + sign_text = "minus " + + core_replacement = f"{sign_text}{number_val} {unit_in_uzbek}" + + leading_space = " " + if match_start_index == 0: + leading_space = "" + elif original_string_for_this_match[match_start_index - 1] in "([{": + leading_space = "" + + return f"{leading_space}{core_replacement}" + + return replacer + + temp_pattern_C_str = rf"([+-])?\s*({num_pattern_no_capture_robust})\s*(?:°C\b|C\b(?![{lookahead_chars_for_temp_unit}]))" + processed_text = re.sub(temp_pattern_C_str, _make_temp_replacer_with_context("daraja Selsiy"), processed_text) + + temp_pattern_F_str = rf"([+-])?\s*({num_pattern_no_capture_robust})\s*(?:°F\b|F\b(?![{lookahead_chars_for_temp_unit}]))" + processed_text = re.sub(temp_pattern_F_str, _make_temp_replacer_with_context("daraja Farengeyt"), processed_text) + + temp_pattern_Deg_str = rf"([+-])?\s*({num_pattern_no_capture_robust})\s*°" + processed_text = re.sub(temp_pattern_Deg_str, _make_temp_replacer_with_context("daraja"), processed_text) + + _suffixes_for_protect_inner = "|".join(non_arith_hyphen_suffixes_list) + protect_pattern_no_space = rf"({num_pattern_no_capture_robust})-({num_pattern_no_capture_robust})(\s*(?:{_suffixes_for_protect_inner})\b)" + processed_text = re.sub(protect_pattern_no_space, rf"\1{placeholder_hyphen}\2\3", processed_text) + protect_pattern_with_space = rf"({num_pattern_no_capture_robust})(\s*)-(\s*)({num_pattern_no_capture_robust}\s*(?:{_suffixes_for_protect_inner})\b)" + + def repl_spaced_hyphen_protection(match): + return f"{match.group(1)}{placeholder_spaced_hyphen_prefix}{placeholder_hyphen}{placeholder_spaced_hyphen_suffix}{match.group(4)}" + + processed_text = re.sub(protect_pattern_with_space, repl_spaced_hyphen_protection, processed_text) + + def convert_operators_in_simple_segment(s_in): + s_out = s_in + s_out = re.sub(rf"({operand_pattern_main})\s*\*\s*({operand_pattern_main})", r"\1 ko'paytiruv \2", s_out) + s_out = re.sub(rf"({operand_pattern_main})\s*/\s*({operand_pattern_main})", r"\1 bo'luv \2", s_out) + s_out = re.sub(rf"({operand_pattern_main})\s*\+\s*({operand_pattern_main})", r"\1 plyus \2", s_out) + s_out = re.sub( + rf"({operand_pattern_main})\s*-\s*(?:({operand_pattern_main})\b)(?!{hyphen_preservation_lookahead})", + r"\1 ayiruv \2", s_out) + s_out = re.sub(rf"({operand_pattern_main})\s*=\s*({operand_pattern_main})", r"\1 teng \2", s_out) + s_out = re.sub(rf"({operand_pattern_main})\s*>\s*({operand_pattern_main})", r"\1 katta \2", s_out) + s_out = re.sub(rf"({operand_pattern_main})\s*<\s*({operand_pattern_main})", r"\1 kichik \2", s_out) + return s_out + + arith_minus_pattern_detector = rf"{num_pattern_no_capture_robust}\s*-\s*(?:{num_pattern_no_capture_robust})\b(?!{hyphen_preservation_lookahead})" + simple_arith_content_detector = rf"(?=.*?\d)(?=.*(?:[+*/=<>]|{arith_minus_pattern_detector}))" + + def create_repl_brackets_callback(open_text_uz, close_text_uz): + nonlocal placeholder_idx + + def repl_brackets_cb(match_obj): + nonlocal placeholder_idx + content = match_obj.group(1) + if placeholder_hyphen in content and \ + (placeholder_spaced_hyphen_prefix in content or placeholder_spaced_hyphen_suffix in content): + return match_obj.group(0) + is_arithmetic_content = bool(re.search(simple_arith_content_detector, content)) + if is_arithmetic_content: + processed_internal_content = convert_operators_in_simple_segment(content) + full_textual_expression = f" {open_text_uz} {processed_internal_content} {close_text_uz} " + ph_key = f"__PARENEXPR_{placeholder_idx}__" + placeholders_map[ph_key] = full_textual_expression.strip() + placeholder_idx += 1 + return ph_key + else: + return match_obj.group(0) + + return repl_brackets_cb + + max_paren_iterations = 7 + for _ in range(max_paren_iterations): + text_before_paren_pass = processed_text + cb_round = create_repl_brackets_callback("ochiluvchi qavs", "yopiluvchi qavs") + processed_text = re.sub(r"\(([^()\[\]{}]*?)\)", cb_round, processed_text) + cb_square = create_repl_brackets_callback("ochiluvchi kvadrat qavs", "yopiluvchi kvadrat qavs") + processed_text = re.sub(r"\[([^()\[\]{}]*?)\]", cb_square, processed_text) + cb_curly = create_repl_brackets_callback("ochiluvchi figurali qavs", "yopiluvchi figurali qavs") + processed_text = re.sub(r"\{([^()\[\]{}]*?)\}", cb_curly, processed_text) + if text_before_paren_pass == processed_text: + break + + max_op_iterations = 7 + for _ in range(max_op_iterations): + text_before_op_pass = processed_text + processed_text = convert_operators_in_simple_segment(processed_text) + if text_before_op_pass == processed_text: + break + + processed_text = processed_text.replace(placeholder_hyphen, "-") + processed_text = processed_text.replace(placeholder_spaced_hyphen_prefix, " ") + processed_text = processed_text.replace(placeholder_spaced_hyphen_suffix, " ") + + sorted_ph_keys = sorted(placeholders_map.keys(), key=lambda k: int(re.search(r'\d+', k).group()), reverse=True) + for ph_key in sorted_ph_keys: + replacement_text = placeholders_map[ph_key] + processed_text = processed_text.replace(ph_key, f" {replacement_text} ") + + processed_text = re.sub(r'\b([A-Za-z]):(?=[/\\])', r'\1', processed_text) + + processed_text = re.sub(r"_{2,}", " ", processed_text) + + symbol_map_fallbacks = { + "%": " foiz ", + "#": " raqam ", "&": " va ", + "+": " plyus ", + "*": " yulduzcha ", "/": " slesh ", + "=": " teng ", ">": " katta ", "<": " kichik ", + "@": " kuchukcha ", "\\": " teskari slesh ", "_": " pastki chiziq ", + "~": " taxminan ", "^": " daraja ", "|": " vertikal chiziq ", + } + for symbol, replacement in symbol_map_fallbacks.items(): + processed_text = processed_text.replace(symbol, f" {replacement.strip()} ") + + foiz_suffixes_to_merge = r"(ni|ga|da|dan|ning|dir|lar|siz|cha|lik|im|ing|i|imiz|ingiz)\b" + pattern_foiz_suffix = rf"\bfoiz\s+({foiz_suffixes_to_merge})" + processed_text = re.sub(pattern_foiz_suffix, r"foiz\1", processed_text) + + processed_text = re.sub(r'\s+', ' ', processed_text).strip() + return processed_text + + diff --git a/runtime/frontend/text_to_phoneme/tools/expand_uzbek_abbreviations.py b/runtime/frontend/text_to_phoneme/tools/expand_uzbek_abbreviations.py new file mode 100644 index 0000000000000000000000000000000000000000..beed388150475fff62f27cbaeb7c710c24b0d7f6 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/expand_uzbek_abbreviations.py @@ -0,0 +1,182 @@ +import re + + +def expand_uzbek_abbreviations(text): + + replacements_definitions = [ + (r"(?i)(\d*[\s.,]*)m²", r"\1metr kvadrat"), + (r"(?i)(\d*[\s.,]*)km²", r"\1kilometr kvadrat"), + (r"(?i)(\d*[\s.,]*)sm²", r"\1santimetr kvadrat"), + (r"(?i)(\d*[\s.,]*)dm²", r"\1detsimetr kvadrat"), + (r"(?i)(\d*[\s.,]*)mm²", r"\1millimetr kvadrat"), + + (r"(?i)(\d*[\s.,]*)m2", r"\1metr kvadrat"), + (r"(?i)(\d*[\s.,]*)km2", r"\1kilometr kvadrat"), + (r"(?i)(\d*[\s.,]*)sm2", r"\1santimetr kvadrat"), + (r"(?i)(\d*[\s.,]*)dm2", r"\1detsimetr kvadrat"), + (r"(?i)(\d*[\s.,]*)mm2", r"\1millimetr kvadrat"), + + (r"(?i)(\d*[\s.,]*)m³", r"\1kub metr"), + (r"(?i)(\d*[\s.,]*)km³", r"\1kilometr kub"), + (r"(?i)(\d*[\s.,]*)sm³", r"\1santimetr kub"), + (r"(?i)(\d*[\s.,]*)dm³", r"\1detsimetr kub"), + (r"(?i)(\d*[\s.,]*)mm³", r"\1millimetr kub"), + + (r"(?i)(\d*[\s.,]*)m3", r"\1kub metr"), + (r"(?i)(\d*[\s.,]*)km3", r"\1kilometr kub"), + (r"(?i)(\d*[\s.,]*)sm3", r"\1santimetr kub"), + (r"(?i)(\d*[\s.,]*)dm3", r"\1detsimetr kub"), + (r"(?i)(\d*[\s.,]*)mm3", r"\1millimetr kub"), + + (r"(?i)(\d*[\s.,]*)km/soat\b", r"\1kilometr soat"), + (r"(?i)(\d*[\s.,]*)km/s\b", r"\1kilometr sekund"), + (r"(?i)(\d*[\s.,]*)m/s\b", r"\1metr sekund"), + + (fr"(?i)(\d+(?:[.,]\d+)?)\s*kW\b\.?(?![a-zA-Z'])", r"\1 kilovatt"), + (fr"(?i)(? str: + text = normalize_uzbek_apostrophes(text) + + text = re.sub(r'g[`\']', "g'", text) + text = re.sub(r'o[`\']', "o'", text) + + text = standardize_number_dashes(text) + text = re.sub(r'(\d+)-(\w+)', r'NUM_DASH_\1_\2', text) + + text = text.replace('-', ' ') + + text = re.sub(r'[^a-zA-Z0-9\s\'.,?!NUM_DASH_]', '', text) + + text = re.sub(r'\.{2,}', '.', text) + text = re.sub(r'\s+', ' ', text) + + text = re.sub(r'NUM_DASH_(\d+)_(\w+)', r'\1-\2', text) + text = text.strip() + + return text + + +def full_normalize(text): + text = turkish_to_uzbek(text) + text = standartize_text(text) + text = normalize_text(text) + return text + + +def handle_uzb_letters(text: str) -> str: + return text.replace("o'", "ō").replace("g'", "ḡ").replace("O'", "Ō").replace("G'", "Ḡ") + +def add_space_around_symbols(text: str) -> str: + if not isinstance(text, str): + raise TypeError("Input must be a string.") + + pattern = r"([^\w\s'])|(? ', text) + + cleaned_text = re.sub(r'\s+', ' ', text_with_spaces) + + return cleaned_text.strip() + + diff --git a/runtime/frontend/text_to_phoneme/tools/pronounce_links_and_emails.py b/runtime/frontend/text_to_phoneme/tools/pronounce_links_and_emails.py new file mode 100644 index 0000000000000000000000000000000000000000..1463f60edf655601171419c6016035172bf80001 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/pronounce_links_and_emails.py @@ -0,0 +1,81 @@ +import re + +UZBEK_SYMBOLS = { + '.': 'nuqta', + '@': 'kuchukcha', + '/': 'slesh', + ':': 'ikki nuqta', + '-': 'chiziqcha', + '_': 'pastki chiziqcha', + '?': 'savol belgisi', + '=': 'tenglik belgisi', + '&': 'va belgisi', + '#': 'panjara', + '%': 'foiz', + '+': 'plyus' +} + + +def _convert_match_to_spoken_uzbek(match_obj): + original_text = match_obj.group(0) + final_spoken_segments = [] + current_text_to_process = original_text + + processed_prefix = False + if current_text_to_process.startswith("https://"): + final_spoken_segments.append("https") + final_spoken_segments.append(UZBEK_SYMBOLS[':']) + final_spoken_segments.append("ikkita") + final_spoken_segments.append(UZBEK_SYMBOLS['/']) + current_text_to_process = current_text_to_process[len("https://"):] + processed_prefix = True + elif current_text_to_process.startswith("http://"): + final_spoken_segments.append("http") + final_spoken_segments.append(UZBEK_SYMBOLS[':']) + final_spoken_segments.append("ikkita") + final_spoken_segments.append(UZBEK_SYMBOLS['/']) + current_text_to_process = current_text_to_process[len("http://"):] + processed_prefix = True + + if current_text_to_process.startswith("www."): + final_spoken_segments.append("dablyu") + final_spoken_segments.append("dablyu") + final_spoken_segments.append("dablyu") + final_spoken_segments.append(UZBEK_SYMBOLS['.']) + current_text_to_process = current_text_to_process[len("www."):] + processed_prefix = True + + if not processed_prefix or current_text_to_process: + current_alnum_chunk = "" + + for char_code in current_text_to_process: + if char_code.isalnum(): + current_alnum_chunk += char_code + elif char_code in UZBEK_SYMBOLS: + if current_alnum_chunk: + final_spoken_segments.append(current_alnum_chunk) + current_alnum_chunk = "" + final_spoken_segments.append(UZBEK_SYMBOLS[char_code]) + else: + if current_alnum_chunk: + final_spoken_segments.append(current_alnum_chunk) + current_alnum_chunk = "" + final_spoken_segments.append(char_code) + + if current_alnum_chunk: + final_spoken_segments.append(current_alnum_chunk) + + return " ".join(filter(None, final_spoken_segments)) + + +def pronounce_links_and_emails(text): + if not text: + return "" + email_pattern = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b' + url_pattern = r'\b(?:https?://|www\.)[\w\-\._~:/?#[\]@!\$&\'()*+,;=%]+\b' + + processed_text = re.sub(url_pattern, _convert_match_to_spoken_uzbek, text) + processed_text = re.sub(email_pattern, _convert_match_to_spoken_uzbek, processed_text) + return processed_text + + diff --git a/runtime/frontend/text_to_phoneme/tools/split_text_numbers.py b/runtime/frontend/text_to_phoneme/tools/split_text_numbers.py new file mode 100644 index 0000000000000000000000000000000000000000..45ef29fd78de9cd18bef4cd33f86cd1054d4ead5 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/split_text_numbers.py @@ -0,0 +1,9 @@ +import re + +def split_text_numbers(text): + result = re.sub(r'([a-zA-Z])(\d)', r'\1 \2', text) + result = re.sub(r'(\d)([a-zA-Z])', r'\1 \2', result) + + return result + + diff --git a/runtime/frontend/text_to_phoneme/tools/spoken_lexicon.py b/runtime/frontend/text_to_phoneme/tools/spoken_lexicon.py new file mode 100644 index 0000000000000000000000000000000000000000..2e8246253c48ee382681470c3870a766fd414344 --- /dev/null +++ b/runtime/frontend/text_to_phoneme/tools/spoken_lexicon.py @@ -0,0 +1,40 @@ + +import re + +LEXICON = { + "SMS": "es-em-es", "IT": "ay-ti", "AI": "ey-ay", "SMM": "es-em-em", "HR": "eych-ar", + "CRM": "si-ar-em", "ID": "ay-di", "VIP": "vip", "IELTS": "ayelts", "TOEFL": "tofl", + "PDF": "pe-de-ef", "QR": "kyu-ar", "Wi-Fi": "vay-fay", "MRT": "em-er-te", "UZI": "uzi", + "EKG": "e-ka-ge", "MSKT": "em-es-ka-te", "NDS": "en-de-es", + "YouTube": "Yutub", "iPhone": "Ayfon", "WhatsApp": "Vatsap", "Google": "Gugl", "Zoom": "Zum", + "Click": "Klik", "Payme": "Peymi", "Uzcard": "Uzkard", "BYD": "bi-vay-di", + "Chevrolet": "Shevrole", "Excel": "Eksel", "Gmail": "Jimeyl", +} + +_TERM_RE = re.compile(r"(? 24 or minute > 59 or (second is not None and second > 59): + return match.group(0) + return attach_suffix(say_time(hour, minute, second, _after_soat(match)), match.group(suffix_group) or "") + + +def convert_times(text): + time = r"(?P\d{{1,2}}):(?P\d{{2}})" + range_re = re.compile(rf"(? 24 or max(m1, m2) > 59: + return match.group(0) + soat = _after_soat(match) + return f"{attach_suffix(say_time(h1, m1, after_soat=soat), 'dan')} " \ + f"{attach_suffix(say_time(h2, m2, after_soat=soat), 'gacha')}" + + text = range_re.sub(replace_range, text) + single_re = re.compile( + rf"(?\d{{1,2}}):(?P\d{{2}})(?::(?P\d{{2}}))?(?![\d:])(?:[\s-]?(?P{_SUFFIX_RE})\b)?", + flags=re.IGNORECASE) + return single_re.sub(lambda match: _time_match_to_text(match, "suffix"), text) + + +def convert_decimals(text): + text = re.sub(r"(?inchi|nchi|chi)\b" + rf"|[\s-]?(?P{_SUFFIX_RE}|ta)\b|-(?=[A-Za-z']))?", flags=re.IGNORECASE) + + def replace_range(match): + first, second = int(match.group(1)), int(match.group(2)) + if first >= second: + return match.group(0) + if match.group("ord") or match.group(0).endswith("-"): + tail = " " if match.group(0).endswith("-") else "" + return f"{number_to_ordinal_uz(str(first))}-{number_to_ordinal_uz(str(second))}{tail}" + return f"{say_number(first)}-{attach_suffix(say_number(second), match.group('suffix') or '')}" + + text = range_re.sub(replace_range, text) + text = re.sub(r"(?<=\d)\s?[-–/]\s?(?=\d)", ", ", text) + text = re.sub(r"(?<=[A-Za-z])-(?=\d)", " ", text) + return text + + +def convert_identifiers(text): + def replace(match): + digits = match.group(0) + if _CURRENCY_AFTER.match(match.string, match.end()) or len(digits) > 12: + return digits + groups, rest = [digits[:3]], digits[3:] + while rest: + take = 3 if len(rest) == 3 else 2 + groups.append(rest[:take]) + rest = rest[take:] + spoken = [" ".join(say_number(c) for c in g) if g.startswith("0") else say_number(g) for g in groups] + space = " " if match.start() and match.string[match.start() - 1].isalpha() else "" + return space + ", ".join(spoken) + + return re.sub(r"(? str: + normalized = text + for source, replacement in LEGACY_UZBEK_SENTINELS.items(): + normalized = normalized.replace(source, replacement) + for source, replacement in UZBEK_APOSTROPHE_VARIANTS.items(): + normalized = normalized.replace(source, replacement) + return normalized diff --git a/runtime/frontend/textnorm.py b/runtime/frontend/textnorm.py new file mode 100644 index 0000000000000000000000000000000000000000..44829d8c5a4ffc2605d258928a76e0595d8f756e --- /dev/null +++ b/runtime/frontend/textnorm.py @@ -0,0 +1,137 @@ + +from __future__ import annotations + +import re +import sys + +from common import TTS_UZ + +sys.path.insert(0, str(TTS_UZ)) +from text_to_phoneme.phoneme_converter import uzbek_to_ipa_final +from text_to_phoneme.pipelene_text_to_phoneme import is_punctuation_or_symbol, tokenize_text +from text_to_phoneme.text_normalization_for_tts import text_normalization_for_tts +from text_to_phoneme.uzbek_orthography import normalize_uzbek_apostrophes + +ALT_TAG_RE = re.compile(r"<[a-z][a-z -]*>") + +SUFFIXES = ("gacha", "larda", "dan", "da", "ga", "ni", "ning", "lar") +SUFFIX_RE = "|".join(SUFFIXES) +BAD_AFTER = re.compile(r"\d|\b(ayiruv|minus|bo'luv|kuchukcha|nuqta|dablyu)\b|\bnol nol\b|[@/\\#*_=<>{}\[\]|~^]") +NUMBER_WORDS = ("nol bir ikki uch to'rt besh olti yetti sakkiz to'qqiz o'n yigirma o'ttiz qirq ellik oltmish " + "yetmish sakson to'qson yuz ming million").split() +STRAY_U = re.compile(r"\b(" + "|".join(map(re.escape, NUMBER_WORDS)) + r") u\b") +ACRONYM = re.compile(r"\b[A-Z]{2,}\b|(? str: + return text_normalization_for_tts(str(n)).strip() + + +def attach(words: str, suffix: str) -> str: + if not suffix: + return words + last = words[-1] + if suffix.startswith("g") and last in "kq": + suffix = last + suffix[1:] + return words + suffix + + +def say_time(hour: int, minute: int) -> str: + if not (0 <= hour <= 24 and 0 <= minute <= 59): + raise ValueError(f"bad time {hour}:{minute}") + if minute == 0: + return say_number(hour) + if minute < 10: + raise ValueError("minutes 01-09 have no settled spoken form") + return f"{say_number(hour)} {say_number(minute)}" + + +def prenorm(text: str) -> str: + text = normalize_uzbek_apostrophes(" ".join(text.split())) + if re.search(r"https?://|www\.|@|\.uz\b|\.com\b", text): + raise ValueError("links and e-mails are not read out") + if ACRONYM.search(text): + raise ValueError("acronyms and letter codes are read inconsistently") + text = re.sub(r"\b(\d{1,2}):(\d{2})\s*[-–]\s*(\d{1,2}):(\d{2})\b", + lambda m: f"{attach(say_time(int(m[1]), int(m[2])), 'dan')} " + f"{attach(say_time(int(m[3]), int(m[4])), 'gacha')}", text) + text = re.sub(rf"\b(\d{{1,2}}):(\d{{2}})(?:\s?-?({SUFFIX_RE})\b)?", + lambda m: attach(say_time(int(m[1]), int(m[2])), m[3] or ""), text) + text = re.sub(r"\b(\d+)[.,]5\b(?!\d)", lambda m: f"{say_number(int(m[1]))} yarim", text) + if re.search(r"\d[.,]\d", text) and not re.search(r"\d{1,3}(?:[ .,]\d{3})+", text): + raise ValueError("decimal fraction") + def rng(m): + a, b = int(m[1]), int(m[2]) + if not a < b <= 999: + raise ValueError(f"hyphenated digits {m[0]!r} look like a code") + return f"{say_number(a)}-{attach(say_number(b), m[3] or '')}" + text = re.sub(rf"\b(\d{{1,3}})\s?[-–]\s?(\d{{1,3}})(?:-?({SUFFIX_RE})\b)?(?=\s|[,.]|$)", rng, text) + if re.search(r"\d\s?[-–]\s?\d", text): + raise ValueError("hyphenated code") + def ident(m): + digits = m[0] + if digits.startswith("998") or len(digits) > 12: + return digits + groups, rest = [digits[:3]], digits[3:] + while rest: + take = 3 if len(rest) == 3 else 2 + groups.append(rest[:take]) + rest = rest[take:] + return ", ".join(say_number(int(g)) if not g.startswith("0") else + " ".join(say_number(int(c)) for c in g) for g in groups) + text = re.sub(r"(? str: + text = re.sub(r"\bto'qqiz to'qqiz sakkiz\b", "to'qqiz yuz to'qson sakkiz", text) + text = re.sub(r"\b(" + "|".join(map(re.escape, NUMBER_WORDS)) + r") (dagi|dan|da|gacha|ga|ni|ning|larda|lardan)\b", + lambda m: attach(m[1], m[2]), text, flags=re.IGNORECASE) + text = re.sub(r"\b([Bb])ir yuz\b", lambda m: "Yuz" if m[1] == "B" else "yuz", text) + return text + + +FOREIGN = re.compile(r"[^A-Za-z0-9\s.,!?;:'\"()%+$№/«»“”‘’ʻʼ`\-–—]") +ABBREV = re.compile(r"(? str: + return " ".join(text_normalization_for_tts(span).split()) + + +def verbalize(raw: str, terms: str = "spoken") -> str: + from terms import swap_in, swap_out + + raw = normalize_uzbek_apostrophes(" ".join(raw.split())) + if FOREIGN.search(raw): + raise ValueError(f"characters outside Uzbek Latin: {FOREIGN.search(raw)[0]!r}") + if ABBREV.search(raw): + raise ValueError(f"abbreviation: {ABBREV.search(raw)[0]!r}") + if re.search(r"[A-Za-z]\d|\d[xX×]\d", raw): + raise ValueError("letters glued to digits (M500, 3x4)") + held, found = swap_out(raw) + held = re.sub(r"(\d)\s?%", r"\1 foiz", held) + held = UNIT_RE.sub(lambda m: f"{m[1]} {UNITS[m[2].lower()]}", held) + text = prenorm(held) + text = SPAN.sub(lambda m: normalize_span(m[0]), text) + out = spoken_conventions(" ".join(text.split())) + out = re.sub(r"\s+([,.!?;:])", r"\1", out) + out = re.sub(r"\b(" + "|".join(map(re.escape, NUMBER_WORDS)) + r") ta(?![\w'])", r"\1ta", out) + out = re.sub(r"\b([Bb])irta(?![\w'])", r"\1itta", out) + out = re.sub(r"\bfoiz (ni|ning|ga|dan|da|gacha|lik|lar)(?![\w'])", r"foiz\1", out) + out = out[:1].upper() + out[1:] + bad = BAD_AFTER.search(out) or STRAY_U.search(out) + if bad: + raise ValueError(f"normalizer output still unsafe: {bad[0]!r} in {out!r}") + out = swap_in(out, found, terms) + if re.search(r"zqterm", out, re.IGNORECASE): + raise ValueError(f"term placeholder lost in normalization: {out!r}") + return out[:1].upper() + out[1:] if out[:1].islower() and not out.startswith("iPhone") else out + + diff --git a/runtime/frontend/tts_frontend.py b/runtime/frontend/tts_frontend.py new file mode 100644 index 0000000000000000000000000000000000000000..5dc8dd0088750cd99559a9338041a52cad863272 --- /dev/null +++ b/runtime/frontend/tts_frontend.py @@ -0,0 +1,337 @@ + +from __future__ import annotations + +import json +import re +import sys +import unicodedata +from dataclasses import dataclass, field +from pathlib import Path + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE)) +import tashkent_dialect +import textnorm +from terms import LEXICON as BASE_TERMS +from terms_uz import LIST_TERMS + +REVIEWED_LEXICON = Path(__file__).resolve().parent / "terms_reviewed.json" +EXTRA_LEXICON = HERE / "lexicon_extra.tsv" +TAGS_OK = ("pause", "laugh", "breath") +ALT_TAGS = {"short pause": "pause", "long pause": "pause", "pause": "pause", "chuckle": "laugh", "laugh": "laugh", + "laughs": "laugh", "giggle": "laugh", "breath": "breath", "inhale": "breath", "exhales": "breath", + "smile": "laugh", "smiling": "laugh", "sigh": "breath"} +LETTERS_EN = {"A": "ey", "B": "bi", "C": "si", "D": "di", "E": "i", "F": "ef", "G": "ji", "H": "eych", "I": "ay", "J": "jey", + "K": "key", "L": "el", "M": "em", "N": "en", "O": "o", "P": "pi", "Q": "kyu", "R": "ar", "S": "es", "T": "ti", + "U": "yu", "V": "vi", "W": "dabl-yu", "X": "eks", "Y": "vay", "Z": "zed"} +ABBREV = {"mln": "million", "mlrd": "milliard", "h.k.": "hokazo", "va h.k.": "va hokazo", "tel.": "telefon", "sm": "santimetr"} +AREA = r"(?<=\d)\s?(?:m²|m2|kv\.?\s?m\b\.?|sq\.?\s?m\b)" +UNIT_SLASH = [(r"(?i)\bMbit/s\b|\bMb/s\b|\bMbps\b", "megabit sekund"), (r"(?i)\bGbit/s\b|\bGbps\b", "gigabit sekund"), + (r"(?i)\bkm/(?:soat|h)\b", "kilometr soatiga"), (r"(?i)\bm/s\b", "metr sekundiga")] +CYR = {"а": "a", "б": "b", "в": "v", "г": "g", "ғ": "g'", "д": "d", "е": "e", "ё": "yo", "ж": "j", "з": "z", "и": "i", + "й": "y", "к": "k", "қ": "q", "л": "l", "м": "m", "н": "n", "о": "o", "п": "p", "р": "r", "с": "s", "т": "t", + "у": "u", "ў": "o'", "ф": "f", "х": "x", "ҳ": "h", "ц": "ts", "ч": "ch", "ш": "sh", "щ": "sh", "ъ": "'", "ь": "", + "ы": "i", "э": "e", "ю": "yu", "я": "ya"} +CYR_VOWELS = set("аеёиоуыэюяў") +RESPELL = {"kuryer": "kurier"} +UZBEK_HOMOGRAPHS = {"band"} +PHONE_CC = r"(? tuple[dict[str, str], dict[str, str]]: + table = {k: v[0] for k, v in BASE_TERMS.items()} + table.update(LIST_TERMS) + if REVIEWED_LEXICON.exists(): + for key, v in json.loads(REVIEWED_LEXICON.read_text()).items(): + table.setdefault(v.get("term", key), v["reading"]) + extra = {} + if EXTRA_LEXICON.exists(): + for line in EXTRA_LEXICON.read_text().splitlines(): + if line.strip() and not line.startswith("#"): + term, reading = line.split("\t")[:2] + extra[term.strip()] = reading.strip() + table.update(extra) + return table, extra + + +LEXICON, _EXTRA = _lexicon() +_FOLDED = {} +for _k, _v in LEXICON.items(): + _FOLDED.setdefault(_k.lower(), _v) +_FOLDED.update({k.lower(): v for k, v in _EXTRA.items()}) +_SUFFIX_APOSTROPHE = r"(?:'(?=[a-z])|(?![A-Za-z']))" +_BARE = [k for k in LEXICON if k.lower() not in UZBEK_HOMOGRAPHS] +_TERM_RE = re.compile(r"(? 2), + key=len, reverse=True)) + r")(?:'(?=[a-z])|(?![A-Za-z\-']))", re.I) + + +def _sub(res: Result, stage: str, rule: str, pattern, repl, text: str, flags=0) -> str: + def f(m): + out = repl(m) if callable(repl) else m.expand(repl) + if out != m.group(0): + res.changes.append((stage, rule, m.group(0), out)) + return out + return re.sub(pattern, f, text, flags=flags) + + +def clean(text: str, res: Result) -> str: + from text_to_phoneme.tools.convert_phone_numbers_to_text import UZBEK_OPERATOR_CODES + from text_to_phoneme.uzbek_orthography import normalize_uzbek_apostrophes + + s = unicodedata.normalize("NFC", text) + s2 = normalize_uzbek_apostrophes(s).replace("ʻ", "'").replace("‘", "'").replace("’", "'").replace("`", "'") + if s2 != s: + res.changes.append(("clean", "apostrophes", "ʻ ’ ‘ `", "'")) + s = s2 + s = _sub(res, "clean", "markdown", r"\*\*|__|`|^#{1,6}\s*", "", s, re.M) + items = [re.match(r"\s*(?:[-*•–]|\d{1,2}[.)])\s+", line) for line in s.split("\n")] + if sum(1 for m in items if m) >= 2: + lines = [] + for line, m in zip(s.split("\n"), items): + if m: + item = line[m.end():].strip() + lines.append(("[pause] " if lines else "") + item + ("" if item[-1:] in ".!?…" else ".")) + elif line.strip(): + lines.append(line.strip()) + joined = " ".join(lines) + res.changes.append(("clean", "list items with a pause", s, joined)) + s = joined + s = _sub(res, "clean", "list marker", r"(?m)^\s*(?:[-*•–]|\d{1,2}[.)])\s+", "", s) + s = _sub(res, "clean", "emoji", EMOJI, "", s) + s = _sub(res, "clean", "quotes", r"[«»“”„\"]", "", s) + s = _sub(res, "clean", "number sign after raqam", r"(?i)(raqam\w*)\s*[#№]\s?(?=\d)", r"\1 ", s) + s = _sub(res, "clean", "number sign", r"[#№]\s?(?=\d+[-\s]*raqam)", "", s) + s = _sub(res, "clean", "number sign", r"(?i)(? str: + return (" " if m.start() and not m.string[m.start() - 1].isspace() else "") + out + + def cc_phone(m): + d = re.sub(r"\D", "", m.group(2)) + return phone(m, ("+" if m.group(1) else "") + f"998 {d[:2]} {d[2:5]} {d[5:7]} {d[7:]}") + + def local_phone(m): + op = m.group(2) or m.group(3) + if op not in UZBEK_OPERATOR_CODES or re.match(r"\s*(?:so'm|sum|dollar)", m.string[m.end():], re.I): + return m.group(0) + return phone(m, ("8, " if m.group(1) else "") + " ".join((op, *m.group(4, 5, 6)))) + s = _sub(res, "clean", "phone number", PHONE_CC, cc_phone, s) + s = _sub(res, "clean", "phone number", PHONE_LOCAL, local_phone, s) + s = _sub(res, "clean", "square metres", AREA, " kvadrat metr", s, re.I) + for pattern, repl in UNIT_SLASH: + s = _sub(res, "clean", "unit with slash", pattern, repl, s) + s = _sub(res, "clean", "abbreviation", r"(? str: + def alt_tag(m): + name = m.group(1).strip().lower() + return f"[{ALT_TAGS[name]}]" if name in ALT_TAGS else "" + s = _sub(res, "tags", "alt tag", r"<([a-z][a-z ]{1,20})>", alt_tag, text) + s = _sub(res, "tags", "bracket tag", r"\[([a-z ]{1,20})\]", + lambda m: m.group(0) if m.group(1) in TAGS_OK else f"[{ALT_TAGS[m.group(1)]}]" if m.group(1) in ALT_TAGS else "", s) + s = _sub(res, "tags", "repeated tag", r"(\[(?:pause|laugh|breath)\])(?:\s*\[(?:pause|laugh|breath)\])+", r"\1", s) + s = _sub(res, "tags", "tag at the end", r"\s*\[(?:pause|breath)\]\s*([.!?…]?)\s*$", r"\1", s) + return " ".join(s.split()) + + +def script(text: str, res: Result) -> str: + def tr(m): + word, out = m.group(0), [] + for i, c in enumerate(word): + low, prev, nxt = c.lower(), word[i - 1].lower() if i else "", word[i + 1].lower() if i + 1 < len(word) else "" + if low == "е" and (not prev or prev in CYR_VOWELS or prev in "ъь"): + t = "ye" + elif low == "ъ" and nxt in "еёюя" and prev and prev not in CYR_VOWELS: + t = "" + else: + t = CYR.get(low, c) + out.append(t.capitalize() if c.isupper() else t) + return "".join(out) + s = _sub(res, "script", "cyrillic", r"[Ѐ-ӿ]+", tr, text) + if s != text: + res.warnings.append("кириллица переведена в латиницу") + return s + + +def terms(text: str, res: Result) -> str: + s = _sub(res, "terms", "braces", r"\{([^{}]{1,40})\}", + lambda m: _FOLDED.get(m.group(1).lower(), m.group(1)), text) + s = _sub(res, "terms", "lexicon", _TERM_RE, lambda m: LEXICON.get(m.group(1), _FOLDED.get(m.group(1).lower())), s) + s = _sub(res, "terms", "lexicon (any case)", _TERM_RE_I, lambda m: _FOLDED[m.group(1).lower()], s) + s = _sub(res, "terms", "respelt stem", r"(?i)\b(" + "|".join(RESPELL) + r")(?=[a-z]*\b)", + lambda m: RESPELL[m.group(1).lower()].capitalize() if m.group(1)[0].isupper() else RESPELL[m.group(1).lower()], s) + + def spell(m): + word = m.group(0) + res.warnings.append(f"неизвестное сокращение {word} прочитано по буквам") + return "-".join(LETTERS_EN[c] for c in word) + s = _sub(res, "terms", "unknown acronym spelt", r"(? str: + return "zqphone" + "".join(chr(97 + int(c)) for c in str(k)) + "qz" + + +def phone_group(d: str) -> str: + from text_to_phoneme.tools.convert_phone_numbers_to_text import _convert_chunk_to_text + return "nol " + phone_group(d[1:]) if len(d) > 1 and d[0] == "0" else _convert_chunk_to_text(d) + + +def numbers(text: str, res: Result) -> str: + from text_to_phoneme.tools.convert_phone_numbers_to_text import UZBEK_COUNTRY_CODE, UZBEK_PLUS + from textnorm import verbalize + + from textnorm import attach, say_number + + def dims(m): + a, b = int(m.group(1)), int(m.group(2)) + unit = {"m": " metr", "sm": " santimetr", "santimetr": " santimetr", "mm": " millimetr", "km": " kilometr"}.get(m.group(3) or "", "") + out = f"{attach(say_number(a), 'ga')} {say_number(b)}{unit}" + res.changes.append(("numbers", "dimensions AxB", m.group(0), out)) + return out + text = re.sub(r"\b(\d{1,4})\s?[x×]\s?(\d{1,4})(?:\s?(m|sm|santimetr|mm|km)\b)?", dims, text) + + def pair(d: str) -> str: + return say_number(int(d)) if d[0] != "0" else "nol " + ("nol" if d[1] == "0" else say_number(int(d[1]))) + + def card(m): + out = ", ".join(pair(g[:2]) + " " + pair(g[2:]) for g in m.groups()) + res.changes.append(("numbers", "card number by groups", m.group(0), out)) + return out + text = re.sub(r"\b(\d{4})[ -](\d{4})[ -](\d{4})[ -](\d{4})\b", card, text) + out = [] + for sentence in re.split(r"(?<=[.!?…])\s+", text): + if not re.search(r"\d|%|\$|\+\d", sentence): + out.append(_bir_yuz(sentence)) + continue + parts = re.split(r"(\[(?:pause|laugh|breath)\])", sentence) + def say(p: str) -> str: + phones = [] + + def hide(m): + cc = [f"{UZBEK_PLUS} {UZBEK_COUNTRY_CODE}" if m.group(1)[0] == "+" else UZBEK_COUNTRY_CODE] if m.group(1) else [] + said = ", ".join(cc + [phone_group(g) for g in m.group(2, 3, 4, 5)]) + suffix = m.group(6) or "" + phones.append((m.group(0), attach(said, suffix[1:]) if suffix[:1] == " " else said + suffix)) + return _phone_key(len(phones) - 1) + out = verbalize(re.sub(PHONE_SPACED, hide, p.strip())) + out = out[:1].lower() + out[1:] if p.strip()[:1].islower() else out + for k, (written, said) in enumerate(phones): + out, n = re.subn(_phone_key(k), lambda m: said[:1].upper() + said[1:] if m.group(0)[0] == "Z" else said, out, flags=re.I) + if n != 1: + raise ValueError(f"phone placeholder lost in normalization: {out!r}") + res.changes.append(("numbers", "phone number by groups", written, said)) + return out + try: + spoken = "".join(p if re.fullmatch(r"\[\w+\]", p) or not p.strip() else (" " + say(p) + " ") for p in parts) + spoken = " ".join(spoken.split()) + for old, new in (("sentyabr", "sentabr"), ("oktyabr", "oktabr")): + spoken = spoken.replace(old, new) + spoken = _bir_yuz(spoken) + if spoken != sentence: + res.changes.append(("numbers", "verbalise", sentence, spoken)) + out.append(spoken) + except ValueError as error: + res.warnings.append(f"числа не прочитаны: {error}") + out.append(sentence) + return " ".join(out) + + +def _bir_yuz(text: str) -> str: + words = text.split(" ") + for i, w in enumerate(words[:-1]): + prev = words[i - 1].lower() if i and words[i - 1][-1:].isalpha() else "" + nxt = re.sub(r"[^\w']", "", words[i + 1]).lower() + if w.lower() == "yuz" and prev not in NUMBER_WORDS and any(nxt.startswith(x) for x in NUMBER_WORDS[1:18]): + words[i] = ("Bir" if w[0] == "Y" else "bir") + " yuz" + return " ".join(words) + + +def dialect(text: str, res: Result, register: str) -> str: + if register != "conversational": + return text + parts = re.split(r"(\[(?:pause|laugh|breath)\])", text) + out = [] + for p in parts: + if re.fullmatch(r"\[\w+\]", p) or not p.strip(): + out.append(p) + continue + converted, changes = tashkent_dialect.convert(p, russian=False) + for a, b, rules in changes: + res.changes.append(("dialect", ", ".join(rules), a, b)) + out.append(converted) + return " ".join(" ".join(out).split()) + + +def final(text: str, res: Result) -> str: + s = re.sub(r"\s+([.,!?;:…])", r"\1", text) + s = re.sub(r"([.,!?;:…])(?=[A-Za-z])", r"\1 ", s) + s = re.sub(r"\(\s*", "(", s) + s = s.strip(" ,;:") + s = re.sub(r"([.!?…]\s+(?:\[\w+\]\s+)?)([a-z])", lambda m: m.group(1) + m.group(2).upper(), s) + s = re.sub(r",\s*,", ",", s) + if s and s[0].islower(): + s = s[0].upper() + s[1:] + if s and s[-1] not in ".!?…": + s += "." + bad = sorted({c for c in s if not ALLOWED_FINAL.match(c)}) + if re.search(r"\d", s): + res.warnings.append("в тексте остались цифры") + if bad: + res.warnings.append("символы вне узбекской латиницы: " + " ".join(bad)) + return s + + +def normalize(text: str, register: str = "conversational") -> Result: + res = Result(text=text) + s = text + for name, fn in (("clean", clean), ("tags", tags), ("script", script), ("terms", terms), ("numbers", numbers)): + s = fn(s, res) + res.stages.append((name, s)) + s = dialect(s, res, register) + res.stages.append(("dialect", s)) + s = final(s, res) + res.stages.append(("final", s)) + res.text = s + return res + + diff --git a/runtime/pocket_onnx.py b/runtime/pocket_onnx.py new file mode 100644 index 0000000000000000000000000000000000000000..e45b49d49b4f846d59c5ed76833373ea4414817d --- /dev/null +++ b/runtime/pocket_onnx.py @@ -0,0 +1,299 @@ +#!/usr/bin/env python3 +"""Gapiring v2 runtime: Uzbek TTS with role and manner tags from an ONNX bundle, numpy + onnxruntime + tokenizers, no PyTorch. + +The loop: voice conditioning and the text prompt fill flow_lm_main's caches, then +one latent per step (NaN = BOS first): flow_lm_main -> conditioning + EOS logit; latent = noise + flow_lm_flow(c, +s=0, t=1, noise) (LSD, one step; noise ~ N(0, temperature)); EOS after >= 6 frames ends the line 1-3 frames +later; mimi_decoder turns latents into 24 kHz audio as they come (first frame alone, for first audio). +Text goes through pocket_text (role + style symbols glued before it, event tags as symbols). +New in v2: the narrator role with its genres, the serious manner, pace, the hesitation switch; English words +go to the model as written, so there is no dictionary. + + python pocket_onnx.py --bundle DIR --voice f1 --role assistant --manner warm [--pace slow] [--normalize literary] + --text "..." --out x.wav +""" + +from __future__ import annotations + +import argparse +import json +import os +import re +import time +from pathlib import Path + +# ONNX Runtime's official builds (seen with 1.32 on Linux; 1.23 has none) send usage events to Microsoft by default. +# Only this variable, set before the library is loaded, stops it; a value the user set is left alone. +os.environ.setdefault("ORT_DISABLE_TELEMETRY", "1") + +import numpy as np # noqa: E402 +import onnxruntime as ort # noqa: E402 + +EVENTS = {"[laugh]": "§", "[pause]": "¦", "[breath]": "¶", "[sigh]": "¤"} +# roles and manners by name: operator, assistant, and emotional mode +ROLES = {"operator": "\u2460", "assistant": "\u2462", "emotional": "\u2461"} # emotional: a caller with a feeling +# assistant: a lively helper, may hesitate a little as people do; assistant_formal: the same helper in an even, measured delivery +ROLES["assistant_formal"] = "\u2463" +ROLES["narrator"] = "\u247a" # v2: reads a longer text aloud; its manner is the genre +MANNERS = {"calm": "\u2464", "neutral": "\u2472", "warm": "\u2473", "cheerful": "\u2474", "empathetic": "\u2475", + "dictation": "\u2476", "persuasive": "\u2477", "brisk": "\u2478", "soothing": "\u2479", "angry": "\u246c", "upset": "\u246e", "irritated": "\u246b", "worried": "\u246d", "tired": "\u2470", "sceptical": "\u246f", "confused": "\u2469", "hurried": "\u246a", "joking": "\u2466", "grateful": "\u2467", "curious": "\u2468", "friendly": "\u2465", "elderly": "\u2471", + "serious": "\u247b", "book": "\u247c", "article": "\u247d", "news": "\u247e", "tale": "\u247f"} # v2 +ROLE_MANNERS = {"operator": ("neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "persuasive", "brisk", "serious"), + "assistant": ("neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "soothing", "serious"), + "assistant_formal": ("neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "soothing", "serious"), + "narrator": ("book", "article", "news", "tale"), + "emotional": ("angry", "upset", "irritated", "worried", "tired", "sceptical", "confused", "hurried", "joking", "grateful", "curious", "friendly", "calm", "elderly")} + + +DEFAULT_MANNER = {"narrator": "book"} # every other role: neutral +PACES = {"slow": "\u2480", "fast": "\u2481"} +# the manners a pace goes with, by role (the narrator: a slow article, fast news) +PACE_MANNERS = {"operator": {p: ("neutral", "warm", "cheerful", "calm", "persuasive") for p in PACES}, + "assistant": {p: ("neutral", "warm", "cheerful", "calm") for p in PACES}, + "assistant_formal": {p: ("neutral", "warm", "cheerful", "calm") for p in PACES}, + "narrator": {"slow": ("article",), "fast": ("news",)}} +SERIOUS, HESITANT = "\u247b", "\u2482" +SERIOUS_GENRES = ("article", "news") # narrator, serious=True +# the lively assistant with the small hesitations of live speech (v1's assistant); without the mark it is fluent +HESITANT_MANNERS = ("neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "soothing") +# a piece of a longer text, in characters (split_text): a sentence or two for the dialogue roles, a short paragraph for the narrator +PIECE = {"narrator": (280, 340)} + + +def tags_for(role: str, manner: str | None = None, pace: str | None = None, serious: bool = False, hesitant: bool = False) -> str: + """The symbols the model reads before the text: role, manner (the narrator's genre), then the optional marks. + pace: "slow" | "fast"; serious: the narrator's article and news in a serious tone (the other roles have the manner + "serious"); hesitant: the lively assistant with small hesitations. One optional mark at a time.""" + manner = manner or DEFAULT_MANNER.get(role, "neutral") + if role not in ROLE_MANNERS or manner not in ROLE_MANNERS[role]: + raise ValueError(f"role/manner {role}/{manner}: choose from {ROLE_MANNERS}") + if (pace is not None) + bool(serious) + bool(hesitant) > 1: + raise ValueError("pace, serious and hesitant do not combine: give one of them") + tags = ROLES[role] + MANNERS[manner] + if pace is not None: + if manner not in PACE_MANNERS.get(role, {}).get(pace, ()): + raise ValueError(f"pace {pace!r} with {role}/{manner}: choose from {PACE_MANNERS}") + tags += PACES[pace] + if serious: + if role != "narrator" or manner not in SERIOUS_GENRES: + raise ValueError(f"serious=True is for the narrator's {SERIOUS_GENRES}; the other roles take manner='serious'") + tags += SERIOUS + if hesitant: + if role != "assistant" or manner not in HESITANT_MANNERS: + raise ValueError(f"hesitant=True is for role 'assistant' with {HESITANT_MANNERS}") + tags += HESITANT + return tags +# Uzbek o' and g' as phone keyboards and editors write them (U+02BB, U+02BC, curly quotes, a prime, a backtick): the model +# was taught the plain "'" +_APOSTROPHES = str.maketrans({c: "'" for c in "ʻʼ‘’′ʹ`"}) +_EVENT = re.compile(r"\s*(\[(?:laugh|pause|breath|sigh)\])\s*") +_MAP = str.maketrans({"…": "...", "«": "", "»": "", '"': "", "“": "", "”": "", "„": "", "(": "", ")": "", ":": ",", ";": ","}) +_DASH = re.compile(r"\s+[—–-]\s+|[—–]") + + +def pocket_text(text: str, tags: str = "") -> str: + """The text front: punctuation normalised, event tags as symbols, the role and manner symbols in front.""" + text = _DASH.sub(", ", text.translate(_APOSTROPHES).translate(_MAP)) + text = re.sub(r"\s+([,.!?])", r"\1", re.sub(r",(\s*,)+", ",", text)) + text = _EVENT.sub(lambda m: EVENTS[m.group(1)], " ".join(text.split())) + return tags + text.strip() + + +# The white space a text is cut at, spelt out so that the Python, JavaScript, Kotlin and Swift runtimes cut alike +# (their own "\s" classes differ); lengths below are in code points. +_WS = "[ \\t\\n\\x0b\\f\\r\\x85\\xa0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]" +_SENTENCE = re.compile(f'(?<=[.!?\\u2026])["\\u201d\\u00bb)]*{_WS}+|\\n+') +_CLAUSE = re.compile(f"(?<=[,;:]){_WS}+|{_WS}+[\\u2014\\u2013-]{_WS}+") +_TRIM = re.compile(f"^{_WS}+|{_WS}+$") +_TAIL = re.compile("[,;:]+$") + + +def split_text(text: str, limit: int = 150, hard: int = 240) -> list[str]: + """The pieces a longer text is spoken in. The model speaks one sentence or a short paragraph well and loses the + thread on more (a ten-sentence paragraph in one call came out as two minutes of mumbling), so sentences are + packed into pieces of at most `limit` characters; a text within the limit stays whole, and a single sentence + longer than `hard` is cut at its commas.""" + text = _TRIM.sub("", text) + if len(text) <= limit: + return [text] if text else [] + sentences = [] + for s in (_TRIM.sub("", x) for x in _SENTENCE.split(text)): + if not s: + continue + if len(s) <= hard: + sentences.append(s) + continue + part = "" + clauses = [c for c in (_TRIM.sub("", x) for x in _CLAUSE.split(s)) if c] + for clause in [_TAIL.sub("", c) for c in clauses[:-1]] + clauses[-1:]: + if part and len(part) + 2 + len(clause) > limit: + sentences.append(part) + part = clause + else: + part = f"{part}, {clause}" if part else clause + if part: + sentences.append(part) + pieces = [] + for s in sentences: + if pieces and len(pieces[-1]) + 1 + len(s) <= limit: + pieces[-1] += " " + s + else: + pieces.append(s) + return pieces + + +class PocketONNX: + def __init__(self, bundle: str | Path, threads: int = 2, suffix: str = "", normalize: str | None = None): + from tokenizers import Tokenizer + + # normalize="literary" | "conversational": the text front (text_front.py) reads numbers, dates, money and phone + # numbers out and cleans the text, leaving English words as written; None feeds the text as written + self.normalize = normalize + if normalize: + import text_front + + self._prepare = text_front.prepare + + self.dir = Path(bundle) + self.meta = json.loads((self.dir / "bundle.json").read_text()) + opt = ort.SessionOptions() + opt.intra_op_num_threads, opt.inter_op_num_threads = threads, 1 + opt.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_ALL + + def session(name): # the asked suffix, else fp32, else int8 (the v2 release ships int8 only) + path = next((p for s in (suffix, "", "_int8") if (p := self.dir / f"{name}{s}.onnx").exists()), None) + if path is None: + raise FileNotFoundError(f"{name}*.onnx not in {self.dir}") + return ort.InferenceSession(str(path), opt, providers=["CPUExecutionProvider"]) + + self.text_cond, self.main, self.flow, self.dec = (session(n) for n in ("text_conditioner", "flow_lm_main", "flow_lm_flow", "mimi_decoder")) + self.tok = Tokenizer.from_file(str(self.dir / "tokenizer.json")) + self.ldim, self.dim = self.meta["latent_dim"], self.meta["conditioning_dim"] + self.voices: dict[str, list[np.ndarray]] = {} + + @staticmethod + def _init(manifest: list[dict]) -> list[np.ndarray]: + out = [] + for m in manifest: + dtype = {"float32": np.float32, "int64": np.int64, "bool": np.bool_}[m["dtype"]] + out.append(np.ones(m["shape"], dtype) if m["fill"] == "ones" else np.zeros(m["shape"], dtype)) + return out + + def _main(self, sequence: np.ndarray, text_emb: np.ndarray, states: list[np.ndarray]): + feed = {"sequence": sequence, "text_embeddings": text_emb} + feed.update({m["input_name"]: s for m, s in zip(self.meta["flow_lm_state_manifest"], states)}) + cond, eos, *new = self.main.run(None, feed) + return cond, float(eos.reshape(-1)[0]), new + + def voice_state(self, voice: str) -> list[np.ndarray]: + """The voice's conditioning (precomputed from its fixed clip, voices/.npy) run through the backbone once.""" + if voice not in self.voices: + emb = np.load(self.dir / "voices" / f"{voice}.npy").astype(np.float32) + _, _, st = self._main(np.zeros((1, 0, self.ldim), np.float32), emb, self._init(self.meta["flow_lm_state_manifest"])) + self.voices[voice] = st + return self.voices[voice] + + def prepared(self, text: str) -> str: + """The text as the voice gets it: through the normaliser when it is on; always with the apostrophe variants + of o' and g' as the plain one.""" + if self.normalize: + return self._prepare(text, self.normalize) + return text.translate(_APOSTROPHES) + + def tokens(self, text: str, tags: str, prepared: bool = False) -> list[int]: + if not prepared and self.normalize: + text = self._prepare(text, self.normalize) + t = pocket_text(text, tags) + if t[-1] not in ".!?…": + t += "." + return self.tok.encode(t).ids + + def speak(self, text: str, voice: str = "f1", role: str = "assistant", manner: str | None = None, pause: float = 0.25, + pace: str | None = None, serious: bool = False, hesitant: bool = False, **kw): + """A text of any length with the role and the manner by name: yields 24 kHz float32 chunks. A longer text is + spoken piece by piece (split_text), `pause` seconds apart; a sentence or a short paragraph is one piece.""" + tags = tags_for(role, manner, pace, serious, hesitant) + gap = np.zeros(int(pause * self.meta["sample_rate"]), np.float32) + for i, piece in enumerate(split_text(self.prepared(text), *PIECE.get(role, ()))): + if i and len(gap): + yield gap + yield from self.stream(piece, tags, voice, prepared=True, **kw) + + def stream(self, text: str, tags: str, voice: str, seed: int = 0, temperature: float | None = None, chunk_frames: int = 3, + prepared: bool = False): + """Yield float32 audio chunks (24 kHz) of one line: the first after one latent, then every chunk_frames.""" + m = self.meta + rng = np.random.default_rng(seed) + std = float(np.sqrt(m["temperature"] if temperature is None else temperature)) + ids = self.tokens(text, tags, prepared) + emb = self.text_cond.run(None, {"token_ids": np.array([ids], np.int64)})[0] + _, _, st = self._main(np.zeros((1, 0, self.ldim), np.float32), emb, self.voice_state(voice)) + max_gen = int((len(ids) / m["tokens_per_second_estimate"] + m["gen_seconds_padding"]) * m["frame_rate"]) + after = (3 if len(text.split()) <= 4 else 1) + 2 + dstate = self._init(m["mimi_state_manifest"]) + seq = np.full((1, 1, self.ldim), np.nan, np.float32) + empty = np.zeros((1, 0, self.dim), np.float32) + s0, s1 = np.zeros((1, 1), np.float32), np.ones((1, 1), np.float32) + pending, eos_step, first = [], None, True + + def decode(latents): + nonlocal dstate + feed = {"latent": np.concatenate(latents, axis=1)} + feed.update({x["input_name"]: s for x, s in zip(m["mimi_state_manifest"], dstate)}) + audio, *dstate = self.dec.run(None, feed) + return audio.reshape(-1) + + for step in range(max_gen): + cond, eos, st = self._main(seq, empty, st) + if eos > m["eos_threshold"] and eos_step is None and step >= m["min_frames_before_eos"]: + eos_step = step + if eos_step is not None and step >= eos_step + after: + break + noise = (rng.standard_normal((1, self.ldim)) * std).astype(np.float32) + latent = noise + self.flow.run(None, {"c": cond, "s": s0, "t": s1, "x": noise})[0] + seq = latent[:, None, :] + pending.append(seq) + if first or len(pending) >= chunk_frames: + audio = decode(pending) + pending = [] + if first: + n = min(m["fade_in_samples"], len(audio)) + audio[:n] *= np.linspace(0, 1, m["fade_in_samples"], dtype=np.float32)[:n] + first = False + yield audio + if pending: + yield decode(pending) + + +def main() -> None: + import soundfile as sf + + parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + parser.add_argument("--bundle", required=True) + parser.add_argument("--text", required=True) + parser.add_argument("--voice", default="f1") + parser.add_argument("--role", default="assistant", choices=sorted(ROLE_MANNERS)) + parser.add_argument("--manner", choices=sorted(MANNERS), help="default: neutral; for the narrator the genre, default book") + parser.add_argument("--pace", choices=sorted(PACES)) + parser.add_argument("--serious", action="store_true", help="the narrator's article or news in a serious tone") + parser.add_argument("--hesitant", action="store_true", help="the lively assistant with small hesitations") + parser.add_argument("--normalize", choices=("literary", "conversational"), help="numbers, dates, money to words (text_front.py)") + parser.add_argument("--out", required=True) + parser.add_argument("--threads", type=int, default=2) + parser.add_argument("--suffix", default="", help="e.g. _int8 for the quantized graphs") + parser.add_argument("--seed", type=int, default=0) + args = parser.parse_args() + tts = PocketONNX(args.bundle, args.threads, args.suffix, args.normalize) + tts.voice_state(args.voice) + started, first, chunks = time.perf_counter(), None, [] + for chunk in tts.speak(args.text, args.voice, args.role, args.manner, pace=args.pace, serious=args.serious, hesitant=args.hesitant, seed=args.seed): + first = first or time.perf_counter() - started + chunks.append(chunk) + total = time.perf_counter() - started + audio = np.concatenate(chunks) + sf.write(args.out, audio, tts.meta["sample_rate"]) + print(json.dumps({"first_audio_ms": round(1000 * first, 1), "seconds": round(len(audio) / tts.meta["sample_rate"], 2), "rtf": round(total / (len(audio) / tts.meta["sample_rate"]), 3)})) + + +if __name__ == "__main__": + main() diff --git a/runtime/requirements.txt b/runtime/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..0c6479ff4e85207b2e0556b181fdd01630309633 --- /dev/null +++ b/runtime/requirements.txt @@ -0,0 +1,4 @@ +numpy +onnxruntime>=1.23 +tokenizers +soundfile diff --git a/runtime/text_front.py b/runtime/text_front.py new file mode 100644 index 0000000000000000000000000000000000000000..ddeb062b81809788ba2144faccef550120bdf2c1 --- /dev/null +++ b/runtime/text_front.py @@ -0,0 +1,86 @@ +"""Text front for Uzbek TTS, the chain the text goes through before the voice: + + 1. English words, brand names and acronyms are set aside as stand-ins: the voice reads them from their ordinary + spelling, so the normaliser must not respell them (a unit right after a number, "5 kg", is left to it); + 2. normaliser (frontend/tts_frontend.py): Unicode and Uzbek apostrophes, markdown, emoji and quotes cleaned; sound + tags kept ([laugh], [pause], [breath]); Cyrillic to Uzbek Latin; numbers, dates, times, money, percentages, + ranges, units and phone numbers to words; register "conversational" adds the Tashkent spoken forms, "literary" + keeps the written ones; spacing, capitals and a closing mark; + 3. the words of step 1 back in place, as they were written. + + prepare("Narxi 1 250 000 so'm, Payme orqali to'lang, CRMga o'zi tushadi") + -> "Narxi bir million ikki yuz ellik ming so'm, Payme orqali to'lang, CRMga o'zi tushadi." +""" + +from __future__ import annotations + +import re +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parent / "frontend")) +import tts_frontend # noqa: E402 + +REGISTERS = ("literary", "conversational") +_BREATHS = re.compile(r"\[(sigh|breath|inhale|exhales)\]") # what the normaliser turns into [breath], in order +_BREATH = re.compile(r"\[breath\]") +PRONOUNCE = [(re.compile(r"\b(a)l+o\b", re.I), lambda m: m.group(1) + "lyo")] # the phone greeting as it sounds +# what the normaliser would respell: its term tables in both cases, and capital-letter acronyms it would spell out +_HOLD = (tts_frontend._TERM_RE, tts_frontend._TERM_RE_I, re.compile(r"(? str: + """Step 2: the normaliser in the given register.""" + if register not in REGISTERS: + raise ValueError(f"register {register!r}: choose from {REGISTERS}") + for pattern, spoken in PRONOUNCE: + text = pattern.sub(spoken, text) + spoken = tts_frontend.normalize(text, register).text + # the normaliser knows three sounds and writes a sigh as a breath; this voice has both, so the sighs go back in + kinds = _BREATHS.findall(text) + if "sigh" in kinds and len(_BREATH.findall(spoken)) == len(kinds): + left = iter(kinds) + spoken = _BREATH.sub(lambda m: "[sigh]" if next(left) == "sigh" else m.group(0), spoken) + return spoken + + +def hold(text: str) -> tuple[str, list[tuple[str, str]]]: + """Step 1: the text with a letters-only stand-in (zqentaqz, zqentbqz, ...) for each word the normaliser would + respell, and the (stand-in, word as written) pairs.""" + words: list[tuple[str, str]] = [] + for pattern in _HOLD: + def put(m, source=text): + word = m.group(1) if m.lastindex else m.group(0) + if _AFTER_NUMBER.search(source[:m.start()]): # a unit: the normaliser reads it out with its number + return m.group(0) + key = "zqent" + "".join(chr(ord("a") + int(d)) for d in str(len(words))) + "qz" + words.append((key, word)) + return key + m.group(0)[len(word):] + text = pattern.sub(put, text) + return text, words + + +def prepare(text: str, register: str = "literary") -> str: + """The whole chain: the text the voice is given.""" + held, words = hold(text) + if not words: + return said(text, register) + spoken = said(held, register) + for key, word in words: + start = key.replace("z", "Z", 1) # the normaliser capitalises a stand-in that opens a sentence + if key not in spoken and start not in spoken: + return said(text, register) # a stand-in did not survive: the normaliser's own reading of the text + spoken = spoken.replace(start, word).replace(key, word) # as written, iPhone stays iPhone + return spoken + + +if __name__ == "__main__": + import argparse + + ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + ap.add_argument("text", nargs="*") + ap.add_argument("--register", default="literary", choices=REGISTERS) + a = ap.parse_args() + for line in (a.text or sys.stdin.read().splitlines()): + print(prepare(line, a.register)) diff --git a/runtime/web/pocket_text.js b/runtime/web/pocket_text.js new file mode 100644 index 0000000000000000000000000000000000000000..c3400203c672bfd4693a594cbf5e20730ad3ab05 --- /dev/null +++ b/runtime/web/pocket_text.js @@ -0,0 +1,133 @@ +// Gapiring Edge v2: the text front for the browser, a port of pocket_text in pocket_onnx.py and of the +// tokenizer.json pipeline (HF tokenizers: added tokens first; Prepend "▁"; Metaspace replace + split; Unigram +// Viterbi with byte fallback). tokenize_check.mjs verifies it id for id against the Python tokenizer. +const EVENTS = { "[laugh]": "§", "[pause]": "¦", "[breath]": "¶", "[sigh]": "¤" }; +// roles and manners by name (the symbols stay in the code): operator, the two assistants, emotional mode, narrator +// assistant: a lively helper (with { hesitant: true } it hesitates a little, as people do); assistant_formal: the same +// helper in an even, measured delivery; narrator: reads a longer text aloud, its manner is the genre +export const ROLES = { operator: "\u2460", assistant: "\u2462", assistant_formal: "\u2463", emotional: "\u2461", narrator: "\u247a" }; +export const MANNERS = { calm: "\u2464", neutral: "\u2472", warm: "\u2473", cheerful: "\u2474", empathetic: "\u2475", + dictation: "\u2476", persuasive: "\u2477", brisk: "\u2478", soothing: "\u2479", angry: "\u246c", upset: "\u246e", irritated: "\u246b", worried: "\u246d", tired: "\u2470", sceptical: "\u246f", confused: "\u2469", hurried: "\u246a", joking: "\u2466", grateful: "\u2467", curious: "\u2468", friendly: "\u2465", elderly: "\u2471", + serious: "\u247b", book: "\u247c", article: "\u247d", news: "\u247e", tale: "\u247f" }; +export const ROLE_MANNERS = { operator: ["neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "persuasive", "brisk", "serious"], + assistant: ["neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "soothing", "serious"], + assistant_formal: ["neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "soothing", "serious"], + narrator: ["book", "article", "news", "tale"], + emotional: ["angry", "upset", "irritated", "worried", "tired", "sceptical", "confused", "hurried", "joking", "grateful", "curious", "friendly", "calm", "elderly"] }; +export const DEFAULT_MANNER = { narrator: "book" }; // every other role: neutral +export const PACES = { slow: "\u2480", fast: "\u2481" }; +// the manners a pace goes with, by role (the narrator: a slow article, fast news) +const PACED = ["neutral", "warm", "cheerful", "calm"]; +export const PACE_MANNERS = { operator: { slow: [...PACED, "persuasive"], fast: [...PACED, "persuasive"] }, + assistant: { slow: PACED, fast: PACED }, assistant_formal: { slow: PACED, fast: PACED }, narrator: { slow: ["article"], fast: ["news"] } }; +const SERIOUS = "\u247b", HESITANT = "\u2482", SERIOUS_GENRES = ["article", "news"]; +const HESITANT_MANNERS = ["neutral", "warm", "cheerful", "empathetic", "calm", "dictation", "soothing"]; +// a piece of a longer text, in characters [limit, hard] (splitText): a short paragraph for the narrator +export const PIECE = { narrator: [280, 340] }; +// The symbols the model reads before the text: role, manner (the narrator's genre), then one optional mark. +// pace: "slow" | "fast"; serious: the narrator's article and news in a serious tone (the other roles have the manner +// "serious"); hesitant: the lively assistant with small hesitations. +export function tagsFor(role, manner, { pace, serious = false, hesitant = false } = {}) { + manner = manner ?? DEFAULT_MANNER[role] ?? "neutral"; + if (!ROLE_MANNERS[role] || !ROLE_MANNERS[role].includes(manner)) throw new Error(`role/manner ${role}/${manner}: see ROLE_MANNERS`); + if ((pace != null) + !!serious + !!hesitant > 1) throw new Error("pace, serious and hesitant do not combine: give one of them"); + let tags = ROLES[role] + MANNERS[manner]; + if (pace != null) { + if (!PACE_MANNERS[role]?.[pace]?.includes(manner)) throw new Error(`pace ${pace} with ${role}/${manner}: see PACE_MANNERS`); + tags += PACES[pace]; + } + if (serious) { + if (role !== "narrator" || !SERIOUS_GENRES.includes(manner)) throw new Error("serious: true is for the narrator's article and news; the other roles take manner 'serious'"); + tags += SERIOUS; + } + if (hesitant) { + if (role !== "assistant" || !HESITANT_MANNERS.includes(manner)) throw new Error("hesitant: true is for role 'assistant'"); + tags += HESITANT; + } + return tags; +} +const MAP = { "…": "...", "«": "", "»": "", '"': "", "“": "", "”": "", "„": "", "(": "", ")": "", ":": ",", ";": "," }; + +export function pocketText(text, tags = "") { + let t = Array.from(text).map((c) => (c in MAP ? MAP[c] : c)).join(""); + t = t.replace(/\s+[—–-]\s+|[—–]/g, ", "); + t = t.replace(/,(\s*,)+/g, ",").replace(/\s+([,.!?])/g, "$1"); + t = t.split(/\s+/).filter(Boolean).join(" "); + t = t.replace(/\s*(\[(?:laugh|pause|breath|sigh)\])\s*/g, (_, m) => EVENTS[m]); + return tags + t.trim(); +} + +export class UnigramTokenizer { + constructor(json) { + const m = json.model; + this.pieces = new Map(); + let min = Infinity, maxLen = 1; + m.vocab.forEach(([p, s], i) => { this.pieces.set(p, [i, s]); if (s < min) min = s; maxLen = Math.max(maxLen, Array.from(p).length); }); + this.unkScore = min - 10; + this.maxLen = maxLen; + this.unkId = m.unk_id; + this.added = json.added_tokens.map((t) => [t.content, t.id]).sort((a, b) => b[0].length - a[0].length); + this.bytes = new Map(); + for (let b = 0; b < 256; b++) { + const p = `<0x${b.toString(16).toUpperCase().padStart(2, "0")}>`; + if (this.pieces.has(p)) this.bytes.set(b, this.pieces.get(p)[0]); + } + } + + viterbi(word) { + const chars = Array.from(word), n = chars.length; + const best = new Array(n + 1).fill(-Infinity), back = new Array(n + 1); + best[0] = 0; + for (let i = 0; i < n; i++) { + if (best[i] === -Infinity) continue; + let any = false, piece = ""; + for (let j = i; j < Math.min(n, i + this.maxLen); j++) { + piece += chars[j]; + const hit = this.pieces.get(piece); + if (hit) { + any = any || j === i; + const s = best[i] + hit[1]; + if (s > best[j + 1]) { best[j + 1] = s; back[j + 1] = [i, hit[0]]; } + } + } + if (!any) { // no piece starts with this character: unknown, later byte fallback + const s = best[i] + this.unkScore; + if (s > best[i + 1]) { best[i + 1] = s; back[i + 1] = [i, -1]; } + } + } + const out = []; + for (let k = n; k > 0; k = back[k][0]) { + const [i, id] = back[k]; + if (id === -1) { + const enc = new TextEncoder().encode(chars.slice(i, k).join("")); + const ids = Array.from(enc, (b) => this.bytes.get(b) ?? this.unkId); + out.push(...ids.reverse()); + } else out.push(id); + } + return out.reverse(); + } + + encodeSegment(seg) { + if (!seg) return []; + let s = "▁" + seg; // Prepend normalizer + s = s.replace(/ /g, "▁"); // Metaspace replacement (prepend_scheme always: already starts with ▁) + const words = s.split(/(?=▁)/).filter(Boolean); // split=true: each ▁ starts a new pre-token + return words.flatMap((w) => this.viterbi(w)); + } + + encode(text) { + const ids = []; + let rest = text; + while (rest.length) { + let pos = -1, tok = null; + for (const [content, id] of this.added) { + const p = rest.indexOf(content); + if (p !== -1 && (pos === -1 || p < pos || (p === pos && content.length > tok[0].length))) { pos = p; tok = [content, id]; } + } + if (pos === -1) { ids.push(...this.encodeSegment(rest)); break; } + ids.push(...this.encodeSegment(rest.slice(0, pos)), tok[1]); + rest = rest.slice(pos + tok[0].length); + } + return ids; + } +} diff --git a/runtime/web/pocket_tts.js b/runtime/web/pocket_tts.js new file mode 100644 index 0000000000000000000000000000000000000000..6848c8c78fe82b88f7f78ff0111b2a3b242f1812 --- /dev/null +++ b/runtime/web/pocket_tts.js @@ -0,0 +1,121 @@ +// Gapiring Edge v2 browser runtime (onnxruntime-web, WebAssembly): the loop of pocket_onnx.py. +import { UnigramTokenizer, pocketText, tagsFor } from "./pocket_text.js"; +export { ROLES, MANNERS, ROLE_MANNERS, PACES, PACE_MANNERS, tagsFor } from "./pocket_text.js"; + +const ort = globalThis.ort; + +function mulberry32(seed) { + return () => { seed |= 0; seed = (seed + 0x6d2b79f5) | 0; let t = Math.imul(seed ^ (seed >>> 15), 1 | seed); + t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t; return ((t ^ (t >>> 14)) >>> 0) / 4294967296; }; +} + +export class PocketTTS { + async load(base, onProgress = () => {}) { + const get = async (p) => { const r = await fetch(base + p); if (!r.ok) throw new Error(p + " " + r.status); return r; }; + this.meta = await (await get("bundle.json")).json(); + this.tok = new UnigramTokenizer(await (await get("tokenizer.json")).json()); + ort.env.wasm.numThreads = globalThis.crossOriginIsolated ? Math.min(4, navigator.hardwareConcurrency || 2) : 1; + const opts = { executionProviders: ["wasm"], graphOptimizationLevel: "all" }; + const names = ["text_conditioner", "flow_lm_main", "flow_lm_flow", "mimi_decoder"]; + this.s = {}; + let done = 0; + for (const n of names) { + const r = await get(`${n}_int8.onnx`); + const total = Number(r.headers.get("content-length")) || 0, reader = r.body.getReader(), parts = []; + let got = 0; + for (;;) { const { done: d, value } = await reader.read(); if (d) break; parts.push(value); got += value.length; onProgress(n, done + got, total); } + const buf = new Uint8Array(got); let o = 0; for (const p of parts) { buf.set(p, o); o += p.length; } + done += got; + this.s[n] = await ort.InferenceSession.create(buf, opts); + } + this.voices = {}; + for (const [v, shape] of Object.entries(this.meta.voice_shapes)) { + const data = new Float32Array(await (await get(`voices/${v}.bin`)).arrayBuffer()); + this.voices[v] = { emb: new ort.Tensor("float32", data, shape), state: null }; + } + this.ldim = this.meta.latent_dim; this.dim = this.meta.conditioning_dim; + return this; + } + + initState(manifest) { + return manifest.map((m) => { + const size = m.shape.reduce((a, b) => a * b, 1); + if (m.dtype === "int64") return new ort.Tensor("int64", new BigInt64Array(size), m.shape); + if (m.dtype === "bool") return new ort.Tensor("bool", new Uint8Array(size).fill(m.fill === "ones" ? 1 : 0), m.shape); + return new ort.Tensor("float32", new Float32Array(size), m.shape); + }); + } + + async main(sequence, textEmb, states) { + const feed = { sequence, text_embeddings: textEmb }; + this.meta.flow_lm_state_manifest.forEach((m, i) => { feed[m.input_name] = states[i]; }); + const out = await this.s.flow_lm_main.run(feed); + return [out.conditioning, out.eos_logit.data[0], this.meta.flow_lm_state_manifest.map((m) => out[m.output_name])]; + } + + async voiceState(v) { + const voice = this.voices[v]; + if (!voice.state) { + const empty = new ort.Tensor("float32", new Float32Array(0), [1, 0, this.ldim]); + voice.state = (await this.main(empty, voice.emb, this.initState(this.meta.flow_lm_state_manifest)))[2]; + } + return voice.state; + } + + // speak() with the role and the manner by name: await tts.say(text, onChunk, { voice: "f1", role: "assistant", manner: "warm" }) + // marks: { pace: "slow" | "fast" }, { serious: true } (narrator's article and news), { hesitant: true } (lively assistant) + async say(text, onChunk, { voice = "f1", role = "assistant", manner, pace, serious, hesitant, ...opts } = {}) { + return this.speak(text, tagsFor(role, manner, { pace, serious, hesitant }), voice, onChunk, opts); + } + + // onChunk(Float32Array audio 24 kHz); returns {firstMs, seconds, rtf} + async speak(text, tags, voice, onChunk, { seed = 1, chunkFrames = 3, shouldStop = () => false } = {}) { + const m = this.meta, rand = mulberry32(seed), std = Math.sqrt(m.temperature); + const t0 = performance.now(); + let t = pocketText(text, tags); + if (!".!?…".includes(t[t.length - 1])) t += "."; + const ids = this.tok.encode(t); + const emb = (await this.s.text_conditioner.run({ token_ids: new ort.Tensor("int64", BigInt64Array.from(ids.map(BigInt)), [1, ids.length]) })).text_embeddings; + const emptySeq = new ort.Tensor("float32", new Float32Array(0), [1, 0, this.ldim]); + let st = (await this.main(emptySeq, emb, await this.voiceState(voice)))[2]; + const maxGen = Math.floor((ids.length / m.tokens_per_second_estimate + m.gen_seconds_padding) * m.frame_rate); + const after = (text.split(/\s+/).filter(Boolean).length <= 4 ? 3 : 1) + 2; + let dstate = this.initState(m.mimi_state_manifest); + let seq = new ort.Tensor("float32", new Float32Array(this.ldim).fill(NaN), [1, 1, this.ldim]); + const emptyTxt = new ort.Tensor("float32", new Float32Array(0), [1, 0, this.dim]); + const s0 = new ort.Tensor("float32", new Float32Array([0]), [1, 1]), s1 = new ort.Tensor("float32", new Float32Array([1]), [1, 1]); + let pending = [], eosStep = null, first = true, firstMs = null, samples = 0; + const decode = async (lat) => { + const data = new Float32Array(lat.length * this.ldim); lat.forEach((l, i) => data.set(l, i * this.ldim)); + const feed = { latent: new ort.Tensor("float32", data, [1, lat.length, this.ldim]) }; + m.mimi_state_manifest.forEach((x, i) => { feed[x.input_name] = dstate[i]; }); + const out = await this.s.mimi_decoder.run(feed); + dstate = m.mimi_state_manifest.map((x) => out[x.output_name]); + return new Float32Array(out.audio.data); + }; + const emit = (audio) => { + if (first) { const n = Math.min(m.fade_in_samples, audio.length); for (let i = 0; i < n; i++) audio[i] *= i / m.fade_in_samples; first = false; + firstMs = performance.now() - t0; } + samples += audio.length; onChunk(audio); + }; + for (let step = 0; step < maxGen && !shouldStop(); step++) { + const [cond, eos, ns] = await this.main(seq, emptyTxt, st); + st = ns; + if (eos > m.eos_threshold && eosStep === null && step >= m.min_frames_before_eos) eosStep = step; + if (eosStep !== null && step >= eosStep + after) break; + const noise = new Float32Array(this.ldim); + for (let i = 0; i < this.ldim; i += 2) { // Box-Muller pairs + const u = Math.max(rand(), 1e-12), v = rand(), r = Math.sqrt(-2 * Math.log(u)) * std; + noise[i] = r * Math.cos(2 * Math.PI * v); if (i + 1 < this.ldim) noise[i + 1] = r * Math.sin(2 * Math.PI * v); + } + const flow = (await this.s.flow_lm_flow.run({ c: cond, s: s0, t: s1, x: new ort.Tensor("float32", noise, [1, this.ldim]) })).flow_dir.data; + const latent = new Float32Array(this.ldim); for (let i = 0; i < this.ldim; i++) latent[i] = noise[i] + flow[i]; + seq = new ort.Tensor("float32", latent, [1, 1, this.ldim]); + pending.push(latent); + if (first || pending.length >= chunkFrames) { emit(await decode(pending)); pending = []; } + } + if (pending.length) emit(await decode(pending)); + const seconds = samples / m.sample_rate; + return { firstMs, seconds, rtf: (performance.now() - t0) / 1000 / Math.max(seconds, 1e-6) }; + } +} diff --git a/runtime/web/tokenize_check.mjs b/runtime/web/tokenize_check.mjs new file mode 100644 index 0000000000000000000000000000000000000000..4489b3671a8e677ecfd8b6e33c9e267382a1cc22 --- /dev/null +++ b/runtime/web/tokenize_check.mjs @@ -0,0 +1,15 @@ +// node tokenize_check.mjs tokenizer.json cases.jsonl -> mismatches against the Python tokenizer's ids +import fs from "node:fs"; +import readline from "node:readline"; +import { UnigramTokenizer, pocketText } from "./pocket_text.js"; +const tok = new UnigramTokenizer(JSON.parse(fs.readFileSync(process.argv[2], "utf8"))); +let n = 0, bad = 0, badText = 0; +const rl = readline.createInterface({ input: fs.createReadStream(process.argv[3]) }); +for await (const line of rl) { + const r = JSON.parse(line); n++; + const t = pocketText(r.raw, r.tags); + if (t !== r.text) { badText++; if (badText <= 3) console.log("TEXT", JSON.stringify(r.raw).slice(0, 80), "|", JSON.stringify(t).slice(0, 80), "|", JSON.stringify(r.text).slice(0, 80)); } + const ids = tok.encode(r.text); + if (ids.join(",") !== r.ids.join(",")) { bad++; if (bad <= 5) console.log("IDS", JSON.stringify(r.text).slice(0, 70), ids.slice(0, 12).join(","), "|", r.ids.slice(0, 12).join(",")); } +} +console.log(JSON.stringify({ cases: n, pocket_text_mismatch: badText, ids_mismatch: bad }));