You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. `wtpsplit` to split sentences into 'small' substring
37
38
2. concat substring based on language using `fasttext` and `langdetect`
38
39
39
40
Args:
40
41
text (str): text to split
41
-
threshold (float, optional): the lower the more separated (more) substring will return. Defaults to 5e-5.
42
+
threshold (float, optional): the lower the more separated (more) substring will return. Defaults to 5e-5 (if your text contains no Chinese, Japanese, Korean, 1e-3 is suggested)
43
+
lang_map (_type_, optional): mapping different language to same language for better result, if you know the range of your target languages. Defaults to None.
44
+
verbose (bool, optional): print the process. Defaults to False.
45
+
splitter (SentenceSplitter, optional): sentence splitter. Defaults to default_sentence_splitter.
"我是 VGroupChatBot,一个旨在支持多人通信的助手,通过可视化消息来帮助团队成员更好地交流。我可以帮助团队成员更好地整理和共享信息,特别是在讨论、会议和Brainstorming等情况下。你好我的名字是西野くまですmy name is bob很高兴认识你どうぞよろしくお願いいたします「こんにちは」是什么意思。",
5
+
"你好,我的名字是西野くまです。I am from Tokyo, 日本の首都。今天的天气非常好,sky is clear and sunny。おはようございます、皆さん!我们一起来学习吧。Learning languages can be fun and exciting。昨日はとても忙しかったので、今日は少しリラックスしたいです。Let's take a break and enjoy some coffee。中文、日本語、and English are three distinct languages, each with its own unique charm。希望我们能一起进步,一起成长。Let's keep studying and improving our language skills together. ありがとう!",
6
+
"你好,今日はどこへ行きますか?",
7
+
"我的名字是田中さんです。",
8
+
"我喜欢吃寿司和拉面おいしいです。",
9
+
"今天の天気はとてもいいですね。",
10
+
"我在学习日本語少し難しいです。",
11
+
"日语真是おもしろい啊",
12
+
"你喜欢看アニメ吗?",
13
+
"我想去日本旅行、特に京都に行きたいです。",
14
+
"昨天見た映画はとても感動的でした。""我朋友是日本人、彼はとても優しいです。",
15
+
"我们一起去カラオケ吧、楽しそうです。",
16
+
"你今天吃了什么、朝ごはんは何ですか?",
17
+
"我的家在北京、でも、仕事で東京に住んでいます。",
18
+
"我在学做日本料理、日本料理を作るのを習っています。",
19
+
"你会说几种语言、何ヶ国語話せますか?",
20
+
"我昨天看了一本书、その本はとても面白かったです。",
21
+
"我们一起去逛街、買い物に行きましょう。",
22
+
"你最近好吗、最近どうですか?",
23
+
"我在学做日本料理와 한국 요리、日本料理を作るのを習っています。",
24
+
"你会说几种语言、何ヶ国語話せますか?몇 개 언어를 할 수 있어요?",
25
+
"我昨天看了一本书、その本はとても面白かったです。어제 책을 읽었는데, 정말 재미있었어요。",
26
+
"我们一起去逛街와 쇼핑、買い物に行きましょう。쇼핑하러 가요。",
27
+
"你最近好吗、最近どうですか?요즘 어떻게 지내요?",
28
+
]
29
+
30
+
texts_2= [
31
+
"Ich liebe Paris, c'est une belle ville, and the food is amazing!",
32
+
"Berlin ist wunderbar, je veux y retourner, and explore more.",
33
+
"Bonjour, wie geht's dir today?",
34
+
"Die Musik hier ist fantastisch, la musique est superbe, and I enjoy it a lot.",
35
+
"Guten Morgen, je t'aime, have a great day!",
36
+
"Das Wetter ist heute schön, il fait beau aujourd'hui, and it's perfect for a walk.",
37
+
"Ich mag dieses Buch, ce livre est intéressant, and it has a great story.",
38
+
"Vielen Dank, merci beaucoup, for your help.",
39
+
"Wir reisen nach Deutschland, nous voyageons en Allemagne, and we are excited.",
40
+
"Ich bin müde, je suis fatigué, and I need some rest.",
0 commit comments