mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
Fix style issues
This commit is contained in:
parent
17c3209ea1
commit
f511382f9f
1
.github/workflows/baker_zh.yml
vendored
1
.github/workflows/baker_zh.yml
vendored
@ -4,7 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- baker-matcha-2
|
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
|
@ -6,7 +6,7 @@ from typing import List
|
|||||||
|
|
||||||
import jieba
|
import jieba
|
||||||
from lhotse import load_manifest
|
from lhotse import load_manifest
|
||||||
from pypinyin import lazy_pinyin, load_phrases_dict, Style
|
from pypinyin import Style, lazy_pinyin, load_phrases_dict
|
||||||
|
|
||||||
load_phrases_dict(
|
load_phrases_dict(
|
||||||
{
|
{
|
||||||
|
@ -98,7 +98,7 @@ class Tokenizer(object):
|
|||||||
|
|
||||||
def test_tokenizer():
|
def test_tokenizer():
|
||||||
import jieba
|
import jieba
|
||||||
from pypinyin import lazy_pinyin, Style
|
from pypinyin import Style, lazy_pinyin
|
||||||
|
|
||||||
tokenizer = Tokenizer("data/tokens.txt")
|
tokenizer = Tokenizer("data/tokens.txt")
|
||||||
text1 = "今天is Monday, tomorrow is 星期二"
|
text1 = "今天is Monday, tomorrow is 星期二"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user