{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "c:\\Users\\NoerN\\.conda\\envs\\toucanTTS\\lib\\site-packages\\torch\\nn\\modules\\transformer.py:306: UserWarning: enable_nested_tensor is True, but self.use_nested_tensor is False because encoder_layer.self_attn.batch_first was not True(use batch_first for better inference performance)\n", " warnings.warn(f\"enable_nested_tensor is True, but self.use_nested_tensor is False because {why_not_sparsity_fast_path}\")\n", "c:\\Users\\NoerN\\.conda\\envs\\toucanTTS\\lib\\site-packages\\torch\\nn\\functional.py:5504: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at ..\\aten\\src\\ATen\\native\\transformers\\cuda\\sdp_utils.cpp:455.)\n", " attn_output = scaled_dot_product_attention(q, k, v, attn_mask, dropout_p, is_causal)\n" ] }, { "data": { "text/plain": [ "['m', 'a', 'ɰ', 'sʰ', 'u', 'ŋ', 'kʰ', 'aː']" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from transphone import read_tokenizer\n", "\n", "shn = read_tokenizer(\"shn\")\n", "\n", "lst = shn.tokenize(\"မႂ်ႇသုင်ၶႃႈ\")\n", "\n", "lst" ] } ], "metadata": { "kernelspec": { "display_name": "toucanTTS", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.14" } }, "nbformat": 4, "nbformat_minor": 2 }