lattifai 0.4.3__py3-none-any.whl → 0.4.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lattifai/io/text_parser.py +2 -2
- lattifai/workers/lattice1_alpha.py +4 -10
- {lattifai-0.4.3.dist-info → lattifai-0.4.4.dist-info}/METADATA +1 -1
- {lattifai-0.4.3.dist-info → lattifai-0.4.4.dist-info}/RECORD +8 -8
- {lattifai-0.4.3.dist-info → lattifai-0.4.4.dist-info}/WHEEL +0 -0
- {lattifai-0.4.3.dist-info → lattifai-0.4.4.dist-info}/entry_points.txt +0 -0
- {lattifai-0.4.3.dist-info → lattifai-0.4.4.dist-info}/licenses/LICENSE +0 -0
- {lattifai-0.4.3.dist-info → lattifai-0.4.4.dist-info}/top_level.txt +0 -0
lattifai/io/text_parser.py
CHANGED
|
@@ -8,12 +8,12 @@ SPEAKER_PATTERN = re.compile(r'((?:>>|>>|>|>).*?[::])\s*(.*)')
|
|
|
8
8
|
# Transcriber Output Example:
|
|
9
9
|
# 26:19.919 --> 26:34.921
|
|
10
10
|
# [SPEAKER_01]: 越来越多的科技巨头入...
|
|
11
|
-
SPEAKER_LATTIFAI = re.compile(r'(^\[SPEAKER_.*?\]
|
|
11
|
+
SPEAKER_LATTIFAI = re.compile(r'(^\[SPEAKER_.*?\][::])\s*(.*)')
|
|
12
12
|
|
|
13
13
|
# NISHTHA BHATIA: Hey, everyone.
|
|
14
14
|
# DIETER: Oh, hey, Nishtha.
|
|
15
15
|
# GEMINI: That might
|
|
16
|
-
SPEAKER_PATTERN2 = re.compile(r'^([A-Z]{1,15}(?:\s+[A-Z]{1,15})?
|
|
16
|
+
SPEAKER_PATTERN2 = re.compile(r'^([A-Z]{1,15}(?:\s+[A-Z]{1,15})?[::])\s*(.*)$')
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
def parse_speaker_text(line) -> Tuple[Optional[str], str]:
|
|
@@ -13,13 +13,7 @@ from lhotse.audio import read_audio
|
|
|
13
13
|
from lhotse.features.kaldi.layers import Wav2LogFilterBank
|
|
14
14
|
from lhotse.utils import Pathlike
|
|
15
15
|
|
|
16
|
-
from lattifai.errors import
|
|
17
|
-
AlignmentError,
|
|
18
|
-
AudioFormatError,
|
|
19
|
-
AudioLoadError,
|
|
20
|
-
DependencyError,
|
|
21
|
-
ModelLoadError,
|
|
22
|
-
)
|
|
16
|
+
from lattifai.errors import AlignmentError, AudioFormatError, AudioLoadError, DependencyError, ModelLoadError
|
|
23
17
|
|
|
24
18
|
|
|
25
19
|
class Lattice1AlphaWorker:
|
|
@@ -231,9 +225,9 @@ class Lattice1AlphaWorker:
|
|
|
231
225
|
emission.to(device) * acoustic_scale,
|
|
232
226
|
decoding_graph.to(device),
|
|
233
227
|
torch.tensor([emission.shape[1]], dtype=torch.int32),
|
|
234
|
-
search_beam=
|
|
235
|
-
output_beam=
|
|
236
|
-
min_active_states=
|
|
228
|
+
search_beam=200,
|
|
229
|
+
output_beam=80,
|
|
230
|
+
min_active_states=400,
|
|
237
231
|
max_active_states=10000,
|
|
238
232
|
subsampling_factor=1,
|
|
239
233
|
reject_low_confidence=False,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lattifai
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4
|
|
4
4
|
Summary: Lattifai Python SDK: Seamless Integration with Lattifai's Speech and Video AI Services
|
|
5
5
|
Author-email: Lattifai Technologies <tech@lattifai.com>
|
|
6
6
|
Maintainer-email: Lattice <tech@lattifai.com>
|
|
@@ -13,14 +13,14 @@ lattifai/io/gemini_reader.py,sha256=WDZA93MSrUAsa5j-ZDXLdPXzEIoREymEy-rMAED_6f4,
|
|
|
13
13
|
lattifai/io/gemini_writer.py,sha256=rlXO9zx6kQhqTi9K9izE69-8S-2GPOIiJHPwZyebpiM,6515
|
|
14
14
|
lattifai/io/reader.py,sha256=h4T8dveLHXqSonma0J50iyjqkxH26tujeoPbnLx05nA,3333
|
|
15
15
|
lattifai/io/supervision.py,sha256=iBDRiDJ0hddo__SoEZau2cdEIBFnXZNLgSWFjtJd-lM,871
|
|
16
|
-
lattifai/io/text_parser.py,sha256=
|
|
16
|
+
lattifai/io/text_parser.py,sha256=5rO2qgFLfWIcoU0K-FGBgs2qG7r6Uz2J2LklGTgSUyA,2391
|
|
17
17
|
lattifai/io/utils.py,sha256=4drRwcM1n7AYhdJcF51EZxMTy_Ut_1GKtdWpRhPuVmg,686
|
|
18
18
|
lattifai/io/writer.py,sha256=8n9ZBuXuVOCFwzr1hqrnXpZ-fARTsepebwjKgRuueWE,3872
|
|
19
19
|
lattifai/tokenizer/__init__.py,sha256=y-FyfO7tLga9b46pkCC6jdSBKOFZS-jFfHcqUieGEyU,120
|
|
20
20
|
lattifai/tokenizer/phonemizer.py,sha256=SfRi1KIMpmaao6OVmR1h_I_3QU-vrE6D5bh72Afg5XM,1759
|
|
21
21
|
lattifai/tokenizer/tokenizer.py,sha256=6XlHehhwahVWgUMj79LqMs13xaRTa17beOZqico4vLE,19186
|
|
22
22
|
lattifai/workers/__init__.py,sha256=s6YfkIq4FDIAzY9sPjRpXnJfszj2repqnMTqydRM5Zw,83
|
|
23
|
-
lattifai/workers/lattice1_alpha.py,sha256=
|
|
23
|
+
lattifai/workers/lattice1_alpha.py,sha256=826U2D5UJMnrxqswF6N1mlSs-3xRB9TgsiQe-Z89Ie4,10152
|
|
24
24
|
lattifai/workflows/__init__.py,sha256=mTOdwQQs2YY1s0JsVGsATb2TWPhpNo7bRiAAJW92740,830
|
|
25
25
|
lattifai/workflows/agents.py,sha256=ZnxyEb-Li8gQw3Z7V3K7jjnT7sQAtG1uCFuXGX77IcE,227
|
|
26
26
|
lattifai/workflows/base.py,sha256=ZSePq2O2hB59K5CMbk_iGiOM9FSHOVQdG3t8Oyz9gwE,6264
|
|
@@ -31,9 +31,9 @@ lattifai/workflows/prompts/README.md,sha256=X49KWSQVdjWxxWUp4R2w3ZqKrAOi6_kDNHh1
|
|
|
31
31
|
lattifai/workflows/prompts/__init__.py,sha256=i3kMT5sg_W9LbPcda0xmZWLg0tPjXGVI3iKtHrBng3o,1351
|
|
32
32
|
lattifai/workflows/prompts/gemini/README.md,sha256=rt7f7yDGtaobKBo95LG3u56mqa3ABOXQd0UVgJYtYuo,781
|
|
33
33
|
lattifai/workflows/prompts/gemini/transcription_gem.txt,sha256=cljzZ--BDgnnKzqVCakr-fTp2Xk38UOsUquvruNX-LU,4600
|
|
34
|
-
lattifai-0.4.
|
|
35
|
-
lattifai-0.4.
|
|
36
|
-
lattifai-0.4.
|
|
37
|
-
lattifai-0.4.
|
|
38
|
-
lattifai-0.4.
|
|
39
|
-
lattifai-0.4.
|
|
34
|
+
lattifai-0.4.4.dist-info/licenses/LICENSE,sha256=LNuoH5jpXXNKgjQ3XLwztFq8D3O7kZI-LSg81o4ym2M,1065
|
|
35
|
+
lattifai-0.4.4.dist-info/METADATA,sha256=wW1ZAk7_WdKxHpvgucnJA2xXye1vB-NiKAfpTT56hDk,26710
|
|
36
|
+
lattifai-0.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
37
|
+
lattifai-0.4.4.dist-info/entry_points.txt,sha256=fCgo8-LKA_9C7_jmEGsZPJko0woXHtEh0iRbpO7PYzI,69
|
|
38
|
+
lattifai-0.4.4.dist-info/top_level.txt,sha256=tHSoXF26r-IGfbIP_JoYATqbmf14h5NrnNJGH4j5reI,9
|
|
39
|
+
lattifai-0.4.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|